================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea0005285918 of 8 bytes by task 4797 on cpu 1: page_cache_delete mm/filemap.c:152 [inline] __filemap_remove_folio+0x1ac/0x2c0 mm/filemap.c:232 filemap_remove_folio+0x6b/0x1f0 mm/filemap.c:264 truncate_inode_folio+0x42/0x50 mm/truncate.c:162 shmem_undo_range+0x25b/0xa70 mm/shmem.c:1036 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 __fput+0x3fb/0x6d0 fs/file_table.c:458 __fput_sync+0x96/0xc0 fs/file_table.c:535 __do_sys_close fs/open.c:1554 [inline] __se_sys_close+0x109/0x1b0 fs/open.c:1539 __x64_sys_close+0x1f/0x30 fs/open.c:1539 x64_sys_call+0x266c/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:4 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 0xffffea0005285918 of 8 bytes by task 4798 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 exit_mmap+0x158/0x680 mm/mmap.c:1662 __mmput+0x28/0x1d0 kernel/fork.c:1353 mmput+0x4c/0x60 kernel/fork.c:1375 exit_mm+0xe4/0x190 kernel/exit.c:570 do_exit+0x55e/0x17f0 kernel/exit.c:925 do_group_exit+0x102/0x150 kernel/exit.c:1087 get_signal+0xeb9/0x1000 kernel/signal.c:3016 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: 0xffff888109aa9078 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 4798 Comm: syz.9.21863 Tainted: G W 6.12.0-syzkaller-10740-g509f806f7f70 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================