BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff888101dd39a4 of 4 bytes by task 1436 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+0x46/0xb0 read to 0xffff888101dd39a4 of 4 bytes by task 21973 on cpu 0: __bio_queue_enter+0x1ea/0x500 block/blk-core.c:395 bio_queue_enter block/blk.h:81 [inline] blk_mq_get_new_requests block/blk-mq.c:2727 [inline] blk_mq_submit_bio+0x476/0xe40 block/blk-mq.c:2814 __submit_bio block/blk-core.c:661 [inline] __submit_bio_noacct_mq block/blk-core.c:738 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:755 submit_bio_noacct+0x690/0x7f0 block/blk-core.c:862 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 do_read_cache_folio+0x20f/0x3a0 mm/filemap.c:3515 do_read_cache_page mm/filemap.c:3593 [inline] read_cache_page+0x37/0x170 mm/filemap.c:3602 read_mapping_page include/linux/pagemap.h:759 [inline] read_part_sector+0x78/0x2f0 block/partitions/core.c:715 read_lba block/partitions/efi.c:248 [inline] find_valid_gpt+0x1e7/0xcb0 block/partitions/efi.c:603 efi_partition+0xba/0x6e0 block/partitions/efi.c:720 check_partition block/partitions/core.c:147 [inline] blk_add_partitions block/partitions/core.c:600 [inline] bdev_disk_changed+0x3c5/0xc30 block/partitions/core.c:686 blkdev_get_whole block/bdev.c:686 [inline] blkdev_get_by_dev+0x3c0/0x9c0 block/bdev.c:823 blkdev_open+0xac/0x140 block/fops.c:481 do_dentry_open+0x521/0x850 fs/open.c:848 vfs_open+0x43/0x50 fs/open.c:981 do_open fs/namei.c:3520 [inline] path_openat+0x16cf/0x1b30 fs/namei.c:3653 do_filp_open+0x105/0x220 fs/namei.c:3680 do_sys_openat2+0xb5/0x2a0 fs/open.c:1278 do_sys_open fs/open.c:1294 [inline] __do_sys_openat fs/open.c:1310 [inline] __se_sys_openat fs/open.c:1305 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1305 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+0x46/0xb0 value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 21973 Comm: udevd Not tainted 5.19.0-rc3-syzkaller-00038-gca1fdab7fd27-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 blk_print_req_error: 6 callbacks suppressed I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0 I/O error, dev loop1, sector 264064 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0