Fatal trap 9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xffffffff8114e785 stack pointer = 0x28:0xfffffe0020dc5590 frame pointer = 0x28:0xfffffe0020dc55c0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 2115 (syz-executor.0) trap number = 9 panic: general protection fault cpuid = 0 time = 1553772977 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x47/frame 0xfffffe0020dc5260 vpanic() at vpanic+0x1e0/frame 0xfffffe0020dc52c0 panic() at panic+0x43/frame 0xfffffe0020dc5320 trap_fatal() at trap_fatal+0x4c6/frame 0xfffffe0020dc53a0 trap() at trap+0xba/frame 0xfffffe0020dc54c0 calltrap() at calltrap+0x8/frame 0xfffffe0020dc54c0 --- trap 0x9, rip = 0xffffffff8114e785, rsp = 0xfffffe0020dc5590, rbp = 0xfffffe0020dc55c0 --- sbfree() at sbfree+0xa5/frame 0xfffffe0020dc55c0 sbcut_internal() at sbcut_internal+0xf0/frame 0xfffffe0020dc5610 sbrelease_internal() at sbrelease_internal+0x9c/frame 0xfffffe0020dc5650 sofree() at sofree+0x492/frame 0xfffffe0020dc56b0 soclose() at soclose+0x5b3/frame 0xfffffe0020dc5730 _fdrop() at _fdrop+0x3a/frame 0xfffffe0020dc5760 closef() at closef+0x27d/frame 0xfffffe0020dc57f0 fdescfree_fds() at fdescfree_fds+0xbd/frame 0xfffffe0020dc5840 fdescfree() at fdescfree+0x58a/frame 0xfffffe0020dc5900 exit1() at exit1+0x780/frame 0xfffffe0020dc5970 sys_sys_exit() at sys_sys_exit+0xd/frame 0xfffffe0020dc5980 amd64_syscall() at amd64_syscall+0x436/frame 0xfffffe0020dc5ab0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0020dc5ab0 --- syscall (1, FreeBSD ELF64, sys_sys_exit), rip = 0x44f32a, rsp = 0x7fffffffec58, rbp = 0x1 --- KDB: enter: panic [ thread pid 2115 tid 100082 ] Stopped at kdb_enter+0x6a: movq $0,kdb_why