================================================================== BUG: KCSAN: data-race in __delete_from_page_cache / page_mapping write to 0xffffea0004d22098 of 8 bytes by task 2534 on cpu 0: page_cache_delete mm/filemap.c:145 [inline] __delete_from_page_cache+0x1b4/0x280 mm/filemap.c:232 delete_from_page_cache+0x82/0x160 mm/filemap.c:266 truncate_inode_page+0x3e/0x50 mm/truncate.c:219 shmem_undo_range+0x290/0xea0 mm/shmem.c:955 shmem_truncate_range mm/shmem.c:1058 [inline] shmem_evict_inode+0x115/0x5b0 mm/shmem.c:1140 evict+0x1c8/0x3c0 fs/inode.c:588 iput_final fs/inode.c:1664 [inline] iput+0x430/0x580 fs/inode.c:1690 dentry_unlink_inode+0x273/0x290 fs/dcache.c:376 __dentry_kill+0x2af/0x4e0 fs/dcache.c:582 dput+0xc6/0x360 fs/dcache.c:888 __fput+0x3e4/0x520 fs/file_table.c:293 ____fput+0x11/0x20 fs/file_table.c:313 task_work_run+0xae/0x130 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x156/0x190 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:300 do_syscall_64+0x50/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffea0004d22098 of 8 bytes by task 2538 on cpu 1: page_mapping+0x111/0x1c0 mm/util.c:725 page_evictable mm/internal.h:83 [inline] __pagevec_lru_add_fn+0x82/0x490 mm/swap.c:1024 __pagevec_lru_add+0x189/0x240 mm/swap.c:1052 lru_cache_add mm/swap.c:453 [inline] lru_cache_add_inactive_or_unevictable+0x156/0x270 mm/swap.c:484 do_anonymous_page+0x716/0x8b0 mm/memory.c:3808 handle_pte_fault mm/memory.c:4557 [inline] __handle_mm_fault mm/memory.c:4694 [inline] handle_mm_fault+0x7f5/0x1580 mm/memory.c:4792 do_user_addr_fault+0x609/0xbe0 arch/x86/mm/fault.c:1397 handle_page_fault arch/x86/mm/fault.c:1485 [inline] exc_page_fault+0x91/0x220 arch/x86/mm/fault.c:1541 asm_exc_page_fault+0x1e/0x30 value changed: 0xffff88810831c220 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 2538 Comm: syz-executor.2 Not tainted 5.15.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================