------------[ cut here ]------------ kernel BUG at lib/maple_tree.c:5783! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3538 Comm: syz-executor287 Not tainted 6.1.34-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:mas_store_prealloc+0x44d/0x460 lib/maple_tree.c:5783 Code: df 4c 8b 7c 24 18 e9 65 fe ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 85 fd ff ff e8 dd db 66 f7 e9 7b fd ff ff e8 73 92 10 f7 <0f> 0b e8 dc 14 0a 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 48 89 RSP: 0018:ffffc900039ff7a0 EFLAGS: 00010293 RAX: ffffffff8a7942dd RBX: 0000000000000002 RCX: ffff88807e0dbb80 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002 RBP: ffffc900039ff8d0 R08: ffffffff8a7941be R09: fffffbfff1a02fa7 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200073fefc R13: ffffc900039ffa38 R14: ffffffffffffffd2 R15: ffffc900039ffa20 FS: 000055555629e300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e5fe14b000 CR3: 0000000019356000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __vma_adjust+0x1698/0x1f30 mm/mmap.c:789 vma_merge+0x971/0xa30 mlock_fixup+0x361/0x5d0 mm/mlock.c:420 apply_vma_lock_flags+0x37b/0x4e0 mm/mlock.c:501 do_mlock+0x4ff/0x660 mm/mlock.c:602 __do_sys_mlock2 mm/mlock.c:629 [inline] __se_sys_mlock2 mm/mlock.c:619 [inline] __x64_sys_mlock2+0xa9/0xc0 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:0x7f5cc78da649 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc2df33a28 EFLAGS: 00000246 ORIG_RAX: 0000000000000145 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f5cc78da649 RDX: 0000000000000000 RSI: 0000000000400000 RDI: 0000000020bfd000 RBP: 00007ffc2df33a30 R08: 0000000000000001 R09: 00007f5cc7890033 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mas_store_prealloc+0x44d/0x460 lib/maple_tree.c:5783 Code: df 4c 8b 7c 24 18 e9 65 fe ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 85 fd ff ff e8 dd db 66 f7 e9 7b fd ff ff e8 73 92 10 f7 <0f> 0b e8 dc 14 0a 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 48 89 RSP: 0018:ffffc900039ff7a0 EFLAGS: 00010293 RAX: ffffffff8a7942dd RBX: 0000000000000002 RCX: ffff88807e0dbb80 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002 RBP: ffffc900039ff8d0 R08: ffffffff8a7941be R09: fffffbfff1a02fa7 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200073fefc R13: ffffc900039ffa38 R14: ffffffffffffffd2 R15: ffffc900039ffa20 FS: 000055555629e300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e5fe144680 CR3: 0000000019356000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400