BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff87090d08 of 8 bytes by task 12400 on cpu 1: data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1074 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2193 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2249 vprintk_default+0x22/0x30 kernel/printk/printk.c:2279 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x96 kernel/printk/printk.c:2289 vhci_shutdown_connection+0x284/0x2d0 drivers/usb/usbip/vhci_hcd.c:1064 event_handler+0x1a7/0x360 drivers/usb/usbip/usbip_event.c:79 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289 worker_thread+0x618/0xa70 kernel/workqueue.c:2436 kthread+0x1a9/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 read to 0xffffffff87090d08 of 8 bytes by task 19691 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline] data_push_tail+0x10f/0x440 kernel/printk/printk_ringbuffer.c:675 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1046 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2193 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2249 dev_vprintk_emit+0x1c9/0x1ed drivers/base/core.c:4736 dev_printk_emit+0x7e/0xa2 drivers/base/core.c:4747 __dev_printk+0xfa/0x110 drivers/base/core.c:4759 _dev_info+0x9d/0xc1 drivers/base/core.c:4805 attach_store+0x49a/0x6d0 drivers/usb/usbip/vhci_sysfs.c:415 dev_attr_store+0x40/0x60 drivers/base/core.c:2211 sysfs_kf_write+0xa6/0xc0 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x1d3/0x2c0 fs/kernfs/file.c:330 call_write_iter include/linux/fs.h:2191 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x468/0x760 fs/read_write.c:584 ksys_write+0xe8/0x1a0 fs/read_write.c:637 __do_sys_write fs/read_write.c:649 [inline] __se_sys_write fs/read_write.c:646 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:646 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001000075a2 -> 0x000000010000888d Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 19691 Comm: syz-executor.5 Not tainted 6.1.0-rc5-syzkaller-00307-gfe24a97cf254-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 ================================================================== vhci_hcd vhci_hcd.0: devid(0) speed(1) speed_str(low-speed) vhci_hcd vhci_hcd.0: Device attached