================================================================== BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff888101808d94 of 4 bytes by task 10705 on cpu 0: __blk_mq_unfreeze_queue block/blk-mq.c:185 [inline] blk_mq_unfreeze_queue+0x38/0xc0 block/blk-mq.c:196 loop_change_fd drivers/block/loop.c:614 [inline] lo_ioctl+0x119c/0x12e0 drivers/block/loop.c:1561 blkdev_ioctl+0x375/0x460 block/ioctl.c:633 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:857 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888101808d94 of 4 bytes by task 10711 on cpu 1: __bio_queue_enter+0x1e3/0x4f0 block/blk-core.c:358 bio_queue_enter block/blk.h:70 [inline] blk_mq_get_new_requests block/blk-mq.c:2861 [inline] blk_mq_submit_bio+0x359/0xd70 block/blk-mq.c:2972 __submit_bio+0x11c/0x350 block/blk-core.c:599 __submit_bio_noacct_mq block/blk-core.c:678 [inline] submit_bio_noacct_nocheck+0x449/0x5e0 block/blk-core.c:707 submit_bio_noacct+0x700/0x8a0 block/blk-core.c:801 submit_bio+0xb7/0xc0 block/blk-core.c:834 submit_bh_wbc+0x2ca/0x300 fs/buffer.c:2821 submit_bh fs/buffer.c:2826 [inline] block_read_full_folio+0x63b/0x710 fs/buffer.c:2451 blkdev_read_folio+0x1c/0x20 block/fops.c:420 filemap_read_folio mm/filemap.c:2323 [inline] do_read_cache_folio+0x10a/0x5b0 mm/filemap.c:3691 read_cache_folio+0x3a/0x50 mm/filemap.c:3723 read_mapping_folio include/linux/pagemap.h:860 [inline] read_part_sector+0x7b/0x140 block/partitions/core.c:729 read_lba block/partitions/efi.c:248 [inline] find_valid_gpt block/partitions/efi.c:603 [inline] efi_partition+0x256/0x1270 block/partitions/efi.c:720 check_partition block/partitions/core.c:138 [inline] blk_add_partitions block/partitions/core.c:596 [inline] bdev_disk_changed+0x4d8/0xc70 block/partitions/core.c:700 blkdev_get_whole+0x227/0x240 block/bdev.c:653 blkdev_get_by_dev+0x236/0x390 block/bdev.c:795 bdev_open_by_dev+0x56/0xd0 block/bdev.c:840 blkdev_open+0xfb/0x200 block/fops.c:600 do_dentry_open+0x635/0xbd0 fs/open.c:948 vfs_open+0x4a/0x50 fs/open.c:1082 do_open fs/namei.c:3622 [inline] path_openat+0x1819/0x1d70 fs/namei.c:3779 do_filp_open+0xf6/0x200 fs/namei.c:3809 do_sys_openat2+0xab/0x110 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1466 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10711 Comm: syz-executor.3 Not tainted 6.6.0-syzkaller-14651-gd2f51b3516da #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 ================================================================== syz-executor.3 (10711) used greatest stack depth: 9816 bytes left