Fatal trap 18: integer divide fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xffffffff80fd8300 stack pointer = 0x0:0xfffffe001f5c2840 frame pointer = 0x0:0xfffffe001f5c28e0 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 = 9228 (syz-executor.1) trap number = 18 panic: integer divide fault cpuid = 0 time = 1566758899 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x47/frame 0xfffffe001f5c2510 vpanic() at vpanic+0x1e0/frame 0xfffffe001f5c2570 panic() at panic+0x43/frame 0xfffffe001f5c25d0 trap_fatal() at trap_fatal+0x4de/frame 0xfffffe001f5c2650 trap() at trap+0xb8/frame 0xfffffe001f5c2770 calltrap() at calltrap+0x8/frame 0xfffffe001f5c2770 --- trap 0x12, rip = 0xffffffff80fd8300, rsp = 0xfffffe001f5c2840, rbp = 0xfffffe001f5c28e0 --- kern_fcntl() at kern_fcntl+0xa30/frame 0xfffffe001f5c28e0 kern_fcntl_freebsd() at kern_fcntl_freebsd+0x14f/frame 0xfffffe001f5c2970 ia32_syscall() at ia32_syscall+0x46a/frame 0xfffffe001f5c2ab0 int0x80_syscall_common() at int0x80_syscall_common+0x9c/frame 0x8142636 KDB: enter: panic [ thread pid 9228 tid 100849 ] Stopped at kdb_enter+0x6a: movq $0,kdb_why