loop0: detected capacity change from 0 to 262160 ================================================================== BUG: KCSAN: data-race in blk_mq_rq_ctx_init / blk_mq_rq_ctx_init write to 0xffff888101cc7550 of 8 bytes by task 9915 on cpu 1: blk_mq_rq_ctx_init+0x3dc/0x4e0 block/blk-mq.c:344 __blk_mq_alloc_request+0x270/0x290 block/blk-mq.c:399 blk_mq_submit_bio+0x27f/0xec0 block/blk-mq.c:2199 __submit_bio_noacct_mq block/blk-core.c:998 [inline] submit_bio_noacct+0x6e2/0x7d0 block/blk-core.c:1031 submit_bio+0x10c/0x190 mpage_bio_submit fs/mpage.c:66 [inline] mpage_readahead+0x23e/0x280 fs/mpage.c:393 blkdev_readahead+0x18/0x20 block/fops.c:347 read_pages+0xb6/0x540 mm/readahead.c:130 page_cache_ra_unbounded+0x3d2/0x430 mm/readahead.c:239 do_page_cache_ra mm/readahead.c:269 [inline] force_page_cache_ra+0x256/0x290 mm/readahead.c:301 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:575 page_cache_sync_readahead include/linux/pagemap.h:883 [inline] filemap_get_pages mm/filemap.c:2545 [inline] filemap_read+0x3ad/0x1220 mm/filemap.c:2628 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2779 blkdev_read_iter+0xb9/0xf0 block/fops.c:545 call_read_iter include/linux/fs.h:2157 [inline] new_sync_read fs/read_write.c:404 [inline] vfs_read+0x66c/0x750 fs/read_write.c:485 ksys_read+0xd9/0x190 fs/read_write.c:623 __do_sys_read fs/read_write.c:633 [inline] __se_sys_read fs/read_write.c:631 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:631 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888101cc7550 of 8 bytes by task 9907 on cpu 0: blk_mq_rq_ctx_init+0x3ca/0x4e0 block/blk-mq.c:344 __blk_mq_alloc_request+0x270/0x290 block/blk-mq.c:399 blk_mq_submit_bio+0x27f/0xec0 block/blk-mq.c:2199 __submit_bio_noacct_mq block/blk-core.c:998 [inline] submit_bio_noacct+0x6e2/0x7d0 block/blk-core.c:1031 submit_bio+0x10c/0x190 submit_bh_wbc+0x2f3/0x330 fs/buffer.c:3054 submit_bh fs/buffer.c:3060 [inline] __sync_dirty_buffer+0x136/0x1e0 fs/buffer.c:3155 sync_dirty_buffer+0x16/0x20 fs/buffer.c:3168 fat_mirror_bhs+0x24b/0x330 fs/fat/fatent.c:399 fat_ent_write+0xc2/0xd0 fs/fat/fatent.c:422 fat_chain_add+0x15b/0x410 fs/fat/misc.c:130 fat_add_cluster fs/fat/inode.c:113 [inline] __fat_get_block fs/fat/inode.c:155 [inline] fat_get_block+0x48d/0x610 fs/fat/inode.c:190 __block_write_begin_int+0x4c5/0x1080 fs/buffer.c:2010 __block_write_begin fs/buffer.c:2060 [inline] block_write_begin fs/buffer.c:2120 [inline] cont_write_begin+0x542/0x870 fs/buffer.c:2469 fat_write_begin+0x61/0xf0 fs/fat/inode.c:235 generic_perform_write+0x1b8/0x3e0 mm/filemap.c:3770 __generic_file_write_iter+0x174/0x310 mm/filemap.c:3897 generic_file_write_iter+0x75/0x130 mm/filemap.c:3929 call_write_iter include/linux/fs.h:2163 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0x7bc/0x900 fs/read_write.c:594 ksys_write+0xd9/0x190 fs/read_write.c:647 __do_sys_write fs/read_write.c:659 [inline] __se_sys_write fs/read_write.c:656 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:656 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x000000000000280d -> 0x000000000000280e Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 9907 Comm: syz-executor.0 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================