loop5: unable to read partition table ================================================================== BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff888101dacbec of 4 bytes by task 20091 on cpu 1: __blk_mq_unfreeze_queue block/blk-mq.c:225 [inline] blk_mq_unfreeze_queue+0x34/0xb0 block/blk-mq.c:236 loop_set_status+0x3bf/0x4f0 drivers/block/loop.c:1307 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 read to 0xffff888101dacbec of 4 bytes by task 2313 on cpu 0: __bio_queue_enter+0x1ea/0x500 block/blk-core.c:382 bio_queue_enter block/blk.h:81 [inline] blk_mq_get_new_requests block/blk-mq.c:2727 [inline] blk_mq_submit_bio+0x421/0xe50 block/blk-mq.c:2819 __submit_bio block/blk-core.c:648 [inline] __submit_bio_noacct_mq block/blk-core.c:725 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:742 submit_bio_noacct+0x690/0x7f0 block/blk-core.c:849 submit_bio+0xfb/0x110 submit_bh_wbc+0x2a8/0x2f0 fs/buffer.c:3039 submit_bh fs/buffer.c:3045 [inline] block_read_full_folio+0x4d6/0x560 fs/buffer.c:2337 blkdev_read_folio+0x18/0x20 block/fops.c:377 filemap_read_folio mm/filemap.c:2424 [inline] filemap_update_page mm/filemap.c:2506 [inline] filemap_get_pages mm/filemap.c:2618 [inline] filemap_read+0xab5/0x1410 mm/filemap.c:2688 blkdev_read_iter+0x2c6/0x370 block/fops.c:594 call_read_iter include/linux/fs.h:2052 [inline] new_sync_read fs/read_write.c:401 [inline] vfs_read+0x5a5/0x6a0 fs/read_write.c:482 ksys_read+0xe8/0x1a0 fs/read_write.c:620 __do_sys_read fs/read_write.c:630 [inline] __se_sys_read fs/read_write.c:628 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:628 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: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 2313 Comm: udevd Not tainted 5.19.0-rc6-syzkaller-00418-g972a278fe60c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 ================================================================== blk_print_req_error: 151 callbacks suppressed I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 buffer_io_error: 123 callbacks suppressed Buffer I/O error on dev loop5, logical block 0, async page read I/O error, dev loop5, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop5, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 Buffer I/O error on dev loop5, logical block 0, async page read Buffer I/O error on dev loop5, logical block 0, async page read loop5: unable to read partition table loop5: unable to read partition table loop5: unable to read partition table loop5: unable to read partition table loop1: unable to read partition table loop1: unable to read partition table loop1: unable to read partition table loop1: unable to read partition table blk_print_req_error: 36 callbacks suppressed I/O error, dev loop2, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop2, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 buffer_io_error: 26 callbacks suppressed Buffer I/O error on dev loop2, logical block 0, async page read I/O error, dev loop2, sector 24 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0