================================================================== BUG: KCSAN: data-race in folio_mapping / page_cache_delete write to 0xffffea0004ec6098 of 8 bytes by task 10651 on cpu 1: page_cache_delete+0x33e/0x390 mm/filemap.c:143 __filemap_remove_folio+0x3b/0xf0 mm/filemap.c:223 filemap_remove_folio+0x69/0x120 mm/filemap.c:255 truncate_inode_folio+0x204/0x210 mm/truncate.c:196 shmem_undo_range+0x3a2/0x1140 mm/shmem.c:952 shmem_truncate_range mm/shmem.c:1044 [inline] shmem_evict_inode+0x144/0x570 mm/shmem.c:1142 evict+0x1aa/0x410 fs/inode.c:665 iput_final fs/inode.c:1748 [inline] iput+0x3f9/0x580 fs/inode.c:1774 dentry_unlink_inode+0x22a/0x240 fs/dcache.c:401 __dentry_kill+0x28b/0x450 fs/dcache.c:607 dentry_kill+0x8d/0x1e0 dput+0x11e/0x1f0 fs/dcache.c:913 do_renameat2+0x6f2/0x9f0 fs/namei.c:4909 __do_sys_rename fs/namei.c:4953 [inline] __se_sys_rename fs/namei.c:4951 [inline] __x64_sys_rename+0x58/0x60 fs/namei.c:4951 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffea0004ec6098 of 8 bytes by task 13714 on cpu 0: folio_mapping+0x8e/0x110 mm/util.c:806 folio_evictable mm/internal.h:136 [inline] lru_add_fn+0x12e/0x520 mm/swap.c:210 folio_batch_move_lru+0x1e1/0x2a0 mm/swap.c:246 lru_add_drain_cpu+0x73/0x250 mm/swap.c:626 lru_add_drain+0x21/0x60 mm/swap.c:730 exit_mmap+0xf8/0x380 mm/mmap.c:3108 __mmput+0x27/0x1b0 kernel/fork.c:1187 mmput+0x3d/0x50 kernel/fork.c:1208 exit_mm+0xdb/0x170 kernel/exit.c:510 do_exit+0x525/0x16e0 kernel/exit.c:782 do_group_exit+0xa5/0x160 kernel/exit.c:925 get_signal+0xf54/0x1020 kernel/signal.c:2857 arch_do_signal_or_restart+0x87/0x2d0 arch/x86/kernel/signal.c:869 exit_to_user_mode_loop+0x78/0x130 kernel/entry/common.c:166 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0xffff88813c276e68 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13714 Comm: syz-executor.5 Not tainted 6.0.0-rc1-syzkaller-00399-g15b3f48a4339-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 ==================================================================