================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff866d4d58 of 8 bytes by task 9 on cpu 0: prb_reserve+0x740/0xb60 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2408 dev_vprintk_emit+0x1df/0x210 drivers/base/core.c:4935 dev_printk_emit+0x82/0xb0 drivers/base/core.c:4946 __dev_printk+0xf6/0x110 drivers/base/core.c:4958 _dev_warn+0x99/0xc0 drivers/base/core.c:5002 hid_parser_main+0x622/0x680 drivers/hid/hid-core.c:660 hid_open_report+0x541/0x7c0 drivers/hid/hid-core.c:1322 hid_parse include/linux/hid.h:1123 [inline] hid_generic_probe+0x33/0x70 drivers/hid/hid-generic.c:66 __hid_device_probe drivers/hid/hid-core.c:2718 [inline] hid_device_probe+0x259/0x440 drivers/hid/hid-core.c:2755 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:459 __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:534 device_add+0x5e2/0x790 drivers/base/core.c:3665 hid_add_device+0x26e/0x2f0 drivers/hid/hid-core.c:2901 uhid_device_add_worker+0x2b/0xa0 drivers/hid/uhid.c:73 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffffffff866d4d58 of 8 bytes by task 28797 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] desc_read_finalized_seq kernel/printk/printk_ringbuffer.c:1874 [inline] prb_read kernel/printk/printk_ringbuffer.c:1922 [inline] _prb_read_valid+0x1ec/0xba0 kernel/printk/printk_ringbuffer.c:2113 prb_read_valid+0x3d/0x60 kernel/printk/printk_ringbuffer.c:2182 printk_get_next_message+0xd4/0x710 kernel/printk/printk.c:2989 console_emit_next_record kernel/printk/printk.c:3076 [inline] console_flush_all+0x28a/0x770 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xab/0x330 kernel/printk/printk.c:3309 do_con_write+0x2582/0x25f0 con_write+0x26/0x40 drivers/tty/vt/vt.c:3434 do_output_char+0x491/0x500 drivers/tty/n_tty.c:428 process_output drivers/tty/n_tty.c:494 [inline] n_tty_write+0x8c6/0xb80 drivers/tty/n_tty.c:2400 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write+0x37a/0x680 drivers/tty/tty_io.c:1090 tty_write+0x28/0x30 drivers/tty/tty_io.c:1111 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x77f/0x920 fs/read_write.c:679 ksys_write+0xe8/0x1b0 fs/read_write.c:731 __do_sys_write fs/read_write.c:742 [inline] __se_sys_write fs/read_write.c:739 [inline] __x64_sys_write+0x42/0x50 fs/read_write.c:739 x64_sys_call+0x287e/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:2 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: 0x0000000000002bc9 -> 0x0000000000004bc9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 28797 Comm: syz.8.8611 Not tainted 6.13.0-rc6-syzkaller-00038-g09a0fa92e5b4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================