================================================================== BUG: KCSAN: data-race in mlock_new_page / need_mlock_page_drain read-write to 0xffff888237c27f18 of 1 bytes by task 5119 on cpu 0: pagevec_add include/linux/pagevec.h:64 [inline] mlock_new_page+0x238/0x500 mm/mlock.c:280 lru_cache_add_inactive_or_unevictable+0x55/0x60 mm/swap.c:509 do_anonymous_page+0x706/0xa20 mm/memory.c:4124 handle_pte_fault mm/memory.c:4909 [inline] __handle_mm_fault mm/memory.c:5053 [inline] handle_mm_fault+0x8a0/0xa90 mm/memory.c:5151 faultin_page mm/gup.c:990 [inline] __get_user_pages+0x34a/0xc40 mm/gup.c:1219 populate_vma_page_range mm/gup.c:1576 [inline] __mm_populate+0x26e/0x3a0 mm/gup.c:1689 mm_populate include/linux/mm.h:2663 [inline] __do_sys_mlockall+0x24b/0x2d0 mm/mlock.c:720 __se_sys_mlockall mm/mlock.c:696 [inline] __x64_sys_mlockall+0x1a/0x20 mm/mlock.c:696 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffff888237c27f18 of 1 bytes by task 5114 on cpu 1: pagevec_count include/linux/pagevec.h:51 [inline] need_mlock_page_drain+0x2c/0x50 mm/mlock.c:236 cpu_needs_drain mm/swap.c:779 [inline] __lru_add_drain_all+0x328/0x450 mm/swap.c:867 lru_cache_disable+0x1b/0x20 mm/swap.c:920 do_mbind+0x416/0x8b0 mm/mempolicy.c:1290 kernel_mbind mm/mempolicy.c:1468 [inline] __do_sys_mbind mm/mempolicy.c:1546 [inline] __se_sys_mbind+0x13b/0x3f0 mm/mempolicy.c:1542 __x64_sys_mbind+0x74/0x80 mm/mempolicy.c:1542 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00 -> 0x01 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 5114 Comm: syz-executor.4 Not tainted 6.0.0-rc6-syzkaller-00030-g06f7db949993-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2022 ==================================================================