================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004a41dd8 of 8 bytes by task 3714 on cpu 1: page_cache_delete_batch mm/filemap.c:306 [inline] delete_from_page_cache_batch+0x316/0x700 mm/filemap.c:332 truncate_inode_pages_range+0x1c7/0x6c0 mm/truncate.c:376 truncate_inode_pages+0x24/0x30 mm/truncate.c:456 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x25b/0x270 block/bdev.c:175 sb_set_blocksize block/bdev.c:186 [inline] sb_min_blocksize+0xb7/0x140 block/bdev.c:201 ext4_load_super fs/ext4/super.c:5043 [inline] __ext4_fill_super fs/ext4/super.c:5264 [inline] ext4_fill_super+0x396/0x3580 fs/ext4/super.c:5726 get_tree_bdev_flags+0x2b4/0x330 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5758 vfs_get_tree+0x56/0x1e0 fs/super.c:1759 do_new_mount+0x246/0x6b0 fs/namespace.c:3881 path_mount+0x49b/0xb30 fs/namespace.c:4208 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x28f/0x2e0 fs/namespace.c:4409 __x64_sys_mount+0x67/0x80 fs/namespace.c:4409 x64_sys_call+0xd11/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004a41dd8 of 8 bytes by task 3676 on cpu 0: folio_mapping+0xa0/0x120 mm/util.c:701 folio_evictable mm/internal.h:480 [inline] lru_add+0x89/0x440 mm/swap.c:136 folio_batch_move_lru+0x161/0x230 mm/swap.c:168 lru_add_drain_cpu+0x7e/0x260 mm/swap.c:642 lru_add_drain mm/swap.c:730 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1049 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x35d/0xa80 mm/shmem.c:1125 shmem_truncate_range mm/shmem.c:1237 [inline] shmem_evict_inode+0x13b/0x520 mm/shmem.c:1365 evict+0x2de/0x550 fs/inode.c:810 iput_final fs/inode.c:1898 [inline] iput+0x42a/0x5b0 fs/inode.c:1924 dentry_unlink_inode+0x24f/0x260 fs/dcache.c:457 __dentry_kill+0x18b/0x4c0 fs/dcache.c:660 dput+0x5c/0xd0 fs/dcache.c:902 do_renameat2+0x6b4/0xac0 fs/namei.c:5272 __do_sys_rename fs/namei.c:5317 [inline] __se_sys_rename fs/namei.c:5315 [inline] __x64_sys_rename+0x58/0x70 fs/namei.c:5315 x64_sys_call+0x2cd9/0x2e10 arch/x86/include/generated/asm/syscalls_64.h:83 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0x1a0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff888100631e18 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3676 Comm: udevd Not tainted 6.15.0-rc2-syzkaller-00488-g6fea5fabd332 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================