general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 16743 Comm: syz-executor.4 Not tainted 6.4.0-syzkaller-10098-g995b406c7e97 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:mas_validate_gaps lib/maple_tree.c:7007 [inline] RIP: 0010:mt_validate+0x49d8/0x5ca0 lib/maple_tree.c:7224 Code: 00 61 1a 8c 44 89 fe e8 26 e7 06 00 e9 c2 c7 ff ff e8 8c 18 db f6 45 31 ed 48 8b 44 24 38 49 8d 5c c5 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 39 c8 33 f7 4c 8b 33 4c 89 f7 48 RSP: 0018:ffffc900164af7a0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888078689dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: ffffc900164af990 R08: ffffffff8ab0d815 R09: fffffbfff24814b8 R10: dffffc0000000000 R11: fffffbfff24814b8 R12: 1ffff1100f773e40 R13: 0000000000000000 R14: ffff88807bb9f200 R15: dffffc0000000000 FS: 00007fca6748f700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fca6744d718 CR3: 000000001a3f2000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: validate_mm+0xe7/0x500 mm/mmap.c:300 do_vmi_align_munmap+0x13b1/0x15c0 mm/mmap.c:2561 do_vmi_munmap+0x24d/0x2d0 mm/mmap.c:2619 __vm_munmap+0x230/0x450 mm/mmap.c:2899 __do_sys_munmap mm/mmap.c:2916 [inline] __se_sys_munmap mm/mmap.c:2913 [inline] __x64_sys_munmap+0x69/0x80 mm/mmap.c:2913 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fca6668c467 Code: 00 00 00 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb 85 66 2e 0f 1f 84 00 00 00 00 00 90 b8 0b 00 00 00 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:00007fca6748ee98 EFLAGS: 00000246 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fca6668c467 RDX: 0000000000400000 RSI: 0000000000400000 RDI: 00007fca5cdff000 RBP: 00007fca5cdff000 R08: 0000000000000000 R09: 000000000000103f R10: 0000000000400000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fca6748ef1c R14: 00007fca6748ef20 R15: 0000000020000002 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mas_validate_gaps lib/maple_tree.c:7007 [inline] RIP: 0010:mt_validate+0x49d8/0x5ca0 lib/maple_tree.c:7224 Code: 00 61 1a 8c 44 89 fe e8 26 e7 06 00 e9 c2 c7 ff ff e8 8c 18 db f6 45 31 ed 48 8b 44 24 38 49 8d 5c c5 00 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 39 c8 33 f7 4c 8b 33 4c 89 f7 48 RSP: 0018:ffffc900164af7a0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: ffff888078689dc0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 RBP: ffffc900164af990 R08: ffffffff8ab0d815 R09: fffffbfff24814b8 R10: dffffc0000000000 R11: fffffbfff24814b8 R12: 1ffff1100f773e40 R13: 0000000000000000 R14: ffff88807bb9f200 R15: dffffc0000000000 FS: 00007fca6748f700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fca667a80c0 CR3: 000000001a3f2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 61 1a add %ah,0x1a(%rcx) 3: 8c 44 89 fe mov %es,-0x2(%rcx,%rcx,4) 7: e8 26 e7 06 00 callq 0x6e732 c: e9 c2 c7 ff ff jmpq 0xffffc7d3 11: e8 8c 18 db f6 callq 0xf6db18a2 16: 45 31 ed xor %r13d,%r13d 19: 48 8b 44 24 38 mov 0x38(%rsp),%rax 1e: 49 8d 5c c5 00 lea 0x0(%r13,%rax,8),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 39 c8 33 f7 callq 0xf733c872 39: 4c 8b 33 mov (%rbx),%r14 3c: 4c 89 f7 mov %r14,%rdi 3f: 48 rex.W