================================================================== BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff888102129df4 of 4 bytes by task 25318 on cpu 0: __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 0xffff888102129df4 of 4 bytes by task 2085 on cpu 1: __bio_queue_enter+0x1fa/0x510 block/blk-core.c:339 bio_queue_enter block/blk.h:76 [inline] blk_mq_get_new_requests block/blk-mq.c:2729 [inline] blk_mq_submit_bio+0x351/0xe90 block/blk-mq.c:2831 __submit_bio block/blk-core.c:595 [inline] __submit_bio_noacct_mq block/blk-core.c:672 [inline] submit_bio_noacct_nocheck+0x83d/0xaa0 block/blk-core.c:689 submit_bio_noacct+0x696/0x800 block/blk-core.c:796 submit_bio+0xfb/0x110 submit_bh_wbc+0x2b0/0x2f0 fs/buffer.c:2719 submit_bh fs/buffer.c:2725 [inline] block_read_full_folio+0x4a4/0x520 fs/buffer.c:2340 blkdev_read_folio+0x18/0x20 block/fops.c:381 filemap_read_folio mm/filemap.c:2394 [inline] do_read_cache_folio+0x191/0x3f0 mm/filemap.c:3519 read_cache_folio+0x36/0x40 mm/filemap.c:3551 read_mapping_folio include/linux/pagemap.h:762 [inline] read_part_sector+0x76/0x1e0 block/partitions/core.c:714 read_lba block/partitions/efi.c:248 [inline] find_valid_gpt block/partitions/efi.c:603 [inline] efi_partition+0x23b/0x1240 block/partitions/efi.c:720 check_partition block/partitions/core.c:146 [inline] blk_add_partitions block/partitions/core.c:599 [inline] bdev_disk_changed+0x3c5/0xc30 block/partitions/core.c:685 blkdev_get_whole+0x256/0x270 block/bdev.c:684 blkdev_get_by_dev+0x248/0x650 block/bdev.c:821 blkdev_open+0xac/0x140 block/fops.c:485 do_dentry_open+0x51a/0x8b0 fs/open.c:878 vfs_open+0x43/0x50 fs/open.c:1014 do_open fs/namei.c:3557 [inline] path_openat+0x169d/0x1b00 fs/namei.c:3691 do_filp_open+0x105/0x220 fs/namei.c:3718 do_sys_openat2+0xb5/0x2a0 fs/open.c:1311 do_sys_open fs/open.c:1327 [inline] __do_sys_openat fs/open.c:1343 [inline] __se_sys_openat fs/open.c:1338 [inline] __x64_sys_openat+0xef/0x110 fs/open.c:1338 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: 1 PID: 2085 Comm: udevd Not tainted 6.0.0-rc1-syzkaller-00025-g274a2eebf80c-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================