================================================================== BUG: KCSAN: data-race in _prb_read_valid / data_alloc write to 0xffffffff8688b4b8 of 8 bytes by task 5138 on cpu 0: data_alloc+0x271/0x2b0 kernel/printk/printk_ringbuffer.c:1095 prb_reserve+0x808/0xaf0 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x56d/0x860 kernel/printk/printk.c:2326 vprintk_emit+0x178/0x650 kernel/printk/printk.c:2426 vprintk_default+0x26/0x30 kernel/printk/printk.c:2465 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82 _printk+0x79/0xa0 kernel/printk/printk.c:2475 set_capacity_and_notify+0x14c/0x1f0 block/genhd.c:93 loop_set_size+0x2e/0x70 drivers/block/loop.c:210 loop_configure+0x872/0x9f0 drivers/block/loop.c:1044 lo_ioctl+0x5f8/0x1560 drivers/block/loop.c:-1 blkdev_ioctl+0x34f/0x440 block/ioctl.c:704 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x19a8/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff8688b4b8 of 16 bytes by task 5108 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:482 [inline] desc_read_finalized_seq kernel/printk/printk_ringbuffer.c:1874 [inline] prb_read kernel/printk/printk_ringbuffer.c:1922 [inline] _prb_read_valid+0x1bc/0x920 kernel/printk/printk_ringbuffer.c:2113 prb_read_valid+0x3c/0x60 kernel/printk/printk_ringbuffer.c:2185 __console_flush_and_unlock kernel/printk/printk.c:3304 [inline] console_unlock+0x164/0x330 kernel/printk/printk.c:3325 con_flush_chars+0xb2/0x1b0 drivers/tty/vt/vt.c:3503 n_tty_write+0x8e3/0xb10 drivers/tty/n_tty.c:2393 iterate_tty_write drivers/tty/tty_io.c:1015 [inline] file_tty_write+0x389/0x670 drivers/tty/tty_io.c:1090 tty_write+0x25/0x30 drivers/tty/tty_io.c:1111 new_sync_write fs/read_write.c:591 [inline] vfs_write+0x49d/0x8d0 fs/read_write.c:684 ksys_write+0xda/0x1a0 fs/read_write.c:736 __do_sys_write fs/read_write.c:747 [inline] __se_sys_write fs/read_write.c:744 [inline] __x64_sys_write+0x40/0x50 fs/read_write.c:744 x64_sys_call+0x2cdd/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:2 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd0/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 5108 Comm: syz.0.12131 Not tainted 6.15.0-rc4-syzkaller-00051-g7a13c14ee59d #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025 ==================================================================