================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237d2ab78 of 1 bytes by task 10510 on cpu 1: folio_batch_reinit include/linux/pagevec.h:50 [inline] folios_put_refs+0x266/0x2b0 mm/swap.c:1033 folios_put include/linux/mm.h:1549 [inline] folio_batch_move_lru+0x202/0x230 mm/swap.c:222 folio_batch_add_and_move mm/swap.c:231 [inline] folio_add_lru+0x13e/0x1f0 mm/swap.c:526 folio_add_lru_vma+0x48/0x60 mm/swap.c:546 wp_page_copy mm/memory.c:3403 [inline] do_wp_page+0x172d/0x22c0 mm/memory.c:3727 handle_pte_fault mm/memory.c:5537 [inline] __handle_mm_fault mm/memory.c:5664 [inline] handle_mm_fault+0xc4d/0x2a30 mm/memory.c:5832 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 0xffff888237d2ab78 of 1 bytes by task 10500 on cpu 0: folio_batch_count include/linux/pagevec.h:56 [inline] cpu_needs_drain mm/swap.c:818 [inline] __lru_add_drain_all+0x12c/0x410 mm/swap.c:912 lru_cache_disable+0x1f/0x30 mm/swap.c:965 do_mbind mm/mempolicy.c:1305 [inline] kernel_mbind mm/mempolicy.c:1531 [inline] __do_sys_mbind mm/mempolicy.c:1605 [inline] __se_sys_mbind+0x4df/0x1160 mm/mempolicy.c:1601 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1601 x64_sys_call+0x2b4d/0x2d60 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: 0x06 -> 0x00 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 10500 Comm: syz.1.2975 Not tainted 6.11.0-rc6-syzkaller-00048-gc7fb1692dc01 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 ==================================================================