================================================================== BUG: KCSAN: data-race in mlock_new_page / need_mlock_page_drain write to 0xffff888237d27ef0 of 1 bytes by task 6134 on cpu 1: pagevec_add include/linux/pagevec.h:75 [inline] mlock_new_page+0x23b/0x500 mm/mlock.c:280 lru_cache_add_inactive_or_unevictable+0x55/0x60 mm/swap.c:486 do_anonymous_page+0x71d/0xad0 mm/memory.c:3866 handle_pte_fault mm/memory.c:4625 [inline] __handle_mm_fault mm/memory.c:4763 [inline] handle_mm_fault+0x69f/0xca0 mm/memory.c:4861 faultin_page mm/gup.c:878 [inline] __get_user_pages+0x322/0xb70 mm/gup.c:1099 populate_vma_page_range mm/gup.c:1442 [inline] __mm_populate+0x27a/0x390 mm/gup.c:1555 mm_populate include/linux/mm.h:2701 [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/0x50 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888237d27ef0 of 1 bytes by task 1826 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+0x408/0x610 fs/ext4/super.c:1271 generic_shutdown_super+0xdf/0x250 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 kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x122/0x140 kernel/entry/common.c:201 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline] syscall_exit_to_user_mode+0x20/0x40 kernel/entry/common.c:294 do_syscall_64+0x37/0x50 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x06 -> 0x09 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 1826 Comm: syz-executor.5 Not tainted 5.17.0-syzkaller-14114-g09bb8856d4a7-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================