CPU: 1 UID: 0 PID: 8284 Comm: syz.4.1908 Not tainted 6.14.0-rc4-syzkaller-00199-g76544811c850 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Call Trace: ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff88bef468 of 8 bytes by task 8286 on cpu 0: data_alloc+0x216/0x2c0 kernel/printk/printk_ringbuffer.c:1082 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x168/0x690 kernel/printk/printk.c:2408 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 set_capacity_and_notify+0x151/0x200 block/genhd.c:93 loop_set_size+0x2e/0x70 drivers/block/loop.c:234 loop_configure+0x8bd/0xa50 drivers/block/loop.c:1106 lo_ioctl+0x613/0x14f0 blkdev_ioctl+0x359/0x450 block/ioctl.c:693 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xc9/0x140 fs/ioctl.c:892 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:892 x64_sys_call+0x1690/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:17 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 read to 0xffffffff88bef468 of 8 bytes by task 8284 on cpu 1: data_make_reusable kernel/printk/printk_ringbuffer.c:594 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:679 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1054 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x168/0x690 kernel/printk/printk.c:2408 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x1d/0x30 kernel/printk/printk_safe.c:82 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 show_trace_log_lvl+0x3c3/0x400 arch/x86/kernel/dumpstack.c:237 __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xf2/0x150 lib/dump_stack.c:120 dump_stack+0x15/0x1a lib/dump_stack.c:129 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x24a/0x260 lib/fault-inject.c:174 should_fail+0xb/0x10 lib/fault-inject.c:184 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 _inline_copy_to_user include/linux/uaccess.h:193 [inline] _copy_to_user+0x20/0xa0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] simple_read_from_buffer+0xa0/0x110 fs/libfs.c:1121 proc_fail_nth_read+0xf9/0x140 fs/proc/base.c:1482 vfs_read+0x19b/0x6f0 fs/read_write.c:563 ksys_read+0xe8/0x1b0 fs/read_write.c:708 __do_sys_read fs/read_write.c:717 [inline] __se_sys_read fs/read_write.c:715 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:715 x64_sys_call+0x2874/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:1 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: 0x00000000ffffe6b4 -> 0x00000000fffff277 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 8284 Comm: syz.4.1908 Not tainted 6.14.0-rc4-syzkaller-00199-g76544811c850 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ================================================================== __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0xf2/0x150 lib/dump_stack.c:120 dump_stack+0x15/0x1a lib/dump_stack.c:129 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x24a/0x260 lib/fault-inject.c:174 should_fail+0xb/0x10 lib/fault-inject.c:184 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 _inline_copy_to_user include/linux/uaccess.h:193 [inline] _copy_to_user+0x20/0xa0 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] simple_read_from_buffer+0xa0/0x110 fs/libfs.c:1121 proc_fail_nth_read+0xf9/0x140 fs/proc/base.c:1482 vfs_read+0x19b/0x6f0 fs/read_write.c:563 ksys_read+0xe8/0x1b0 fs/read_write.c:708 __do_sys_read fs/read_write.c:717 [inline] __se_sys_read fs/read_write.c:715 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:715 x64_sys_call+0x2874/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:1 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 RIP: 0033:0x7f9b2973bb7c Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 99 93 02 00 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 ef 93 02 00 48 RSP: 002b:00007f9b27da7030 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f9b29955fa0 RCX: 00007f9b2973bb7c RDX: 000000000000000f RSI: 00007f9b27da70a0 RDI: 0000000000000004 RBP: 00007f9b27da7090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f9b29955fa0 R15: 00007ffecbb888b8