================================================================== BUG: KCSAN: data-race in mlock_new_folio / need_mlock_drain read-write to 0xffff888237d26a90 of 1 bytes by task 11477 on cpu 1: folio_batch_add include/linux/pagevec.h:77 [inline] mlock_new_folio+0x143/0x240 mm/mlock.c:280 folio_add_lru_vma+0x5f/0x70 mm/swap.c:528 do_anonymous_page mm/memory.c:5229 [inline] do_pte_missing mm/memory.c:4359 [inline] handle_pte_fault mm/memory.c:6177 [inline] __handle_mm_fault mm/memory.c:6318 [inline] handle_mm_fault+0x27e2/0x2be0 mm/memory.c:6487 faultin_page mm/gup.c:1126 [inline] __get_user_pages+0x102a/0x1ed0 mm/gup.c:1428 populate_vma_page_range mm/gup.c:1860 [inline] __mm_populate+0x243/0x3a0 mm/gup.c:1963 mm_populate include/linux/mm.h:3471 [inline] __do_sys_mlockall mm/mlock.c:769 [inline] __se_sys_mlockall+0x368/0x3d0 mm/mlock.c:745 __x64_sys_mlockall+0x1f/0x30 mm/mlock.c:745 x64_sys_call+0xd68/0x3000 arch/x86/include/generated/asm/syscalls_64.h:152 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffff888237d26a90 of 1 bytes by task 11501 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:786 [inline] __lru_add_drain_all+0x273/0x450 mm/swap.c:877 lru_add_drain_all+0x10/0x20 mm/swap.c:893 invalidate_bdev+0x47/0x70 block/bdev.c:101 __ext4_fill_super fs/ext4/super.c:5711 [inline] ext4_fill_super+0x2d2c/0x3810 fs/ext4/super.c:5736 get_tree_bdev_flags+0x291/0x300 fs/super.c:1691 get_tree_bdev+0x1f/0x30 fs/super.c:1714 ext4_get_tree+0x1c/0x30 fs/ext4/super.c:5768 vfs_get_tree+0x57/0x1d0 fs/super.c:1751 fc_mount fs/namespace.c:1208 [inline] do_new_mount_fc fs/namespace.c:3651 [inline] do_new_mount+0x24d/0x660 fs/namespace.c:3727 path_mount+0x4a5/0xb70 fs/namespace.c:4037 do_mount fs/namespace.c:4050 [inline] __do_sys_mount fs/namespace.c:4238 [inline] __se_sys_mount+0x28c/0x2e0 fs/namespace.c:4215 __x64_sys_mount+0x67/0x80 fs/namespace.c:4215 x64_sys_call+0x2b51/0x3000 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd2/0x200 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x13 -> 0x18 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 11501 Comm: syz.1.1847 Not tainted syzkaller #0 PREEMPT(voluntary) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 ==================================================================