loop3: p1 p2 < > p3 p4 < p5 p6 > loop3: partition table partially beyond EOD, ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff86e67c70 of 8 bytes by task 1442 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+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 blk_add_partition block/partitions/core.c:561 [inline] blk_add_partitions block/partitions/core.c:652 [inline] bdev_disk_changed+0x805/0xc30 block/partitions/core.c:694 blkdev_get_whole block/bdev.c:679 [inline] blkdev_get_by_dev+0x3c1/0x9e0 block/bdev.c:816 disk_scan_partitions+0x91/0xc0 block/genhd.c:392 blkdev_common_ioctl+0xd6e/0x1090 block/ioctl.c:504 blkdev_ioctl+0x1a7/0x440 block/ioctl.c:582 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 0xffffffff86e67c70 of 8 bytes by task 6342 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_realloc kernel/printk/printk_ringbuffer.c:1135 [inline] prb_reserve_in_last+0x74d/0xc00 kernel/printk/printk_ringbuffer.c:1424 vprintk_store+0x45f/0xb40 kernel/printk/printk.c:2176 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 disk_unlock_native_capacity block/partitions/core.c:530 [inline] blk_add_partitions block/partitions/core.c:644 [inline] bdev_disk_changed+0xacf/0xc30 block/partitions/core.c:694 loop_reread_partitions drivers/block/loop.c:517 [inline] loop_set_status+0x4ee/0x590 drivers/block/loop.c:1304 lo_ioctl+0x810/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: 0x000000010001005f -> 0x0000000100011442 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 6342 Comm: syz-executor.3 Not tainted 5.18.0-rc1-syzkaller-00037-g42e7a03d3bad-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== truncated loop3: p1 start 335762607 is beyond EOD, truncated loop3: p2 start 32 is beyond EOD, truncated loop3: p3 size 7 extends beyond EOD, truncated loop3: p4 size 2 extends beyond EOD, truncated loop3: p5 start 335762607 is beyond EOD, truncated loop3: p6 size 7 extends beyond EOD, truncated