================================================================== BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff8881010b0764 of 4 bytes by task 31425 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 0xffff8881010b0764 of 4 bytes by task 1863 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 do_read_cache_folio+0x20f/0x3a0 mm/filemap.c:3524 do_read_cache_page mm/filemap.c:3602 [inline] read_cache_page+0x37/0x170 mm/filemap.c:3611 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:878 vfs_open+0x43/0x50 fs/open.c:1011 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:1308 do_sys_open fs/open.c:1324 [inline] __do_sys_openat fs/open.c:1340 [inline] __se_sys_openat fs/open.c:1335 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1335 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: 1863 Comm: udevd Not tainted 5.19.0-syzkaller-01583-g7d0d3fa7339e-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ================================================================== Buffer I/O error on dev loop3, logical block 0, async page read Buffer I/O error on dev loop2, logical block 0, async page read