loop1: p2 < > p4 ================================================================== BUG: KCSAN: data-race in data_push_tail / string write to 0xffffffff86e687e2 of 1 bytes by task 1440 on cpu 1: string_nocheck lib/vsprintf.c:647 [inline] string+0x17b/0x220 lib/vsprintf.c:725 vsnprintf+0xb57/0xe80 lib/vsprintf.c:2806 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 check_partition block/partitions/core.c:159 [inline] blk_add_partitions block/partitions/core.c:608 [inline] bdev_disk_changed+0x9dd/0xc30 block/partitions/core.c:694 blkdev_get_whole block/bdev.c:679 [inline] blkdev_get_by_dev+0x3c1/0x9e0 block/bdev.c:816 blkdev_open+0xac/0x140 block/fops.c:498 do_dentry_open+0x519/0x830 fs/open.c:824 vfs_open+0x43/0x50 fs/open.c:958 do_open fs/namei.c:3476 [inline] path_openat+0x16cf/0x1b30 fs/namei.c:3609 do_filp_open+0x105/0x220 fs/namei.c:3636 do_sys_openat2+0xb5/0x2a0 fs/open.c:1213 do_sys_open fs/open.c:1229 [inline] __do_sys_openat fs/open.c:1245 [inline] __se_sys_openat fs/open.c:1240 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1240 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 0xffffffff86e687e0 of 8 bytes by task 5769 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+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 check_partition block/partitions/core.c:159 [inline] blk_add_partitions block/partitions/core.c:608 [inline] bdev_disk_changed+0x9dd/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: 0x0000000100009f87 -> 0x203a33706f6f6c20 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 5769 Comm: syz-executor.1 Not tainted 5.18.0-rc7-syzkaller-00006-g210e04ff7681-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== loop1: partition table partially beyond EOD, truncated loop1: p2 start 4294901760 is beyond EOD, truncated loop1: p4 size 2097152 extends beyond EOD, truncated