================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff845172d0 of 8 bytes by task 952 on cpu 1: data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1071 prb_reserve+0x8f0/0xbc0 kernel/printk/printk_ringbuffer.c:1549 vprintk_store+0x3e9/0x9c0 kernel/printk/printk.c:2105 vprintk_emit+0xca/0x3d0 kernel/printk/printk.c:2157 vprintk_default+0x22/0x30 kernel/printk/printk.c:2185 vprintk+0x15a/0x170 kernel/printk/printk_safe.c:392 printk+0x62/0x87 kernel/printk/printk.c:2216 blk_add_partition block/partitions/core.c:562 [inline] blk_add_partitions+0x63f/0xa80 block/partitions/core.c:653 bdev_disk_changed+0x2a1/0x310 fs/block_dev.c:1271 loop_reread_partitions drivers/block/loop.c:655 [inline] loop_set_status+0x75f/0x7e0 drivers/block/loop.c:1418 lo_ioctl+0x758/0x11f0 drivers/block/loop.c:1486 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1664 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff845172d0 of 8 bytes by task 904 on cpu 0: data_make_reusable kernel/printk/printk_ringbuffer.c:587 [inline] data_push_tail+0x125/0x460 kernel/printk/printk_ringbuffer.c:672 data_realloc kernel/printk/printk_ringbuffer.c:1132 [inline] prb_reserve_in_last+0x71c/0xba0 kernel/printk/printk_ringbuffer.c:1421 vprintk_store+0x311/0x9c0 kernel/printk/printk.c:2083 vprintk_emit+0xca/0x3d0 kernel/printk/printk.c:2157 vprintk_default+0x22/0x30 kernel/printk/printk.c:2185 vprintk+0x15a/0x170 kernel/printk/printk_safe.c:392 printk+0x62/0x87 kernel/printk/printk.c:2216 disk_unlock_native_capacity block/partitions/core.c:531 [inline] blk_add_partition block/partitions/core.c:565 [inline] blk_add_partitions+0x712/0xa80 block/partitions/core.c:653 bdev_disk_changed+0x2a1/0x310 fs/block_dev.c:1271 loop_reread_partitions drivers/block/loop.c:655 [inline] loop_set_status+0x75f/0x7e0 drivers/block/loop.c:1418 lo_ioctl+0x758/0x11f0 drivers/block/loop.c:1486 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1664 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 904 Comm: syz-executor.0 Not tainted 5.12.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================