==================================================================
BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue
read-write to 0xffff888101e98d1c of 4 bytes by task 9461 on cpu 0:
__blk_mq_unfreeze_queue block/blk-mq.c:184 [inline]
blk_mq_unfreeze_queue+0x38/0xc0 block/blk-mq.c:195
__loop_clr_fd+0x22e/0x3a0 drivers/block/loop.c:1168
loop_clr_fd drivers/block/loop.c:1253 [inline]
lo_ioctl+0xe93/0x12e0 drivers/block/loop.c:1557
blkdev_ioctl+0x375/0x460 block/ioctl.c:634
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:52 [inline]
do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
read to 0xffff888101e98d1c of 4 bytes by task 7030 on cpu 1:
__bio_queue_enter+0x1e3/0x4f0 block/blk-core.c:359
bio_queue_enter block/blk.h:70 [inline]
blk_mq_submit_bio+0x15f/0xe30 block/blk-mq.c:2990
__submit_bio+0x11c/0x350 block/blk-core.c:608
__submit_bio_noacct_mq block/blk-core.c:687 [inline]
submit_bio_noacct_nocheck+0x449/0x5e0 block/blk-core.c:716
submit_bio_noacct+0x67d/0x830 block/blk-core.c:826
submit_bio+0x212/0x220 block/blk-core.c:868
mpage_bio_submit_read fs/mpage.c:82 [inline]
mpage_readahead+0x28a/0x2d0 fs/mpage.c:384
blkdev_readahead+0x1c/0x20 block/fops.c:440
read_pages+0x9f/0x540 mm/readahead.c:160
page_cache_ra_unbounded+0x2aa/0x2e0 mm/readahead.c:269
do_page_cache_ra mm/readahead.c:299 [inline]
force_page_cache_ra mm/readahead.c:330 [inline]
page_cache_sync_ra+0x24b/0x2a0 mm/readahead.c:689
page_cache_sync_readahead include/linux/pagemap.h:1300 [inline]
filemap_get_pages+0x251/0xf90 mm/filemap.c:2498
filemap_read+0x214/0x680 mm/filemap.c:2594
blkdev_read_iter+0x217/0x2c0 block/fops.c:757
call_read_iter include/linux/fs.h:2081 [inline]
new_sync_read fs/read_write.c:395 [inline]
vfs_read+0x5ab/0x6a0 fs/read_write.c:476
ksys_read+0xeb/0x1a0 fs/read_write.c:619
__do_sys_read fs/read_write.c:629 [inline]
__se_sys_read fs/read_write.c:627 [inline]
__x64_sys_read+0x42/0x50 fs/read_write.c:627
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x63/0x6b
value changed: 0x00000001 -> 0x00000000
Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7030 Comm: udevd Not tainted 6.8.0-rc6-syzkaller-00011-g45ec2f5f6ed3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
==================================================================
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
blk_print_req_error: 39 callbacks suppressed
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
blk_print_req_error: 66 callbacks suppressed
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
I/O error, dev loop0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0