================================================================== BUG: KCSAN: data-race in mlock_folio / need_mlock_drain read-write to 0xffff888237d2b590 of 1 bytes by task 7434 on cpu 1: folio_batch_add include/linux/pagevec.h:77 [inline] mlock_folio+0x136/0x210 mm/mlock.c:257 mlock_vma_folio mm/internal.h:881 [inline] __folio_add_anon_rmap mm/rmap.c:1352 [inline] folio_add_anon_rmap_ptes+0x219/0x220 mm/rmap.c:1375 remove_migration_pte+0x5cb/0x960 mm/migrate.c:332 rmap_walk_anon+0x28f/0x440 mm/rmap.c:2638 rmap_walk+0x5b/0x70 mm/rmap.c:2716 remove_migration_ptes mm/migrate.c:372 [inline] migrate_folio_move mm/migrate.c:1387 [inline] migrate_pages_batch+0x13a3/0x1950 mm/migrate.c:1897 migrate_pages_sync mm/migrate.c:1963 [inline] migrate_pages+0xff1/0x1820 mm/migrate.c:2072 do_mbind mm/mempolicy.c:1390 [inline] kernel_mbind mm/mempolicy.c:1533 [inline] __do_sys_mbind mm/mempolicy.c:1607 [inline] __se_sys_mbind+0xf76/0x1160 mm/mempolicy.c:1603 __x64_sys_mbind+0x78/0x90 mm/mempolicy.c:1603 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 read to 0xffff888237d2b590 of 1 bytes by task 7444 on cpu 0: folio_batch_count include/linux/pagevec.h:56 [inline] need_mlock_drain+0x30/0x50 mm/mlock.c:235 cpu_needs_drain mm/swap.c:792 [inline] __lru_add_drain_all+0x22a/0x3f0 mm/swap.c:880 lru_cache_disable+0x1f/0x30 mm/swap.c:933 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+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: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 7444 Comm: syz.0.1599 Tainted: G W 6.12.0-rc4-syzkaller-00045-gd12937763990 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================