general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 26204 Comm: syz-executor.3 Not tainted 6.4.0-syzkaller-10173-ga901a3568fd2 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:mas_validate_gaps lib/maple_tree.c:7002 [inline] RIP: 0010:mt_validate+0x32ac/0x4370 lib/maple_tree.c:7224 Code: 89 ee e8 67 d9 76 f7 49 83 fd 06 0f 84 a6 06 00 00 e8 18 dd 76 f7 49 01 de 48 ba 00 00 00 00 00 fc ff df 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 0f 85 4b 10 00 00 4d 8b 2e 4c 89 ff 4c 89 ee e8 ac d8 RSP: 0018:ffffc90028b77940 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffffffff8a0d1288 RDI: 0000000000000007 RBP: ffff888021076400 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888021076400 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f640b6d4700(0000) GS:ffff88806b600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f640b671718 CR3: 0000000113b5c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: validate_mm+0x9d/0x470 mm/mmap.c:300 do_vmi_align_munmap+0x1199/0x1680 mm/mmap.c:2561 do_vmi_munmap+0x266/0x430 mm/mmap.c:2619 __vm_munmap+0x137/0x380 mm/mmap.c:2899 __do_sys_munmap mm/mmap.c:2916 [inline] __se_sys_munmap mm/mmap.c:2913 [inline] __x64_sys_munmap+0x62/0x80 mm/mmap.c:2913 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f640a88c467 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:00007f640b6d3f38 EFLAGS: 00000213 ORIG_RAX: 000000000000000b RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f640a88c467 RDX: 0000000000000000 RSI: 0000000008400000 RDI: 00007f6400fff000 RBP: 00007f6400fff000 R08: 00000000000004a4 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000213 R12: 0000000000000002 R13: 00007f640b6d3fdc R14: 00007f640b6d3fe0 R15: 0000000020000582 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mas_validate_gaps lib/maple_tree.c:7002 [inline] RIP: 0010:mt_validate+0x32ac/0x4370 lib/maple_tree.c:7224 Code: 89 ee e8 67 d9 76 f7 49 83 fd 06 0f 84 a6 06 00 00 e8 18 dd 76 f7 49 01 de 48 ba 00 00 00 00 00 fc ff df 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 0f 85 4b 10 00 00 4d 8b 2e 4c 89 ff 4c 89 ee e8 ac d8 RSP: 0018:ffffc90028b77940 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffffffff8a0d1288 RDI: 0000000000000007 RBP: ffff888021076400 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888021076400 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f640b6d4700(0000) GS:ffff88806b600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f640b671718 CR3: 0000000113b5c000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: e8 67 d9 76 f7 callq 0xf776d96e 7: 49 83 fd 06 cmp $0x6,%r13 b: 0f 84 a6 06 00 00 je 0x6b7 11: e8 18 dd 76 f7 callq 0xf776dd2e 16: 49 01 de add %rbx,%r14 19: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 20: fc ff df 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) <-- trapping instruction 2e: 0f 85 4b 10 00 00 jne 0x107f 34: 4d 8b 2e mov (%r14),%r13 37: 4c 89 ff mov %r15,%rdi 3a: 4c 89 ee mov %r13,%rsi 3d: e8 .byte 0xe8 3e: ac lods %ds:(%rsi),%al 3f: d8 .byte 0xd8