================================================================== BUG: KCSAN: data-race in __lru_add_drain_all / folios_put_refs write to 0xffff888237c25ea8 of 1 bytes by task 5382 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 migrate_folio_move mm/migrate.c:1361 [inline] migrate_folios_move mm/migrate.c:1697 [inline] migrate_pages_batch+0x12dc/0x1a30 mm/migrate.c:1944 migrate_pages_sync mm/migrate.c:1974 [inline] migrate_pages+0xf5f/0x1770 mm/migrate.c:2083 do_mbind mm/mempolicy.c:1539 [inline] kernel_mbind mm/mempolicy.c:1682 [inline] __do_sys_mbind mm/mempolicy.c:1756 [inline] __se_sys_mbind+0x975/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 read to 0xffff888237c25ea8 of 1 bytes by task 5386 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: 5386 Comm: syz.2.770 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 ==================================================================