================================================================== BUG: KCSAN: data-race in desc_read_finalized_seq / prb_reserve write to 0xffffffff8669ad30 of 8 bytes by task 3377 on cpu 1: prb_reserve+0x740/0xb60 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x168/0x690 kernel/printk/printk.c:2408 dev_vprintk_emit+0x23c/0x2a0 drivers/base/core.c:4891 dev_printk_emit+0x82/0xb0 drivers/base/core.c:4902 __dev_printk+0xf6/0x110 drivers/base/core.c:4914 _dev_warn+0x99/0xc0 drivers/base/core.c:4958 hid_parser_main+0x67c/0x700 drivers/hid/hid-core.c:660 hid_open_report+0x541/0x7c0 drivers/hid/hid-core.c:1324 hid_parse include/linux/hid.h:1124 [inline] hid_generic_probe+0x33/0x70 drivers/hid/hid-generic.c:66 __hid_device_probe drivers/hid/hid-core.c:2713 [inline] hid_device_probe+0x259/0x440 drivers/hid/hid-core.c:2750 really_probe+0x1cf/0x5d0 drivers/base/dd.c:658 __driver_probe_device+0x12d/0x200 drivers/base/dd.c:800 driver_probe_device+0x38/0x2f0 drivers/base/dd.c:830 __device_attach_driver+0x216/0x320 drivers/base/dd.c:958 bus_for_each_drv+0x1cd/0x240 drivers/base/bus.c:462 __device_attach+0x1c7/0x290 drivers/base/dd.c:1030 device_initial_probe+0x1a/0x20 drivers/base/dd.c:1079 bus_probe_device+0x141/0x1d0 drivers/base/bus.c:537 device_add+0x5e2/0x790 drivers/base/core.c:3666 hid_add_device+0x26e/0x2f0 drivers/hid/hid-core.c:2896 uhid_device_add_worker+0x2b/0xa0 drivers/hid/uhid.c:73 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0x4db/0xa20 kernel/workqueue.c:3319 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3400 kthread+0x4ae/0x520 kernel/kthread.c:464 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffffffff8669ad30 of 8 bytes by task 361 on cpu 0: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] desc_read_finalized_seq+0x157/0x280 kernel/printk/printk_ringbuffer.c:1874 prb_read kernel/printk/printk_ringbuffer.c:1922 [inline] _prb_read_valid+0x140/0x6c0 kernel/printk/printk_ringbuffer.c:2113 prb_read_valid+0x3d/0x60 kernel/printk/printk_ringbuffer.c:2182 __console_flush_and_unlock kernel/printk/printk.c:3288 [inline] console_unlock+0x180/0x340 kernel/printk/printk.c:3309 con_install+0x28d/0x2d0 drivers/tty/vt/vt.c:3545 tty_driver_install_tty drivers/tty/tty_io.c:1304 [inline] tty_init_dev+0x7b/0x320 drivers/tty/tty_io.c:1416 tty_open_by_driver drivers/tty/tty_io.c:2082 [inline] tty_open+0x6c7/0xb00 drivers/tty/tty_io.c:2129 chrdev_open+0x2f9/0x370 fs/char_dev.c:414 do_dentry_open+0x621/0xa20 fs/open.c:956 vfs_open+0x38/0x1e0 fs/open.c:1086 do_open fs/namei.c:3830 [inline] path_openat+0x1ae0/0x1fc0 fs/namei.c:3989 do_filp_open+0x107/0x230 fs/namei.c:4016 do_sys_openat2+0xab/0x120 fs/open.c:1428 do_sys_open fs/open.c:1443 [inline] __do_sys_openat fs/open.c:1459 [inline] __se_sys_openat fs/open.c:1454 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1454 x64_sys_call+0x2b30/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:258 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000000040fc -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 361 Comm: syz.2.10418 Tainted: G W 6.14.0-rc7-syzkaller-00202-g183601b78a9b #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================