panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0xa: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND 385408 25328 0 0 0 1 syz-executor0 *154943 25328 0 0 0x4000000 0K syz-executor0 db_enter() at db_enter+0xa sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x147 sys/kern/subr_prf.c:208 ip_fragment(ffffff005f430000,ffff800000173290,ffffff00692a6200) at ip_fragment+0x5f4 ip_output(ffffff006f2e2c08,ffffff00692a6200,ffffff005f430000,22,1000,b01a80d9573edc70) at ip_output+0xc6c sys/netinet/ip_output.c:501 rip_output(0,9,ffffff006f2e3480,0) at rip_output+0x187 sys/netinet/raw_ip.c:293 rip_usrreq(1000,ffffff006f2e3480,0,ffffff00692a6200,0,b01a80d9573edc70) at rip_usrreq+0x3ed sys/netinet/raw_ip.c:472 sosend(ffffff006882cf10,ffff8000210e19b8,1000,ffff8000210e1a60,0,b01a80d9573edc70) at sosend+0x46a sys/kern/uipc_socket.c:513 dofilewritev(ffff8000210a32d8,ffff8000210e1a60,1000,ffff8000210e1a78,9b3f36bb048) at dofilewritev+0x13e sys/kern/sys_generic.c:364 sys_write(40,ffff8000210a32d8,0) at sys_write+0x6e sys/kern/sys_generic.c:283 syscall(0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,c,0,3,9b122bfa010) at Xsyscall+0x128 end of kernel end trace frame: 0x9b3f36bb0d0, count: 4 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> show panic malformed IPv4 option passed to ip_optcopy ddb{0}> trace db_enter() at db_enter+0xa sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x147 sys/kern/subr_prf.c:208 ip_fragment(ffffff005f430000,ffff800000173290,ffffff00692a6200) at ip_fragment+0x5f4 ip_output(ffffff006f2e2c08,ffffff00692a6200,ffffff005f430000,22,1000,b01a80d9573edc70) at ip_output+0xc6c sys/netinet/ip_output.c:501 rip_output(0,9,ffffff006f2e3480,0) at rip_output+0x187 sys/netinet/raw_ip.c:293 rip_usrreq(1000,ffffff006f2e3480,0,ffffff00692a6200,0,b01a80d9573edc70) at rip_usrreq+0x3ed sys/netinet/raw_ip.c:472 sosend(ffffff006882cf10,ffff8000210e19b8,1000,ffff8000210e1a60,0,b01a80d9573edc70) at sosend+0x46a sys/kern/uipc_socket.c:513 dofilewritev(ffff8000210a32d8,ffff8000210e1a60,1000,ffff8000210e1a78,9b3f36bb048) at dofilewritev+0x13e sys/kern/sys_generic.c:364 sys_write(40,ffff8000210a32d8,0) at sys_write+0x6e sys/kern/sys_generic.c:283 syscall(0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:583 Xsyscall(6,0,c,0,3,9b122bfa010) at Xsyscall+0x128 end of kernel end trace frame: 0x9b3f36bb0d0, count: -11 ddb{0}> show registers rdi 0xffffffff81e20110 kprintf_mutex rsi 0xffffffff8182d819 db_enter+0x9 rbp 0xffff8000210e15f0 rbx 0xffff8000210e1690 rdx 0xffff8000014d8000 rcx 0x12d4 __ALIGN_SIZE+0x2d4 rax 0xffff8000014d8000 r8 0xffff8000210e15c0 r9 0 r10 0 r11 0xffffffff8197d380 x86_bus_space_io_read_1 r12 0x3000000008 r13 0xffff8000210e1600 r14 0x100 r15 0xffffffff81c38636 apollo_udma100_tim+0xd631 rip 0xffffffff8182d81a db_enter+0xa cs 0x8 rflags 0x206 rsp 0xffff8000210e15f0 ss 0x10 db_enter+0xa: popq %rbp ddb{0}> show proc PROC (syz-executor0) pid=154943 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000210a2bd0,0xffffffff81ebabf8 process=0xffff8000210b7658 user=0xffff8000210dc000, vmspace=0xffffff007f124e70 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 25328 385408 37987 0 7 0 syz-executor0 *25328 154943 37987 0 7 0x4000000 syz-executor0 73949 343111 1 0 3 0x100083 ttyin getty 1136 490351 0 0 3 0x14200 bored sosplice 37987 343946 991 0 3 0x82 nanosleep syz-executor0 84519 321996 991 0 2 0x482 syz-executor1 991 175368 20524 0 3 0x82 thrsleep syz-fuzzer 991 469851 20524 0 3 0x4000082 nanosleep syz-fuzzer 991 480149 20524 0 3 0x4000082 thrsleep syz-fuzzer 991 310170 20524 0 3 0x4000082 thrsleep syz-fuzzer 991 26537 20524 0 3 0x4000082 thrsleep syz-fuzzer 991 180811 20524 0 3 0x4000082 thrsleep syz-fuzzer 991 57732 20524 0 3 0x4000082 thrsleep syz-fuzzer 991 311045 20524 0 3 0x4000082 kqread syz-fuzzer 991 20353 20524 0 3 0x4000082 thrsleep syz-fuzzer 991 493034 20524 0 3 0x4000082 thrsleep syz-fuzzer 20524 303842 38970 0 3 0x10008a pause ksh 38970 171106 52403 0 3 0x92 select sshd 52403 316004 1 0 3 0x80 select sshd 81945 38573 96434 73 3 0x100090 kqread syslogd 96434 19925 1 0 3 0x100082 netio syslogd 67424 367834 1 77 3 0x100090 poll dhclient 30375 250598 1 0 3 0x80 poll dhclient 2167 480045 0 0 3 0x14200 pgzero zerothread 99148 292870 0 0 3 0x14200 aiodoned aiodoned 95274 238844 0 0 3 0x14200 syncer update 70514 213930 0 0 3 0x14200 cleaner cleaner 23132 192774 0 0 3 0x14200 reaper reaper 91640 61928 0 0 3 0x14200 pgdaemon pagedaemon 57777 150555 0 0 3 0x14200 bored crynlk 70955 339632 0 0 3 0x14200 bored crypto 33632 151739 0 0 3 0x40014200 acpi0 acpi0 27382 151 0 0 3 0x40014200 idle1 54336 426527 0 0 3 0x14200 bored softnet 11433 98221 0 0 3 0x14200 bored systqmp 23349 245641 0 0 3 0x14200 bored systq 39616 179976 0 0 3 0x40014200 bored softclock 27014 328209 0 0 3 0x40014200 idle0 1 520736 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper