================================================================== BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff888101ba82e4 of 4 bytes by task 3106 on cpu 1: __blk_mq_unfreeze_queue block/blk-mq.c:185 [inline] blk_mq_unfreeze_queue+0x38/0xc0 block/blk-mq.c:196 __loop_clr_fd+0x234/0x3b0 drivers/block/loop.c:1172 loop_clr_fd drivers/block/loop.c:1257 [inline] lo_ioctl+0xe93/0x12e0 drivers/block/loop.c:1563 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:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffff888101ba82e4 of 4 bytes by task 3187 on cpu 0: __bio_queue_enter+0x1e3/0x4f0 block/blk-core.c:358 bio_queue_enter block/blk.h:70 [inline] blk_mq_submit_bio+0x2db/0xd90 block/blk-mq.c:2976 __submit_bio+0x11c/0x350 block/blk-core.c:607 __submit_bio_noacct_mq block/blk-core.c:686 [inline] submit_bio_noacct_nocheck+0x449/0x5e0 block/blk-core.c:715 submit_bio_noacct+0x70c/0x8c0 block/blk-core.c:809 submit_bio+0xb7/0xc0 block/blk-core.c:842 mpage_bio_submit_read fs/mpage.c:82 [inline] do_mpage_readpage+0xd67/0xd80 fs/mpage.c:314 mpage_readahead+0x1ad/0x2d0 fs/mpage.c:381 blkdev_readahead+0x1c/0x20 block/fops.c:425 read_pages+0x9f/0x530 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:691 page_cache_sync_readahead include/linux/pagemap.h:1283 [inline] filemap_get_pages+0x251/0xf90 mm/filemap.c:2497 filemap_read+0x214/0x680 mm/filemap.c:2593 blkdev_read_iter+0x217/0x2c0 block/fops.c:742 call_read_iter include/linux/fs.h:2014 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x3c0/0x590 fs/read_write.c:470 ksys_read+0xeb/0x1a0 fs/read_write.c:613 __do_sys_read fs/read_write.c:623 [inline] __se_sys_read fs/read_write.c:621 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x44/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0x00000001 -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3187 Comm: udevd Tainted: G W 6.7.0-rc5-syzkaller-00125-gc7402612e2e6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ================================================================== udevd[3187]: inotify_add_watch(7, /dev/loop1p66, 10) failed: No such file or directory udevd[3187]: inotify_add_watch(7, /dev/loop1p138, 10) failed: No such file or directory