================================================================== BUG: KCSAN: data-race in mlock_new_page / need_mlock_page_drain read-write to 0xffff888237c27ec0 of 1 bytes by task 7847 on cpu 0: pagevec_add include/linux/pagevec.h:75 [inline] mlock_new_page+0x238/0x500 mm/mlock.c:280 lru_cache_add_inactive_or_unevictable+0x55/0x60 mm/swap.c:486 do_anonymous_page+0x706/0xa20 mm/memory.c:4108 handle_pte_fault mm/memory.c:4893 [inline] __handle_mm_fault mm/memory.c:5034 [inline] handle_mm_fault+0x8a0/0xa90 mm/memory.c:5132 faultin_page mm/gup.c:953 [inline] __get_user_pages+0x34a/0xbf0 mm/gup.c:1174 populate_vma_page_range mm/gup.c:1518 [inline] __mm_populate+0x26e/0x3a0 mm/gup.c:1631 mm_populate include/linux/mm.h:2706 [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+0x46/0xb0 read to 0xffff888237c27ec0 of 1 bytes by task 7837 on cpu 1: pagevec_count include/linux/pagevec.h:62 [inline] need_mlock_page_drain+0x2c/0x50 mm/mlock.c:236 __lru_add_drain_all+0x24c/0x3e0 mm/swap.c:832 lru_add_drain_all+0xc/0x10 mm/swap.c:849 check_and_migrate_movable_pages+0x1e6/0x720 mm/gup.c:1908 __gup_longterm_locked+0x193/0x280 mm/gup.c:1988 __gup_longterm_unlocked+0x98/0x100 mm/gup.c:2787 internal_get_user_pages_fast+0x818/0x8c0 mm/gup.c:2882 pin_user_pages_fast+0x49/0x70 mm/gup.c:3005 rds_pin_pages net/rds/rdma.c:163 [inline] rds_cmsg_rdma_args+0x6ca/0xc60 net/rds/rdma.c:718 rds_cmsg_send+0x18b/0x3a0 net/rds/send.c:1005 rds_sendmsg+0xc90/0x1430 net/rds/send.c:1316 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg net/socket.c:734 [inline] ____sys_sendmsg+0x38f/0x500 net/socket.c:2492 ___sys_sendmsg net/socket.c:2546 [inline] __sys_sendmsg+0x197/0x230 net/socket.c:2575 __do_sys_sendmsg net/socket.c:2584 [inline] __se_sys_sendmsg net/socket.c:2582 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2582 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+0x46/0xb0 value changed: 0x00 -> 0x05 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7837 Comm: syz-executor.4 Not tainted 5.18.0-syzkaller-11080-g664a393a2663-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================