================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237d2ab68 of 1 bytes by task 17083 on cpu 1: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x26d/0x2b0 mm/swap.c:956 folios_put include/linux/mm.h:1547 [inline] folio_batch_move_lru+0x202/0x230 mm/swap.c:175 __folio_batch_add_and_move mm/swap.c:196 [inline] folio_add_lru+0x145/0x1f0 mm/swap.c:482 folio_add_lru_vma+0x48/0x60 mm/swap.c:501 set_pte_range+0x1eb/0x430 mm/memory.c:5063 finish_fault+0x692/0xa10 mm/memory.c:5186 do_cow_fault mm/memory.c:5364 [inline] do_fault mm/memory.c:5458 [inline] do_pte_missing mm/memory.c:3979 [inline] handle_pte_fault mm/memory.c:5801 [inline] __handle_mm_fault mm/memory.c:5944 [inline] handle_mm_fault+0x19b9/0x2ac0 mm/memory.c:6112 do_user_addr_fault arch/x86/mm/fault.c:1338 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x3b9/0x650 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 read to 0xffff888237d2ab68 of 1 bytes by task 17085 on cpu 0: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:741 [inline] __lru_add_drain_all+0x136/0x3f0 mm/swap.c:835 lru_cache_disable+0x1f/0x30 mm/swap.c:888 do_mbind mm/mempolicy.c:1307 [inline] kernel_mbind mm/mempolicy.c:1533 [inline] __do_sys_mbind mm/mempolicy.c:1607 [inline] __se_sys_mbind+0x4df/0x1160 mm/mempolicy.c:1603 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1603 x64_sys_call+0x2662/0x2dc0 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: 0x01 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 17085 Comm: syz.7.16289 Tainted: G W 6.13.0-rc1-syzkaller-00025-gfeffde684ac2 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================