================================================================== BUG: KCSAN: data-race in delete_from_page_cache_batch / folio_mapping write to 0xffffea0004bc3c58 of 8 bytes by task 6683 on cpu 1: 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 mm/truncate.c:407 [inline] truncate_inode_pages_final+0x55/0x60 mm/truncate.c:442 evict+0x305/0x570 fs/inode.c:798 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 shrink_kill fs/dcache.c:1070 [inline] shrink_dentry_list+0x1bc/0x3e0 fs/dcache.c:1097 shrink_dcache_parent+0x43/0x1b0 do_one_tree+0x16/0xb0 fs/dcache.c:1560 shrink_dcache_for_umount+0x58/0xe0 fs/dcache.c:1577 generic_shutdown_super+0x3e/0x220 fs/super.c:620 kill_anon_super+0x2b/0x140 fs/super.c:1237 kill_litter_super+0x3d/0x50 fs/super.c:1247 ramfs_kill_sb+0x2d/0x40 fs/ramfs/inode.c:315 deactivate_locked_super+0x7d/0x1c0 fs/super.c:473 deactivate_super+0x9f/0xb0 fs/super.c:506 cleanup_mnt+0x268/0x2e0 fs/namespace.c:1373 __cleanup_mnt+0x19/0x20 fs/namespace.c:1380 task_work_run+0x13a/0x1a0 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xa8/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea0004bc3c58 of 8 bytes by task 6656 on cpu 0: 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+0x26/0x80 mm/swap.c:698 free_pages_and_swap_cache+0x69/0x410 mm/swap_state.c:320 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x2cf/0x440 mm/mmu_gather.c:373 zap_pte_range mm/memory.c:1714 [inline] zap_pmd_range mm/memory.c:1753 [inline] zap_pud_range mm/memory.c:1782 [inline] zap_p4d_range mm/memory.c:1803 [inline] unmap_page_range+0x1fc8/0x2380 mm/memory.c:1824 unmap_single_vma+0x142/0x1d0 mm/memory.c:1870 unmap_vmas+0x18d/0x2b0 mm/memory.c:1914 exit_mmap+0x18a/0x680 mm/mmap.c:1668 __mmput+0x28/0x1d0 kernel/fork.c:1348 mmput+0x4c/0x60 kernel/fork.c:1370 exit_mm+0xe4/0x190 kernel/exit.c:570 do_exit+0x559/0x17f0 kernel/exit.c:925 do_group_exit+0x102/0x150 kernel/exit.c:1087 get_signal+0xeb9/0x1000 kernel/signal.c:3017 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:329 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x62/0x120 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0xffff8881171e2fe0 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 6656 Comm: syz.0.905 Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================