================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237c25ea8 of 1 bytes by task 11594 on cpu 0: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x285/0x2d0 mm/swap.c:991 folios_put include/linux/mm.h:1419 [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:510 folio_add_lru_vma+0x49/0x70 mm/swap.c:529 wp_page_copy mm/memory.c:3620 [inline] do_wp_page+0x1458/0x24e0 mm/memory.c:4013 handle_pte_fault mm/memory.c:6068 [inline] __handle_mm_fault mm/memory.c:6195 [inline] handle_mm_fault+0x77d/0x2c20 mm/memory.c:6364 do_user_addr_fault+0x636/0x1090 arch/x86/mm/fault.c:1336 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x62/0xa0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffff888237c25ea8 of 1 bytes by task 11599 on cpu 1: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:778 [inline] __lru_add_drain_all+0x12b/0x3f0 mm/swap.c:872 lru_cache_disable+0x1f/0x30 mm/swap.c:925 do_mbind mm/mempolicy.c:1456 [inline] kernel_mbind mm/mempolicy.c:1682 [inline] __do_sys_mbind mm/mempolicy.c:1756 [inline] __se_sys_mbind+0x496/0xac0 mm/mempolicy.c:1752 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1752 x64_sys_call+0x2932/0x2ff0 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: 1 UID: 0 PID: 11599 Comm: syz.3.3493 Tainted: G W 6.17.0-rc1-syzkaller-00016-g8742b2d8935f #0 PREEMPT(voluntary) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================