loop7: detected capacity change from 0 to 16384 ================================================================== BUG: KCSAN: data-race in __bio_queue_enter / blk_mq_unfreeze_queue read-write to 0xffff8881025d1bd4 of 4 bytes by task 16873 on cpu 1: __blk_mq_unfreeze_queue block/blk-mq.c:184 [inline] blk_mq_unfreeze_queue+0x38/0xc0 block/blk-mq.c:195 loop_set_block_size drivers/block/loop.c:1501 [inline] lo_simple_ioctl drivers/block/loop.c:1522 [inline] lo_ioctl+0xe27/0x12e0 drivers/block/loop.c:1585 blkdev_ioctl+0x375/0x460 block/ioctl.c:621 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xcf/0x140 fs/ioctl.c:856 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff8881025d1bd4 of 4 bytes by task 16849 on cpu 0: __bio_queue_enter+0x1e3/0x4f0 block/blk-core.c:357 bio_queue_enter block/blk.h:71 [inline] blk_mq_get_new_requests block/blk-mq.c:2860 [inline] blk_mq_submit_bio+0x359/0xd70 block/blk-mq.c:2971 __submit_bio+0x11c/0x350 block/blk-core.c:598 __submit_bio_noacct_mq block/blk-core.c:677 [inline] submit_bio_noacct_nocheck+0x449/0x5e0 block/blk-core.c:706 submit_bio_noacct+0x700/0x8a0 block/blk-core.c:800 submit_bio+0xb7/0xc0 block/blk-core.c:833 mpage_bio_submit_read fs/mpage.c:82 [inline] mpage_readahead+0x28f/0x2d0 fs/mpage.c:385 blkdev_readahead+0x1c/0x20 block/fops.c:402 read_pages+0xa6/0x560 mm/readahead.c:160 page_cache_ra_unbounded+0x2a9/0x2e0 mm/readahead.c:269 do_page_cache_ra mm/readahead.c:299 [inline] page_cache_ra_order mm/readahead.c:559 [inline] ondemand_readahead+0x550/0x6c0 mm/readahead.c:681 page_cache_sync_ra+0x284/0x2a0 mm/readahead.c:708 page_cache_sync_readahead include/linux/pagemap.h:1213 [inline] filemap_get_pages+0x254/0xea0 mm/filemap.c:2563 filemap_splice_read+0x23a/0x810 mm/filemap.c:2925 vfs_splice_read fs/splice.c:996 [inline] splice_direct_to_actor+0x28c/0x690 fs/splice.c:1072 do_splice_direct+0x10d/0x190 fs/splice.c:1197 do_sendfile+0x3b6/0x9a0 fs/read_write.c:1254 __do_sys_sendfile64 fs/read_write.c:1322 [inline] __se_sys_sendfile64 fs/read_write.c:1308 [inline] __x64_sys_sendfile64+0x110/0x150 fs/read_write.c:1308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 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: 16849 Comm: syz-executor.4 Not tainted 6.5.0-rc5-syzkaller-00296-gf8de32cc060b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 ================================================================== I/O error, dev loop7, sector 1536 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 2 Buffer I/O error on dev loop7, logical block 192, lost async page write