panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0xa: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND *503224 10235 0 0 0x4000000 0 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_optcopy(ffffff003e877700,ffff800000171290) at ip_optcopy ip_output(ffffff0004ad3a00,ffffff003e877700,ffffff002a3bd07c,22,109c,26b327ed389fdd15) at ip_output+0xbd5 sys/netinet/ip_output.c:501 rip_output(0,9,ffffff00379041d0,0) at rip_output+0x187 sys/netinet/raw_ip.c:293 rip_usrreq(f64,ffffff00379041d0,0,ffffff003e877700,0,26b327ed389fdd15) at rip_usrreq+0x3ed sys/netinet/raw_ip.c:472 sosend(ffffff003069acb8,ffff800014ac8208,109c,ffff800014ac8330,0,26b327ed389fdd15) at sosend+0x462 sys/kern/uipc_socket.c:513 dofilewritev(0,3,ffff800014b1c730,ffff800014ac8330,ffff800014ac8348) at dofilewritev+0x13e sys/kern/sys_generic.c:364 sys_writev(ffff800014ac83d0,ffff800014b1c730,ffff8000149fac90) at sys_writev+0xce sys/kern/sys_generic.c:310 syscall(0) at syscall+0x3e4 Xsyscall(6,0,d,0,3,e66fdf1b010) at Xsyscall+0x128 end of kernel end trace frame: 0xe69751513b0, 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> ddb> set $lines = 0 ddb> show panic malformed IPv4 option passed to ip_optcopy ddb> 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_optcopy(ffffff003e877700,ffff800000171290) at ip_optcopy ip_output(ffffff0004ad3a00,ffffff003e877700,ffffff002a3bd07c,22,109c,26b327ed389fdd15) at ip_output+0xbd5 sys/netinet/ip_output.c:501 rip_output(0,9,ffffff00379041d0,0) at rip_output+0x187 sys/netinet/raw_ip.c:293 rip_usrreq(f64,ffffff00379041d0,0,ffffff003e877700,0,26b327ed389fdd15) at rip_usrreq+0x3ed sys/netinet/raw_ip.c:472 sosend(ffffff003069acb8,ffff800014ac8208,109c,ffff800014ac8330,0,26b327ed389fdd15) at sosend+0x462 sys/kern/uipc_socket.c:513 dofilewritev(0,3,ffff800014b1c730,ffff800014ac8330,ffff800014ac8348) at dofilewritev+0x13e sys/kern/sys_generic.c:364 sys_writev(ffff800014ac83d0,ffff800014b1c730,ffff8000149fac90) at sys_writev+0xce sys/kern/sys_generic.c:310 syscall(0) at syscall+0x3e4 Xsyscall(6,0,d,0,3,e66fdf1b010) at Xsyscall+0x128 end of kernel end trace frame: 0xe69751513b0, count: -11 ddb> show registers rdi 0xffffffff81e14390 kprintf_mutex rsi 0xffffffff819f3b79 db_enter+0x9 rbp 0xffff800014ac7e40 rbx 0xffff800014ac7ee0 rdx 0xffff800002acf000 rcx 0x189f __ALIGN_SIZE+0x89f rax 0xffff800002acf000 r8 0xffff800014ac7e10 r9 0 r10 0xffff800014ac7cc8 r11 0xffffffff81905010 x86_bus_space_io_read_1 r12 0x3000000008 r13 0xffff800014ac7e50 r14 0x100 r15 0xffffffff81c23d95 apollo_udma100_tim+0x11c07 rip 0xffffffff819f3b7a db_enter+0xa cs 0x8 rflags 0x206 rsp 0xffff800014ac7e40 ss 0x10 db_enter+0xa: popq %rbp ddb> show proc PROC (syz-executor0) pid=503224 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800014b1c028,0xffffffff81ea2d00 process=0xffff8000149fac90 user=0xffff800014ac3000, vmspace=0xffffff003f12b528 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 10235 280483 39121 0 2 0 syz-executor0 *10235 503224 39121 0 7 0x4000000 syz-executor0 31074 322190 1 0 3 0x100083 ttyin getty 91208 328222 0 0 3 0x14200 bored sosplice 39121 111743 71912 0 3 0x82 nanosleep syz-executor0 92414 139476 71912 0 2 0x2 syz-executor1 71912 136533 81303 0 3 0x82 thrsleep syz-fuzzer 71912 191209 81303 0 3 0x4000082 nanosleep syz-fuzzer 71912 98695 81303 0 3 0x4000082 thrsleep syz-fuzzer 71912 227356 81303 0 3 0x4000082 kqread syz-fuzzer 71912 398090 81303 0 3 0x4000082 thrsleep syz-fuzzer 71912 259841 81303 0 3 0x4000082 thrsleep syz-fuzzer 71912 470884 81303 0 3 0x4000082 thrsleep syz-fuzzer 81303 42985 75630 0 3 0x10008a pause ksh 75630 343690 78482 0 3 0x92 select sshd 78482 42329 1 0 3 0x80 select sshd 53869 220656 22951 73 3 0x100090 kqread syslogd 22951 90222 1 0 3 0x100082 netio syslogd 28450 495198 1 77 3 0x100090 poll dhclient 69098 443363 1 0 3 0x80 poll dhclient 39078 330653 0 0 2 0x14200 zerothread 31044 123164 0 0 3 0x14200 aiodoned aiodoned 53782 495345 0 0 3 0x14200 syncer update 5197 345459 0 0 3 0x14200 cleaner cleaner 30311 48133 0 0 3 0x14200 reaper reaper 17655 176737 0 0 3 0x14200 pgdaemon pagedaemon 97976 209732 0 0 3 0x14200 bored crynlk 16610 83909 0 0 3 0x14200 bored crypto 76610 225426 0 0 3 0x40014200 acpi0 acpi0 93802 222388 0 0 3 0x14200 bored softnet 16810 6811 0 0 3 0x14200 bored systqmp 55133 170239 0 0 3 0x14200 bored systq 99954 37669 0 0 3 0x40014200 bored softclock 92496 97501 0 0 3 0x40014200 idle0 1 301974 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper