Oops: general protection fault, probably for non-canonical address 0xdffffc0000000011: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f] CPU: 0 UID: 0 PID: 5527 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:mas_root lib/maple_tree.c:759 [inline] RIP: 0010:mas_start+0xfe/0x550 lib/maple_tree.c:1179 Code: 4c 02 00 00 c6 43 4c 00 48 8b 44 24 28 42 80 3c 30 00 74 08 48 89 df e8 70 61 87 f6 4c 8b 23 49 83 c4 48 4c 89 e0 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 e7 e8 53 61 87 f6 4d 8b 24 24 e8 aa 9b RSP: 0018:ffffc90002dff898 EFLAGS: 00010206 RAX: 0000000000000011 RBX: ffffc90002dff960 RCX: 1ffff920005bff35 RDX: 1ffff920005bff2c RSI: 0000000000000001 RDI: ffffc90002dff988 RBP: 0000000000000001 R08: ffffffff8baf8bfa R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8e959c20 R12: 0000000000000088 R13: ffffc90002dff960 R14: dffffc0000000000 R15: 1ffff920005bff35 FS: 0000000000000000(0000) GS:ffff88808c815000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6060627000 CR3: 0000000011d72000 CR4: 0000000000352ef0 Call Trace: mtree_load+0x1f5/0x780 lib/maple_tree.c:5657 vma_lookup include/linux/mm.h:4238 [inline] __in_uprobe_trampoline arch/x86/kernel/uprobes.c:766 [inline] __is_optimized arch/x86/kernel/uprobes.c:1056 [inline] is_optimized arch/x86/kernel/uprobes.c:1067 [inline] set_orig_insn+0x226/0x310 arch/x86/kernel/uprobes.c:1098 register_for_each_vma+0xa0e/0xb80 kernel/events/uprobes.c:1318 uprobe_unregister_nosync+0x118/0x1b0 kernel/events/uprobes.c:1343 bpf_uprobe_unregister kernel/trace/bpf_trace.c:2982 [inline] bpf_uprobe_multi_link_release+0x99/0x1a0 kernel/trace/bpf_trace.c:2993 bpf_link_free+0xdd/0x3e0 kernel/bpf/syscall.c:3395 bpf_link_put_direct kernel/bpf/syscall.c:3448 [inline] bpf_link_release+0x6b/0x80 kernel/bpf/syscall.c:3455 __fput+0x418/0xa50 fs/file_table.c:512 task_work_run+0x1d9/0x270 kernel/task_work.c:233 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0x73a/0x2360 kernel/exit.c:1004 __do_sys_exit kernel/exit.c:1114 [inline] __se_sys_exit kernel/exit.c:1112 [inline] __x64_sys_exit+0x40/0x40 kernel/exit.c:1112 x64_sys_call+0x2231/0x2240 arch/x86/include/generated/asm/syscalls_64.h:61 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0d3e19ce59 Code: Unable to access opcode bytes at 0x7f0d3e19ce2f. RSP: 002b:00007ffebf74c2d8 EFLAGS: 00000246 ORIG_RAX: 000000000000003c RAX: ffffffffffffffda RBX: 00007f0d3e415fa0 RCX: 00007f0d3e19ce59 RDX: 0000555585c45808 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f0d3e232e6f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0d3e415fac R14: 00007f0d3e415fa0 R15: 00007f0d3e415fa0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:mas_root lib/maple_tree.c:759 [inline] RIP: 0010:mas_start+0xfe/0x550 lib/maple_tree.c:1179 Code: 4c 02 00 00 c6 43 4c 00 48 8b 44 24 28 42 80 3c 30 00 74 08 48 89 df e8 70 61 87 f6 4c 8b 23 49 83 c4 48 4c 89 e0 48 c1 e8 03 <42> 80 3c 30 00 74 08 4c 89 e7 e8 53 61 87 f6 4d 8b 24 24 e8 aa 9b RSP: 0018:ffffc90002dff898 EFLAGS: 00010206 RAX: 0000000000000011 RBX: ffffc90002dff960 RCX: 1ffff920005bff35 RDX: 1ffff920005bff2c RSI: 0000000000000001 RDI: ffffc90002dff988 RBP: 0000000000000001 R08: ffffffff8baf8bfa R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff8e959c20 R12: 0000000000000088 R13: ffffc90002dff960 R14: dffffc0000000000 R15: 1ffff920005bff35 FS: 0000000000000000(0000) GS:ffff88808c815000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdab94d0d8 CR3: 0000000011fa6000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 4c 02 00 rex.WR add (%rax),%r8b 3: 00 c6 add %al,%dh 5: 43 rex.XB 6: 4c 00 48 8b rex.WR add %r9b,-0x75(%rax) a: 44 24 28 rex.R and $0x28,%al d: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 70 61 87 f6 call 0xf687618c 1c: 4c 8b 23 mov (%rbx),%r12 1f: 49 83 c4 48 add $0x48,%r12 23: 4c 89 e0 mov %r12,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 e7 mov %r12,%rdi 34: e8 53 61 87 f6 call 0xf687618c 39: 4d 8b 24 24 mov (%r12),%r12 3d: e8 .byte 0xe8 3e: aa stos %al,%es:(%rdi) 3f: 9b fwait