panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *477805 14825 0 0 0 0 syz-executor.0 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806eaacb00,ffff80002a66ed08,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806eaacb00,0,fffffd8071fdc078,22,0,0,715adb8863ea6c5a) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8071fdc000,fffffd806eaacb00,fffffd806eaac200,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e53f7b0,fffffd806eaac200,ffff80002a66ef80,0,0,0) at sosend+0x66d sendit(ffff80002a5f8d60,3,ffff80002a66f118,0,ffff80002a66f108) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a5f8d60,ffff80002a66f2c0,ffff80002a66f210) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a66f2c0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70cb032d3350, count: 5 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> set $maxwidth = 0 ddb> show panic *cpu0: malformed IPv4 option passed to ip_optcopy ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806eaacb00,ffff80002a66ed08,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806eaacb00,0,fffffd8071fdc078,22,0,0,715adb8863ea6c5a) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8071fdc000,fffffd806eaacb00,fffffd806eaac200,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e53f7b0,fffffd806eaac200,ffff80002a66ef80,0,0,0) at sosend+0x66d sendit(ffff80002a5f8d60,3,ffff80002a66f118,0,ffff80002a66f108) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a5f8d60,ffff80002a66f2c0,ffff80002a66f210) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a66f2c0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70cb032d3350, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a66eb50 rbx 0x24 rdx 0x3fd rcx 0 rax 0x32 r8 0x101010101010101 r9 0x8080808080808080 r10 0x1441a487b0235e45 r11 0x4bf3b206632a43c9 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff818496ac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a66eb40 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=477805 pid=14825 tcnt=1 stat=onproc flags process=0 proc=0 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a5f9558,0xffffffff82d736d8 process=0xffff8000ffff8c98 user=0xffff80002a66a000, vmspace=0xfffffd807217a588 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *14825 477805 92077 0 7 0 syz-executor.0 92077 192607 59395 0 3 0x82 nanoslp syz-executor.0 59395 179926 58795 0 3 0x2000082 thrsleep syz-execprog 59395 277390 58795 0 3 0x6000082 nanoslp syz-execprog 59395 317733 58795 0 3 0x6000082 thrsleep syz-execprog 59395 314062 58795 0 3 0x6000082 thrsleep syz-execprog 59395 364741 58795 0 3 0x6000082 kqread syz-execprog 59395 410001 58795 0 3 0x6000082 wait syz-execprog 59395 214110 58795 0 3 0x6000082 thrsleep syz-execprog 59395 171022 58795 0 3 0x6000082 thrsleep syz-execprog 59395 238643 58795 0 3 0x6000082 thrsleep syz-execprog 59395 96395 58795 0 3 0x6000082 thrsleep syz-execprog 59395 506721 58795 0 3 0x6000082 thrsleep syz-execprog 58795 231127 97689 0 3 0x10008a sigsusp ksh 97689 255483 86828 0 3 0x9a kqread sshd 19617 269190 1 0 3 0x100083 ttyin getty 86828 508058 1 0 3 0x88 kqread sshd 18145 415571 93888 73 3 0x1100090 kqread syslogd 93888 384093 1 0 3 0x100082 netio syslogd 94803 266593 1 0 3 0x100080 kqread resolvd 20891 348422 73114 77 3 0x100092 kqread dhcpleased 23341 504449 73114 77 3 0x100092 kqread dhcpleased 73114 399223 1 0 3 0x80 kqread dhcpleased 25835 175129 0 0 3 0x14200 bored smr 18613 32696 0 0 2 0x14200 zerothread 70754 519728 0 0 3 0x14200 aiodoned aiodoned 77325 27455 0 0 3 0x14200 syncer update 75143 344587 0 0 3 0x14200 cleaner cleaner 18172 248868 0 0 3 0x14200 reaper reaper 6342 70824 0 0 3 0x14200 pgdaemon pagedaemon 34374 438275 0 0 3 0x14200 bored viomb 28852 298940 0 0 3 0x40014200 acpi0 acpi0 673 137142 0 0 3 0x14200 bored softnet3 31334 335585 0 0 3 0x14200 bored softnet2 63330 311146 0 0 3 0x14200 bored softnet1 39108 255530 0 0 3 0x14200 bored softnet0 77820 78258 0 0 3 0x14200 bored systqmp 24912 282657 0 0 3 0x14200 bored systq 14344 199935 0 0 3 0x40014200 tmoslp softclock 17462 188848 0 0 3 0x40014200 idle0 1 272254 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10140 6384K 6413K 166960K 11218 0 pcb 15 10K 10K 166960K 15 0 rtable 80 2K 2K 166960K 158 0 pf 15 6K 6K 166960K 15 0 ifaddr 15 6K 6K 166960K 15 0 ifgroup 22 1K 1K 166960K 22 0 counters 23 16K 16K 166960K 23 0 ioctlops 0 0K 2K 166960K 22 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1174 73K 74K 166960K 1187 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 3 8K 12K 166960K 18 0 proc 55 58K 67K 166960K 274 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 22 1K 1K 166960K 22 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 300 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 149 14K 17K 166960K 2847 0 UVM aobj 3 2K 2K 166960K 3 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 6 0K 0K 166960K 6 0 temp 1 6748K 6812K 166960K 3448 0 kqueue 12 18K 18K 166960K 25 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 31 0 28 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 84 0 84 1 0 1 1 0 8 1 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 88 4 0 0 1 0 1 1 0 8 0 inpcb 360 31 0 24 1 0 1 1 0 8 0 nd6 104 3 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 144 0 0 9 0 9 9 0 8 0 art_table 32 145 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1455 0 51 89 0 89 89 0 8 1 ffsino 240 1455 0 51 83 0 83 83 0 8 0 nchpl 144 1692 0 61 61 0 61 61 0 8 0 uvmvnodes 80 1464 0 0 30 0 30 30 0 8 0 vnodes 216 1464 0 0 82 0 82 82 0 8 0 namei 1024 5322 0 5322 3 0 3 3 0 8 3 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 6378 0 6378 3 0 3 3 1 8 3 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 424 366 0 335 5 0 5 5 0 8 1 knotepl 120 4110 0 4074 2 0 2 2 0 8 0 kqueuepl 184 21 0 13 1 0 1 1 0 8 0 pipepl 288 120 0 113 1 0 1 1 0 8 0 fdescpl 432 350 0 335 3 0 3 3 0 8 1 filepl 120 1444 0 1378 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 335 0 335 1 0 1 1 0 8 1 processpl 1072 366 0 335 3 0 3 3 0 8 0 procpl 680 376 0 335 5 0 5 5 0 8 1 sockpl 488 95 0 72 3 0 3 3 0 8 0 mcl8k 8192 5 0 4 1 0 1 1 0 8 0 mcl4k 4096 10 0 10 1 0 1 1 0 8 1 mcl2k 2048 11669 0 11623 32 18 14 32 0 8 7 mtagpl 96 5 0 5 1 0 1 1 0 8 1 mbufpl 256 18894 0 18831 17 5 12 17 0 8 7 bufpl 280 4046 0 141 279 0 279 279 0 8 0 anonpl 24 210875 0 207482 56 0 56 56 0 188 30 amapchunkpl 152 10382 0 10035 27 0 27 27 0 158 12 amappl16 200 6127 0 6064 5 0 5 5 0 8 1 amappl15 192 22 0 20 1 0 1 1 0 8 0 amappl14 184 138 0 127 2 0 2 2 0 8 1 amappl13 176 14 0 13 1 0 1 1 0 8 0 amappl12 168 916 0 900 2 0 2 2 0 8 1 amappl11 160 53 0 42 1 0 1 1 0 8 0 amappl10 152 20 0 17 1 0 1 1 0 8 0 amappl9 144 252 0 252 1 0 1 1 0 8 1 amappl8 136 197 0 177 2 0 2 2 0 8 1 amappl7 128 167 0 150 2 0 2 2 0 8 0 amappl6 120 151 0 143 1 0 1 1 0 8 0 amappl5 112 127 0 119 1 0 1 1 0 8 0 amappl4 104 403 0 384 2 0 2 2 0 8 1 amappl3 96 2131 0 2090 2 0 2 2 0 8 0 amappl2 88 780 0 725 3 0 3 3 0 8 1 amappl1 80 10081 0 9621 22 0 22 22 0 8 11 amappl 88 2382 0 2293 4 0 4 4 0 92 1 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 350 0 335 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 350 0 335 1 0 1 1 0 8 0 vmmpekpl 168 9470 0 9444 2 0 2 2 0 8 0 vmmpepl 168 42858 0 41668 114 0 114 114 0 357 56 vmsppl 352 349 0 335 3 0 3 3 0 8 1 rwobjpl 24 21222 0 18958 20 0 20 20 0 8 1 pdppl 4096 706 0 670 74 14 60 60 0 8 24 pvpl 32 405212 0 397650 363 0 363 363 0 265 290 pmappl 216 349 0 335 2 0 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 324 0 37 9 0 9 9 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806eaacb00,ffff80002a66ed08,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806eaacb00,0,fffffd8071fdc078,22,0,0,715adb8863ea6c5a) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8071fdc000,fffffd806eaacb00,fffffd806eaac200,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e53f7b0,fffffd806eaac200,ffff80002a66ef80,0,0,0) at sosend+0x66d sendit(ffff80002a5f8d60,3,ffff80002a66f118,0,ffff80002a66f108) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a5f8d60,ffff80002a66f2c0,ffff80002a66f210) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a66f2c0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70cb032d3350, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828efb08) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806eaacb00,ffff80002a66ed08,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806eaacb00,0,fffffd8071fdc078,22,0,0,715adb8863ea6c5a) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8071fdc000,fffffd806eaacb00,fffffd806eaac200,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e53f7b0,fffffd806eaac200,ffff80002a66ef80,0,0,0) at sosend+0x66d sendit(ffff80002a5f8d60,3,ffff80002a66f118,0,ffff80002a66f108) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a5f8d60,ffff80002a66f2c0,ffff80002a66f210) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a66f2c0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x70cb032d3350, count: -10 ddb>