loop0: detected capacity change from 0 to 264192 ================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff86e79960 of 1 bytes by task 8178 on cpu 0: number+0x9a3/0xbe0 lib/vsprintf.c:561 vsnprintf+0xa5e/0xe80 lib/vsprintf.c:2872 vscnprintf+0x3e/0x80 lib/vsprintf.c:2912 printk_sprint kernel/printk/printk.c:2099 [inline] vprintk_store+0x61d/0xb40 kernel/printk/printk.c:2209 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2256 vprintk_default+0x22/0x30 kernel/printk/printk.c:2283 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x96 kernel/printk/printk.c:2293 set_capacity_and_notify+0x170/0x1d0 block/genhd.c:90 loop_set_size+0x2e/0x70 drivers/block/loop.c:233 loop_configure+0xb66/0xc90 drivers/block/loop.c:1059 lo_ioctl+0x617/0x11b0 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856 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+0x44/0xae read to 0xffffffff86e79960 of 8 bytes by task 8179 on cpu 1: 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+0x54d/0xb40 kernel/printk/printk.c:2199 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2256 vprintk_default+0x22/0x30 kernel/printk/printk.c:2283 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x96 kernel/printk/printk.c:2293 set_capacity_and_notify+0x170/0x1d0 block/genhd.c:90 loop_set_size+0x2e/0x70 drivers/block/loop.c:233 loop_configure+0xb66/0xc90 drivers/block/loop.c:1059 lo_ioctl+0x617/0x11b0 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856 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+0x44/0xae value changed: 0x00000000ffffff5f -> 0x00000000000a3239 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8179 Comm: syz-executor.0 Not tainted 5.18.0-rc6-syzkaller-00085-gf3f19f939c11-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================