================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237d25e68 of 1 bytes by task 4702 on cpu 1: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x285/0x2d0 mm/swap.c:986 folios_put include/linux/mm.h:1415 [inline] folio_batch_move_lru+0x1fd/0x230 mm/swap.c:175 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x14a/0x1f0 mm/swap.c:505 shmem_alloc_and_add_folio mm/shmem.c:1949 [inline] shmem_get_folio_gfp+0x7ab/0xd60 mm/shmem.c:2536 shmem_get_folio mm/shmem.c:2642 [inline] shmem_fallocate+0x57c/0x840 mm/shmem.c:3750 vfs_fallocate+0x413/0x450 fs/open.c:341 ksys_fallocate fs/open.c:365 [inline] __do_sys_fallocate fs/open.c:370 [inline] __se_sys_fallocate fs/open.c:368 [inline] __x64_sys_fallocate+0x7a/0xd0 fs/open.c:368 x64_sys_call+0x2b88/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:286 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888237d25e68 of 1 bytes by task 4705 on cpu 0: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:773 [inline] __lru_add_drain_all+0x12b/0x3f0 mm/swap.c:867 lru_cache_disable+0x1f/0x30 mm/swap.c:920 do_mbind mm/mempolicy.c:1459 [inline] kernel_mbind mm/mempolicy.c:1685 [inline] __do_sys_mbind mm/mempolicy.c:1759 [inline] __se_sys_mbind+0x496/0xac0 mm/mempolicy.c:1755 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1755 x64_sys_call+0x14af/0x2fb0 arch/x86/include/generated/asm/syscalls_64.h:238 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x01 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 4705 Comm: syz.2.442 Not tainted 6.16.0-rc6-syzkaller-00002-g155a3c003e55 #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ==================================================================