------------[ cut here ]------------ kernel BUG at lib/maple_tree.c:5790! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 440 Comm: syz-executor.0 Not tainted 6.1.23-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:mas_store_prealloc+0x36b/0x380 lib/maple_tree.c:5790 Code: 8b 54 24 08 31 c9 4c 8b 44 24 10 e8 5f 9b ff ff 65 ff 0d 90 d5 86 7b 4c 89 fb 0f 85 a9 fe ff ff e8 72 d5 84 fc e9 9f fe ff ff <0f> 0b e8 2e f9 07 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 RSP: 0018:ffffc90000dc7780 EFLAGS: 00010246 RAX: 0000000000000002 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffffff8604f790 RBP: ffffc90000dc7898 R08: dffffc0000000000 R09: fffffbfff0c09ef3 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920001b8f43 R13: ffffc90000dc7a18 R14: 1ffff920001b8ef4 R15: 0000000000000001 FS: 00007f14a6516700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056438ed91ee8 CR3: 0000000110243000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vma_mas_store+0xd5/0x170 mm/mmap.c:434 __vma_adjust+0xd2d/0x1420 mm/mmap.c:789 vma_merge+0x710/0x780 mm/mmap.c:1060 mlock_fixup+0x1e5/0x420 mm/mlock.c:420 apply_vma_lock_flags+0x2ec/0x410 mm/mlock.c:501 do_mlock+0x4ac/0x5b0 mm/mlock.c:602 __do_sys_mlock2 mm/mlock.c:629 [inline] __se_sys_mlock2 mm/mlock.c:619 [inline] __x64_sys_mlock2+0x92/0xa0 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:0x7f14a588c169 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:00007f14a6516168 EFLAGS: 00000246 ORIG_RAX: 0000000000000145 RAX: ffffffffffffffda RBX: 00007f14a59abf80 RCX: 00007f14a588c169 RDX: 0000000000000000 RSI: 0000000000400000 RDI: 0000000020bfd000 RBP: 00007f14a65161d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffe8fda8dcf R14: 00007f14a6516300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mas_store_prealloc+0x36b/0x380 lib/maple_tree.c:5790 Code: 8b 54 24 08 31 c9 4c 8b 44 24 10 e8 5f 9b ff ff 65 ff 0d 90 d5 86 7b 4c 89 fb 0f 85 a9 fe ff ff e8 72 d5 84 fc e9 9f fe ff ff <0f> 0b e8 2e f9 07 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 RSP: 0018:ffffc90000dc7780 EFLAGS: 00010246 RAX: 0000000000000002 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffffff8604f790 RBP: ffffc90000dc7898 R08: dffffc0000000000 R09: fffffbfff0c09ef3 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920001b8f43 R13: ffffc90000dc7a18 R14: 1ffff920001b8ef4 R15: 0000000000000001 FS: 00007f14a6516700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056438ed91ee8 CR3: 0000000110243000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400