================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / folio_mapping write to 0xffffea0004943458 of 8 bytes by task 23251 on cpu 0: page_cache_delete mm/filemap.c:143 [inline] __filemap_remove_folio+0x1b8/0x2d0 mm/filemap.c:223 filemap_remove_folio+0x6c/0x1f0 mm/filemap.c:255 truncate_inode_folio+0x42/0x50 mm/truncate.c:195 shmem_undo_range+0x256/0xa40 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x14d/0x530 mm/shmem.c:1242 evict+0x1aa/0x410 fs/inode.c:665 iput_final fs/inode.c:1739 [inline] iput+0x42c/0x5c0 fs/inode.c:1765 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:400 __dentry_kill+0x182/0x4a0 fs/dcache.c:603 dput+0x54/0xc0 fs/dcache.c:845 __fput+0x41d/0x630 fs/file_table.c:384 __fput_sync+0x44/0x50 fs/file_table.c:461 __do_sys_close fs/open.c:1554 [inline] __se_sys_close+0xfa/0x1a0 fs/open.c:1539 __x64_sys_close+0x1f/0x30 fs/open.c:1539 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b read to 0xffffea0004943458 of 8 bytes by task 23256 on cpu 1: folio_mapping+0x92/0x110 mm/util.c:782 folio_evictable mm/internal.h:162 [inline] lru_add_fn+0x8d/0x430 mm/swap.c:181 folio_batch_move_lru+0x21e/0x2f0 mm/swap.c:217 folio_batch_add_and_move mm/swap.c:234 [inline] folio_add_lru mm/swap.c:517 [inline] folio_add_lru_vma+0xf4/0x160 mm/swap.c:537 wp_page_copy mm/memory.c:3206 [inline] do_wp_page+0x1551/0x1f20 mm/memory.c:3525 handle_pte_fault mm/memory.c:5160 [inline] __handle_mm_fault mm/memory.c:5285 [inline] handle_mm_fault+0xb80/0x27c0 mm/memory.c:5450 do_user_addr_fault arch/x86/mm/fault.c:1415 [inline] handle_page_fault arch/x86/mm/fault.c:1507 [inline] exc_page_fault+0x2f9/0x6d0 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570 __put_user_8+0x11/0x20 arch/x86/lib/putuser.S:105 clear_rseq_cs kernel/rseq.c:257 [inline] rseq_ip_fixup kernel/rseq.c:291 [inline] __rseq_handle_notify_resume+0x2b9/0xbf0 kernel/rseq.c:329 rseq_handle_notify_resume include/linux/rseq.h:38 [inline] resume_user_mode_work include/linux/resume_user_mode.h:62 [inline] exit_to_user_mode_loop kernel/entry/common.c:108 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline] syscall_exit_to_user_mode+0x8f/0x130 kernel/entry/common.c:212 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x63/0x6b value changed: 0xffff888128626e08 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 23256 Comm: syz-executor.0 Not tainted 6.8.0-rc4-syzkaller-00003-g716f4aaa7b48 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 ==================================================================