------------[ cut here ]------------ kernel BUG at lib/maple_tree.c:5790! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6085 Comm: syz-executor.2 Not tainted 6.1.24-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5790 lr : mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5790 sp : ffff800024e47520 x29: ffff800024e47600 x28: 1ffff000049c8eff x27: dfff800000000000 x26: ffff7000049c8ea8 x25: 000000002023c000 x24: 0000000000000001 x23: 1ffff000049c8eac x22: ffff800024e477f8 x21: ffffffffffffffd2 x20: 0000000000000002 x19: ffff800024e477e0 x18: 0000000000000000 x17: 0000aaaaac527fff x16: ffff8000084f4b7c x15: 0000000000000000 x14: 0000000000000002 x13: 0000000000000000 x12: 0000000000040000 x11: 000000000000142d x10: ffff800026934000 x9 : ffff80001205b3e4 x8 : 000000000000142e x7 : 0000000000000000 x6 : 000000000000003f x5 : 0000000000000040 x4 : 00000000ffffffff x3 : 0000000000002800 x2 : ffff0000c000d500 x1 : 0000000000000002 x0 : 0000000000000002 Call trace: mas_store_prealloc+0x3a8/0x3ac lib/maple_tree.c:5790 vma_mas_store+0x19c/0x490 mm/mmap.c:434 __vma_adjust+0xec8/0x17a8 mm/mmap.c:789 vma_merge+0xabc/0xb4c mlock_fixup+0x258/0x470 mm/mlock.c:420 apply_vma_lock_flags+0x2bc/0x3f8 mm/mlock.c:501 do_mlock+0x430/0x590 mm/mlock.c:602 __do_sys_mlock mm/mlock.c:616 [inline] __se_sys_mlock mm/mlock.c:614 [inline] __arm64_sys_mlock+0x60/0x78 mm/mlock.c:614 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581 Code: 977b23cd 17ffff7b 940206d5 977b2a32 (d4210000) ---[ end trace 0000000000000000 ]---