------------[ cut here ]------------ kernel BUG at lib/maple_tree.c:5789! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6619 Comm: syz-executor.5 Not tainted 6.1.25-syzkaller-00253-gbfbebce3f712 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:mas_store_prealloc+0x3c0/0x420 lib/maple_tree.c:5789 Code: 48 89 df e8 c2 d0 bd fc 48 8b 3b 48 c7 c6 d3 1f 45 86 48 8b 54 24 10 31 c9 4c 8b 44 24 18 e8 47 8a ff ff eb 18 e8 90 69 78 fc <0f> 0b e8 19 e5 08 00 e8 84 69 78 fc eb 34 e8 7d 69 78 fc 31 db 65 RSP: 0018:ffffc9000ca6f780 EFLAGS: 00010283 RAX: ffffffff84fb3bc0 RBX: 0000000000000002 RCX: 0000000000040000 RDX: ffffc90001909000 RSI: 0000000000000161 RDI: 0000000000000162 RBP: ffffc9000ca6f890 R08: ffffffff84fb3a63 R09: fffffbfff0d0d413 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff9200194df43 R14: ffffffffffffffd2 R15: 1ffff9200194def4 FS: 00007fb1f4ad7700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc6623ad988 CR3: 0000000173c73000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vma_mas_store+0xe0/0x1e0 mm/mmap.c:436 __vma_adjust+0xf81/0x1870 mm/mmap.c:791 vma_merge+0x8ce/0x8f0 mlock_fixup+0x210/0x530 mm/mlock.c:420 apply_vma_lock_flags+0x327/0x480 mm/mlock.c:501 do_mlock+0x4fc/0x650 mm/mlock.c:602 __do_sys_mlock2 mm/mlock.c:629 [inline] __se_sys_mlock2 mm/mlock.c:619 [inline] __x64_sys_mlock2+0xb8/0xe0 mm/mlock.c:619 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb1f3c8c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb1f4ad7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000145 RAX: ffffffffffffffda RBX: 00007fb1f3dabf80 RCX: 00007fb1f3c8c169 RDX: 0000000000000000 RSI: 000000000000e000 RDI: 0000000020fef000 RBP: 00007fb1f4ad71d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff62c4366f R14: 00007fb1f4ad7300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mas_store_prealloc+0x3c0/0x420 lib/maple_tree.c:5789 Code: 48 89 df e8 c2 d0 bd fc 48 8b 3b 48 c7 c6 d3 1f 45 86 48 8b 54 24 10 31 c9 4c 8b 44 24 18 e8 47 8a ff ff eb 18 e8 90 69 78 fc <0f> 0b e8 19 e5 08 00 e8 84 69 78 fc eb 34 e8 7d 69 78 fc 31 db 65 RSP: 0018:ffffc9000ca6f780 EFLAGS: 00010283 RAX: ffffffff84fb3bc0 RBX: 0000000000000002 RCX: 0000000000040000 RDX: ffffc90001909000 RSI: 0000000000000161 RDI: 0000000000000162 RBP: ffffc9000ca6f890 R08: ffffffff84fb3a63 R09: fffffbfff0d0d413 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff9200194df43 R14: ffffffffffffffd2 R15: 1ffff9200194def4 FS: 00007fb1f4ad7700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc6623ad988 CR3: 0000000173c73000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400