loop3: detected capacity change from 0 to 224 ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff86d8dec0 of 8 bytes by task 31710 on cpu 0: data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1071 prb_reserve+0x920/0xbf0 kernel/printk/printk_ringbuffer.c:1549 vprintk_store+0x560/0xbb0 kernel/printk/printk.c:2175 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2228 vprintk_default+0x22/0x30 kernel/printk/printk.c:2255 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x97 kernel/printk/printk.c:2265 set_capacity_and_notify+0x170/0x1d0 block/genhd.c:89 loop_set_size drivers/block/loop.c:231 [inline] loop_configure+0xd53/0xf50 drivers/block/loop.c:1054 lo_ioctl+0x633/0x1280 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff86d8dec0 of 8 bytes by task 31709 on cpu 1: data_make_reusable kernel/printk/printk_ringbuffer.c:587 [inline] data_push_tail+0x138/0x470 kernel/printk/printk_ringbuffer.c:672 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1043 prb_reserve+0x920/0xbf0 kernel/printk/printk_ringbuffer.c:1549 vprintk_store+0x560/0xbb0 kernel/printk/printk.c:2175 vprintk_emit+0xac/0x3c0 kernel/printk/printk.c:2228 vprintk_default+0x22/0x30 kernel/printk/printk.c:2255 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x97 kernel/printk/printk.c:2265 set_capacity_and_notify+0x170/0x1d0 block/genhd.c:89 loop_set_size drivers/block/loop.c:231 [inline] loop_configure+0xd53/0xf50 drivers/block/loop.c:1054 lo_ioctl+0x633/0x1280 blkdev_ioctl+0x20e/0x440 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:860 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x000000010000ee32 -> 0x000000010000fdb6 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31709 Comm: syz-executor.3 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================