================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004b669d8 of 8 bytes by task 4997 on cpu 0: page_cache_delete_batch mm/filemap.c:317 [inline] delete_from_page_cache_batch+0x308/0x700 mm/filemap.c:343 truncate_inode_pages_range+0x1c5/0x6b0 mm/truncate.c:327 truncate_inode_pages+0x24/0x30 mm/truncate.c:407 kill_bdev block/bdev.c:91 [inline] set_blocksize+0x258/0x270 block/bdev.c:173 sb_set_blocksize+0x2c/0xb0 block/bdev.c:182 ext4_load_super fs/ext4/super.c:5107 [inline] __ext4_fill_super fs/ext4/super.c:5259 [inline] ext4_fill_super+0xdca/0x3a10 fs/ext4/super.c:5733 get_tree_bdev_flags+0x29f/0x310 fs/super.c:1636 get_tree_bdev+0x1f/0x30 fs/super.c:1659 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5765 vfs_get_tree+0x56/0x1e0 fs/super.c:1814 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:4057 [inline] __se_sys_mount+0x27c/0x2d0 fs/namespace.c:4034 __x64_sys_mount+0x67/0x80 fs/namespace.c:4034 x64_sys_call+0x2c84/0x2dc0 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 read to 0xffffea0004b669d8 of 8 bytes by task 3593 on cpu 1: folio_mapping+0xa0/0x120 mm/util.c:847 folio_evictable mm/internal.h:435 [inline] lru_add+0x89/0x440 mm/swap.c:136 folio_batch_move_lru+0x15f/0x230 mm/swap.c:168 lru_add_drain_cpu+0x7c/0x260 mm/swap.c:616 lru_add_drain mm/swap.c:698 [inline] __folio_batch_release+0x51/0xc0 mm/swap.c:1019 folio_batch_release include/linux/pagevec.h:101 [inline] shmem_undo_range+0x35b/0xa70 mm/shmem.c:1040 shmem_truncate_range mm/shmem.c:1152 [inline] shmem_evict_inode+0x14d/0x530 mm/shmem.c:1280 evict+0x2f0/0x570 fs/inode.c:796 iput_final fs/inode.c:1946 [inline] iput+0x42a/0x5b0 fs/inode.c:1972 dentry_unlink_inode+0x24f/0x260 fs/dcache.c:422 __dentry_kill+0x18b/0x4c0 fs/dcache.c:625 dput+0x5c/0xd0 fs/dcache.c:867 do_renameat2+0x748/0xa70 fs/namei.c:5226 __do_sys_rename fs/namei.c:5271 [inline] __se_sys_rename fs/namei.c:5269 [inline] __x64_sys_rename+0x58/0x70 fs/namei.c:5269 x64_sys_call+0x2b1c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:83 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: 0xffff8881004c1198 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3593 Comm: udevd Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================