CPU: 1 UID: 0 PID: 12849 Comm: syz.2.3030 Not tainted syzkaller #0 PREEMPT(voluntary) ================================================================== BUG: KCSAN: data-race in data_alloc / prb_reserve write to 0xffffffff8687b1a8 of 8 bytes by task 12846 on cpu 0: data_alloc+0x27d/0x2b0 kernel/printk/printk_ringbuffer.c:1096 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:214 loop_configure+0x825/0x9c0 drivers/block/loop.c:1071 lo_ioctl+0x1e1/0x1240 drivers/block/loop.c:1526 blkdev_ioctl+0x34f/0x440 block/ioctl.c:705 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:598 [inline] __se_sys_ioctl+0xce/0x140 fs/ioctl.c:584 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:584 x64_sys_call+0x1816/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff8687b1a8 of 8 bytes by task 12849 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:482 [inline] desc_push_tail kernel/printk/printk_ringbuffer.c:778 [inline] desc_reserve kernel/printk/printk_ringbuffer.c:924 [inline] prb_reserve+0x221/0xaf0 kernel/printk/printk_ringbuffer.c:1619 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 dump_stack_print_info+0x1a0/0x1b0 lib/dump_stack.c:71 __dump_stack+0x11/0x30 lib/dump_stack.c:93 dump_stack_lvl+0xe8/0x140 lib/dump_stack.c:120 dump_stack+0x15/0x1b lib/dump_stack.c:129 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x265/0x280 lib/fault-inject.c:174 should_fail+0xb/0x20 lib/fault-inject.c:184 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 strncpy_from_user+0x25/0x230 lib/strncpy_from_user.c:118 getname_flags+0xae/0x3b0 fs/namei.c:157 user_path_at+0x28/0x130 fs/namei.c:3126 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount+0x25b/0x2e0 fs/namespace.c:4324 __x64_sys_mount+0x67/0x80 fs/namespace.c:4324 x64_sys_call+0x2b4d/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffffffffffff9098 -> 0x000000000007fda8 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 12849 Comm: syz.2.3030 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ================================================================== Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack+0x1d/0x30 lib/dump_stack.c:94 dump_stack_lvl+0xe8/0x140 lib/dump_stack.c:120 dump_stack+0x15/0x1b lib/dump_stack.c:129 fail_dump lib/fault-inject.c:73 [inline] should_fail_ex+0x265/0x280 lib/fault-inject.c:174 should_fail+0xb/0x20 lib/fault-inject.c:184 should_fail_usercopy+0x1a/0x20 lib/fault-inject-usercopy.c:37 strncpy_from_user+0x25/0x230 lib/strncpy_from_user.c:118 getname_flags+0xae/0x3b0 fs/namei.c:157 user_path_at+0x28/0x130 fs/namei.c:3126 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount+0x25b/0x2e0 fs/namespace.c:4324 __x64_sys_mount+0x67/0x80 fs/namespace.c:4324 x64_sys_call+0x2b4d/0x2ff0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2294beebe9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2293657038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f2294e15fa0 RCX: 00007f2294beebe9 RDX: 00002000000003c0 RSI: 0000200000000140 RDI: 0000000000000000 RBP: 00007f2293657090 R08: 0000200000000580 R09: 0000000000000000 R10: 0000000000200000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007f2294e16038 R14: 00007f2294e15fa0 R15: 00007ffdc5268c78