================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea000481ea58 of 8 bytes by task 3875 on cpu 0: page_cache_delete mm/filemap.c:144 [inline] __filemap_remove_folio+0x1ae/0x2c0 mm/filemap.c:224 filemap_remove_folio+0x6b/0x1c0 mm/filemap.c:253 truncate_inode_folio+0x42/0x50 mm/truncate.c:176 shmem_undo_range+0x25d/0xa80 mm/shmem.c:1121 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 __fput+0x428/0x640 fs/file_table.c:473 ____fput+0x1c/0x30 fs/file_table.c:493 task_work_run+0x13c/0x1b0 kernel/task_work.c:227 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/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea000481ea58 of 8 bytes by task 3862 on cpu 1: 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 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x148/0x1f0 mm/swap.c:505 filemap_add_folio+0x135/0x1b0 mm/filemap.c:985 page_cache_ra_unbounded+0x1c1/0x350 mm/readahead.c:275 do_page_cache_ra mm/readahead.c:327 [inline] page_cache_ra_order+0x104/0x120 mm/readahead.c:532 do_sync_mmap_readahead+0x263/0x290 mm/filemap.c:3261 filemap_fault+0x324/0xbc0 mm/filemap.c:3402 __do_fault+0xb6/0x200 mm/memory.c:5098 do_shared_fault mm/memory.c:5582 [inline] do_fault mm/memory.c:5656 [inline] do_pte_missing mm/memory.c:4160 [inline] handle_pte_fault mm/memory.c:5997 [inline] __handle_mm_fault mm/memory.c:6140 [inline] handle_mm_fault+0xc86/0x2e80 mm/memory.c:6309 do_user_addr_fault arch/x86/mm/fault.c:1337 [inline] handle_page_fault arch/x86/mm/fault.c:1480 [inline] exc_page_fault+0x3b9/0x6a0 arch/x86/mm/fault.c:1538 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 value changed: 0xffff8881182db358 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 3862 Comm: syz.4.121 Not tainted 6.15.0-rc1-syzkaller-00325-g7cdabafc0012 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 ==================================================================