loop3: p2 < > p4 loop3: partition table partially beyond EOD, ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff8707f0e8 of 8 bytes by task 2173 on cpu 1: data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1074 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2196 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2252 vprintk_default+0x22/0x30 kernel/printk/printk.c:2282 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x96 kernel/printk/printk.c:2292 disk_unlock_native_capacity block/partitions/core.c:521 [inline] blk_add_partition block/partitions/core.c:555 [inline] blk_add_partitions block/partitions/core.c:643 [inline] bdev_disk_changed+0x8ed/0xc30 block/partitions/core.c:685 blkdev_get_whole block/bdev.c:684 [inline] blkdev_get_by_dev+0x3c0/0x9c0 block/bdev.c:821 blkdev_open+0xac/0x140 block/fops.c:485 do_dentry_open+0x51a/0x8b0 fs/open.c:878 vfs_open+0x43/0x50 fs/open.c:1014 do_open fs/namei.c:3499 [inline] path_openat+0x1671/0x1ad0 fs/namei.c:3632 do_filp_open+0x105/0x220 fs/namei.c:3659 do_sys_openat2+0xb5/0x2a0 fs/open.c:1311 do_sys_open fs/open.c:1327 [inline] __do_sys_openat fs/open.c:1343 [inline] __se_sys_openat fs/open.c:1338 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1338 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+0x63/0xcd read to 0xffffffff8707f0e8 of 8 bytes by task 28525 on cpu 0: 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+0x51c/0xb50 kernel/printk/printk.c:2196 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2252 vprintk_default+0x22/0x30 kernel/printk/printk.c:2282 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50 _printk+0x76/0x96 kernel/printk/printk.c:2292 blk_add_partitions block/partitions/core.c:632 [inline] bdev_disk_changed+0xa73/0xc30 block/partitions/core.c:685 loop_reread_partitions drivers/block/loop.c:518 [inline] loop_set_status+0x44f/0x4f0 drivers/block/loop.c:1317 lo_ioctl+0x83e/0x1290 blkdev_ioctl+0x20e/0x440 block/ioctl.c:614 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+0x63/0xcd value changed: 0x000000010001761d -> 0x0000000100018946 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 28525 Comm: syz-executor.3 Not tainted 5.19.0-syzkaller-09084-gc040862bfbd9-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ================================================================== truncated loop3: p2 start 2359808 is beyond EOD, truncated loop3: p4 size 2097152 extends beyond EOD, truncated