================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004d8a758 of 8 bytes by task 21826 on cpu 0: page_cache_delete_batch mm/filemap.c:307 [inline] delete_from_page_cache_batch+0x32a/0x710 mm/filemap.c:333 truncate_inode_pages_range+0x1bd/0x6a0 mm/truncate.c:368 truncate_inode_pages+0x24/0x30 mm/truncate.c:448 kill_bdev block/bdev.c:76 [inline] set_blocksize+0x26c/0x290 block/bdev.c:152 sb_set_blocksize block/bdev.c:161 [inline] sb_min_blocksize+0x83/0x110 block/bdev.c:177 ext4_load_super fs/ext4/super.c:5039 [inline] __ext4_fill_super fs/ext4/super.c:5236 [inline] ext4_fill_super+0x39f/0x39a0 fs/ext4/super.c:5712 get_tree_bdev+0x272/0x300 fs/super.c:1598 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5744 vfs_get_tree+0x51/0x1b0 fs/super.c:1771 do_new_mount+0x203/0x660 fs/namespace.c:3337 path_mount+0x496/0xb30 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3863 __x64_sys_mount+0x67/0x80 fs/namespace.c:3863 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 0xffffea0004d8a758 of 8 bytes by task 31915 on cpu 1: folio_mapping+0x92/0x110 mm/util.c:782 folio_evictable mm/internal.h:162 [inline] lru_add_fn+0x8d/0x440 mm/swap.c:181 folio_batch_move_lru+0x21e/0x2f0 mm/swap.c:217 folio_batch_add_and_move mm/swap.c:234 [inline] folio_add_lru+0xc4/0x120 mm/swap.c:517 filemap_add_folio+0x103/0x160 mm/filemap.c:952 page_cache_ra_unbounded+0x15e/0x2e0 mm/readahead.c:250 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: 0xffff888100631e18 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 31915 Comm: udevd Not tainted 6.7.0-rc6-syzkaller-00248-g5254c0cbc92d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 ==================================================================