================================================================== BUG: KCSAN: data-race in __filemap_remove_folio / migrate_pages_batch write to 0xffffea00046ed698 of 8 bytes by task 11941 on cpu 1: page_cache_delete mm/filemap.c:152 [inline] __filemap_remove_folio+0x1ac/0x2c0 mm/filemap.c:232 filemap_remove_folio+0x6c/0x1f0 mm/filemap.c:264 truncate_inode_folio+0x42/0x50 mm/truncate.c:195 shmem_undo_range+0x25e/0xa50 mm/shmem.c:1001 shmem_truncate_range mm/shmem.c:1114 [inline] shmem_evict_inode+0x14d/0x530 mm/shmem.c:1242 evict+0x1ae/0x420 fs/inode.c:667 iput_final fs/inode.c:1741 [inline] iput+0x432/0x5c0 fs/inode.c:1767 dentry_unlink_inode+0x249/0x260 fs/dcache.c:400 __dentry_kill+0x188/0x4b0 fs/dcache.c:603 dput+0x5c/0xd0 fs/dcache.c:845 __fput+0x448/0x660 fs/file_table.c:430 ____fput+0x15/0x20 fs/file_table.c:450 task_work_run+0x13a/0x1a0 kernel/task_work.c:180 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:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xbe/0x130 kernel/entry/common.c:218 do_syscall_64+0xd6/0x1c0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffea00046ed698 of 8 bytes by task 11931 on cpu 0: __folio_test_movable include/linux/page-flags.h:713 [inline] migrate_folio_unmap mm/migrate.c:1119 [inline] migrate_pages_batch+0x285/0x1940 mm/migrate.c:1701 migrate_pages_sync mm/migrate.c:1867 [inline] migrate_pages+0xedf/0x1820 mm/migrate.c:1976 do_mbind mm/mempolicy.c:1390 [inline] kernel_mbind mm/mempolicy.c:1533 [inline] __do_sys_mbind mm/mempolicy.c:1607 [inline] __se_sys_mbind+0xf76/0x1160 mm/mempolicy.c:1603 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1603 x64_sys_call+0x1d0a/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:238 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 value changed: 0xffff888117767cb8 -> 0x0000000000000000 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 11931 Comm: syz-executor.0 Tainted: G W 6.10.0-rc2-syzkaller-00064-g71d7b52cc33b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 ==================================================================