================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff866eccd8 of 8 bytes by task 9 on cpu 0: prb_reserve+0x740/0xb60 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2301 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2383 dev_vprintk_emit+0x1df/0x210 drivers/base/core.c:4942 dev_printk_emit+0x82/0xb0 drivers/base/core.c:4953 __dev_printk+0xf6/0x110 drivers/base/core.c:4965 _dev_warn+0x99/0xc0 drivers/base/core.c:5009 hid_parser_main+0x622/0x680 drivers/hid/hid-core.c:632 hid_open_report+0x4e6/0x800 drivers/hid/hid-core.c:1276 hid_parse include/linux/hid.h:1120 [inline] hid_generic_probe+0x33/0x70 drivers/hid/hid-generic.c:63 __hid_device_probe drivers/hid/hid-core.c:2699 [inline] hid_device_probe+0x220/0x370 drivers/hid/hid-core.c:2736 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:3672 hid_add_device+0x26e/0x2f0 drivers/hid/hid-core.c:2882 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 0xffffffff866eccd8 of 8 bytes by task 10472 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] prb_first_seq kernel/printk/printk_ringbuffer.c:1957 [inline] _prb_read_valid+0x3bb/0xba0 kernel/printk/printk_ringbuffer.c:2114 prb_read_valid+0x3d/0x60 kernel/printk/printk_ringbuffer.c:2182 printk_get_next_message+0xd8/0x6f0 kernel/printk/printk.c:2963 console_emit_next_record kernel/printk/printk.c:3046 [inline] console_flush_all+0x28a/0x770 kernel/printk/printk.c:3180 __console_flush_and_unlock kernel/printk/printk.c:3239 [inline] console_unlock+0xab/0x330 kernel/printk/printk.c:3279 con_install+0x28d/0x2d0 drivers/tty/vt/vt.c:3547 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:958 vfs_open+0x38/0x1f0 fs/open.c:1088 do_open fs/namei.c:3774 [inline] path_openat+0x1ac2/0x1fa0 fs/namei.c:3933 do_filp_open+0xf7/0x200 fs/namei.c:3960 do_sys_openat2+0xab/0x120 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_openat fs/open.c:1446 [inline] __se_sys_openat fs/open.c:1441 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1441 x64_sys_call+0x1025/0x2d60 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: 0x000000000000101d -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 10472 Comm: syz.2.2554 Not tainted 6.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 ==================================================================