================================================================== BUG: KCSAN: data-race in mlock_new_page / need_mlock_page_drain read-write to 0xffff888237d27f00 of 1 bytes by task 14477 on cpu 1: 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+0x708/0xa10 mm/memory.c:3866 handle_pte_fault mm/memory.c:4625 [inline] __handle_mm_fault mm/memory.c:4763 [inline] handle_mm_fault+0x83c/0xa40 mm/memory.c:4861 faultin_page mm/gup.c:878 [inline] __get_user_pages+0x306/0xb80 mm/gup.c:1099 populate_vma_page_range mm/gup.c:1442 [inline] __mm_populate+0x26e/0x3a0 mm/gup.c:1555 do_mlock+0x37f/0x430 mm/mlock.c:609 __do_sys_mlock mm/mlock.c:617 [inline] __se_sys_mlock mm/mlock.c:615 [inline] __x64_sys_mlock+0x32/0x40 mm/mlock.c:615 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+0x44/0xae read to 0xffff888237d27f00 of 1 bytes by task 3340 on cpu 0: 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 invalidate_bdev+0x56/0x80 block/bdev.c:87 ext4_put_super+0x358/0x560 fs/ext4/super.c:1276 generic_shutdown_super+0xd5/0x240 fs/super.c:462 kill_block_super+0x4a/0x90 fs/super.c:1394 deactivate_locked_super+0x6a/0xb0 fs/super.c:332 deactivate_super+0x85/0x90 fs/super.c:363 cleanup_mnt+0x267/0x2d0 fs/namespace.c:1186 __cleanup_mnt+0x15/0x20 fs/namespace.c:1193 task_work_run+0x8e/0x110 kernel/task_work.c:164 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x124/0x130 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:201 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x6a/0x90 kernel/entry/common.c:294 do_syscall_64+0x37/0x70 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x01 -> 0x07 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3340 Comm: syz-executor.4 Not tainted 5.18.0-rc4-syzkaller-00291-g8013d1d3d2e3-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================