loop0: detected capacity change from 0 to 128 ================================================================== BUG: KCSAN: data-race in __filemap_add_folio / filemap_write_and_wait_range read-write to 0xffff888100630570 of 8 bytes by task 4910 on cpu 0: __filemap_add_folio+0x430/0x6f0 mm/filemap.c:920 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:972 page_cache_ra_unbounded+0x175/0x310 mm/readahead.c:268 do_page_cache_ra mm/readahead.c:320 [inline] force_page_cache_ra mm/readahead.c:349 [inline] page_cache_sync_ra+0x252/0x670 mm/readahead.c:562 page_cache_sync_readahead include/linux/pagemap.h:1394 [inline] filemap_get_pages+0x2c1/0x10e0 mm/filemap.c:2547 filemap_read+0x216/0x680 mm/filemap.c:2645 blkdev_read_iter+0x20e/0x2c0 block/fops.c:765 new_sync_read fs/read_write.c:488 [inline] vfs_read+0x5f6/0x720 fs/read_write.c:569 ksys_read+0xeb/0x1b0 fs/read_write.c:712 __do_sys_read fs/read_write.c:722 [inline] __se_sys_read fs/read_write.c:720 [inline] __x64_sys_read+0x42/0x50 fs/read_write.c:720 x64_sys_call+0x27d3/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:1 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888100630570 of 8 bytes by task 9108 on cpu 1: mapping_needs_writeback mm/filemap.c:635 [inline] filemap_write_and_wait_range+0x59/0x2c0 mm/filemap.c:684 filemap_write_and_wait include/linux/pagemap.h:68 [inline] sync_blockdev block/bdev.c:219 [inline] set_blocksize+0x1d0/0x270 block/bdev.c:171 sb_set_blocksize block/bdev.c:182 [inline] sb_min_blocksize+0x63/0xe0 block/bdev.c:198 fat_fill_super+0x33a/0x1bf0 fs/fat/inode.c:1597 vfat_fill_super+0x24/0x30 fs/fat/namei_vfat.c:1200 get_tree_bdev+0x256/0x2e0 fs/super.c:1635 vfat_get_tree+0x1c/0x30 fs/fat/namei_vfat.c:1205 vfs_get_tree+0x56/0x1e0 fs/super.c:1800 do_new_mount+0x227/0x690 fs/namespace.c:3507 path_mount+0x49b/0xb30 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4055 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4032 __x64_sys_mount+0x67/0x80 fs/namespace.c:4032 x64_sys_call+0x203e/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x0000000000000000 -> 0x0000000000000001 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 9108 Comm: syz.0.1875 Not tainted 6.12.0-rc1-syzkaller-00257-g2f91ff27b0ee #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== FAT-fs (loop0): bogus sectors per cluster 0 FAT-fs (loop0): Can't find a valid FAT filesystem