panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0xa: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND *387099 92826 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(ffffff002899c000,ffff800000171290) at ip_optcopy ip_output(ffffff002bba6260,ffffff002899c000,ffffff000518f000,22,1000,fc22448857115066) at ip_output+0xbd5 sys/netinet/ip_output.c:501 rip_output(0,9,ffffff0028a50048,0) at rip_output+0x187 sys/netinet/raw_ip.c:293 rip_usrreq(1000,ffffff0028a50048,0,ffffff002899c000,0,fc22448857115066) at rip_usrreq+0x3ed sys/netinet/raw_ip.c:472 sosend(ffffff00360a7b48,ffff800014aea888,1000,ffff800014aea930,0,fc22448857115066) at sosend+0x462 sys/kern/uipc_socket.c:513 dofilewritev(ffff800014b1f350,ffff800014aea930,1000,ffff800014aea948,a5c5c39a788) at dofilewritev+0x13e sys/kern/sys_generic.c:364 sys_write(ffff800014aea9d0,ffff800014b1f350,ffff8000149fa668) at sys_write+0x6e sys/kern/sys_generic.c:283 syscall(0) at syscall+0x3e4 Xsyscall(6,0,c,0,3,a59d34f4010) at Xsyscall+0x128 end of kernel end trace frame: 0xa5c5c39a810, 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(ffffff002899c000,ffff800000171290) at ip_optcopy ip_output(ffffff002bba6260,ffffff002899c000,ffffff000518f000,22,1000,fc22448857115066) at ip_output+0xbd5 sys/netinet/ip_output.c:501 rip_output(0,9,ffffff0028a50048,0) at rip_output+0x187 sys/netinet/raw_ip.c:293 rip_usrreq(1000,ffffff0028a50048,0,ffffff002899c000,0,fc22448857115066) at rip_usrreq+0x3ed sys/netinet/raw_ip.c:472 sosend(ffffff00360a7b48,ffff800014aea888,1000,ffff800014aea930,0,fc22448857115066) at sosend+0x462 sys/kern/uipc_socket.c:513 dofilewritev(ffff800014b1f350,ffff800014aea930,1000,ffff800014aea948,a5c5c39a788) at dofilewritev+0x13e sys/kern/sys_generic.c:364 sys_write(ffff800014aea9d0,ffff800014b1f350,ffff8000149fa668) at sys_write+0x6e sys/kern/sys_generic.c:283syscall(0) at syscall+0x3e4 Xsyscall(6,0,c,0,3,a59d34f4010) at Xsyscall+0x128 end of kernel end trace frame: 0xa5c5c39a810, count: -11 ddb> show registers rdi 0xffffffff81e04f20 kprintf_mutex rsi 0xffffffff8126ba89 db_enter+0x9 rbp 0xffff800014aea4c0 rbx 0xffff800014aea560 rdx 0xffff800003acf000 rcx 0x18c6 __ALIGN_SIZE+0x8c6 rax 0xffff800003acf000 r8 0xffff800014aea490 r9 0 r10 0xffff800014aea348 r11 0xffffffff813028e0 x86_bus_space_io_read_1 r12 0x3000000008 r13 0xffff800014aea4d0 r14 0x100 r15 0xffffffff81c20123 substchar+0x10c4d rip 0xffffffff8126ba8a db_enter+0xa cs 0x8 rflags 0x206 rsp 0xffff800014aea4c0 ss 0x10 db_enter+0xa: popq %rbp ddb> show proc PROC (syz-executor0) pid=387099 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff800014b1ec48,0xffffffff81ee28b8 process=0xffff8000149fa668 user=0xffff800014ae5000, vmspace=0xffffff003a1c7018 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92826 108696 48667 0 2 0 syz-executor0 *92826 387099 48667 0 7 0x4000000 syz-executor0 48667 31467 39171 0 3 0x82 nanosleep syz-executor0 71063 110702 1 0 3 0x100083 ttyin getty 55677 188293 0 0 3 0x14200 bored sosplice 33703 372483 39171 0 2 0x2 syz-executor1 39171 395245 22129 0 3 0x82 thrsleep syz-fuzzer 39171 225098 22129 0 3 0x4000082 nanosleep syz-fuzzer 39171 510052 22129 0 3 0x4000082 thrsleep syz-fuzzer 39171 406156 22129 0 3 0x4000082 thrsleep syz-fuzzer 39171 113511 22129 0 3 0x4000082 kqread syz-fuzzer 39171 521366 22129 0 3 0x4000082 thrsleep syz-fuzzer 39171 164751 22129 0 3 0x4000082 thrsleep syz-fuzzer 22129 359284 99656 0 3 0x10008a pause ksh 99656 3070 66549 0 3 0x92 select sshd 66549 384927 1 0 3 0x80 select sshd 31536 483921 47358 73 3 0x100090 kqread syslogd 47358 278116 1 0 3 0x100082 netio syslogd 85424 426104 1 77 3 0x100090 poll dhclient 11711 45769 1 0 3 0x80 poll dhclient 81754 407358 0 0 2 0x14200 zerothread 14450 102329 0 0 3 0x14200 aiodoned aiodoned 93317 46076 0 0 3 0x14200 syncer update 72288 102868 0 0 3 0x14200 cleaner cleaner 13448 365791 0 0 3 0x14200 reaper reaper 94308 367388 0 0 3 0x14200 pgdaemon pagedaemon 13862 14184 0 0 3 0x14200 bored crynlk 96146 385413 0 0 3 0x14200 bored crypto 32353 41282 0 0 3 0x40014200 acpi0 acpi0 40212 99286 0 0 3 0x14200 bored softnet 44014 394624 0 0 3 0x14200 bored systqmp 90219 40442 0 0 3 0x14200 bored systq 18970 495349 0 0 3 0x40014200 bored softclock 37203 329098 0 0 3 0x40014200 idle0 1 408692 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper