================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004ea6858 of 8 bytes by task 7914 on cpu 1: page_cache_delete_batch mm/filemap.c:308 [inline] delete_from_page_cache_batch+0x31b/0x770 mm/filemap.c:334 truncate_inode_pages_range+0x305/0x870 mm/truncate.c:370 truncate_inode_pages+0x20/0x30 mm/truncate.c:452 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x24e/0x270 block/bdev.c:152 sb_set_blocksize block/bdev.c:161 [inline] sb_min_blocksize+0x92/0x110 block/bdev.c:177 fat_fill_super+0xd98/0x26c0 fs/fat/inode.c:1650 vfat_fill_super+0x2c/0x40 fs/fat/namei_vfat.c:1200 mount_bdev+0x1e2/0x280 fs/super.c:1401 vfat_mount+0x2d/0x40 fs/fat/namei_vfat.c:1207 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610 vfs_get_tree+0x49/0x190 fs/super.c:1531 do_new_mount+0x200/0x650 fs/namespace.c:3040 path_mount+0x4aa/0xb70 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0004ea6858 of 8 bytes by task 1913 on cpu 0: folio_mapping+0x8e/0x110 mm/util.c:778 folio_evictable mm/internal.h:138 [inline] lru_add_fn+0x81/0x410 mm/swap.c:210 folio_batch_move_lru+0x1e1/0x2a0 mm/swap.c:246 folio_batch_add_and_move mm/swap.c:263 [inline] folio_add_lru+0xf1/0x140 mm/swap.c:534 filemap_add_folio+0xf8/0x150 mm/filemap.c:949 page_cache_ra_unbounded+0x1a0/0x320 mm/readahead.c:251 do_page_cache_ra mm/readahead.c:300 [inline] force_page_cache_ra+0x1c6/0x200 mm/readahead.c:331 page_cache_sync_ra+0xc8/0xf0 mm/readahead.c:705 page_cache_sync_readahead include/linux/pagemap.h:1213 [inline] filemap_get_pages mm/filemap.c:2581 [inline] filemap_read+0x3fd/0x1510 mm/filemap.c:2675 blkdev_read_iter+0x2c6/0x370 block/fops.c:598 call_read_iter include/linux/fs.h:2185 [inline] new_sync_read fs/read_write.c:389 [inline] vfs_read+0x3a5/0x560 fs/read_write.c:470 ksys_read+0xe8/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+0x3e/0x50 fs/read_write.c:621 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff888100405548 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1913 Comm: udevd Tainted: G W 6.1.0-rc3-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022 ==================================================================