panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 63839 11903 0 0 0 0 syz-executor.0 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828f6f9f) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806e6cb400,ffff80002a6d74b8,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806e6cb400,0,fffffd806f1df078,22,0,0,583dcc793d77c70) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806f1df000,fffffd806e6cb400,fffffd806e6cbb00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e530d68,fffffd806e6cbb00,ffff80002a6d7730,0,0,0) at sosend+0x66d sendit(ffff80002a62f008,3,ffff80002a6d78c8,0,ffff80002a6d78b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a62f008,ffff80002a6d7a70,ffff80002a6d79c0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6d7a70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77038510d3a0, 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(ffffffff828f6f9f) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806e6cb400,ffff80002a6d74b8,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806e6cb400,0,fffffd806f1df078,22,0,0,583dcc793d77c70) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806f1df000,fffffd806e6cb400,fffffd806e6cbb00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e530d68,fffffd806e6cbb00,ffff80002a6d7730,0,0,0) at sosend+0x66d sendit(ffff80002a62f008,3,ffff80002a6d78c8,0,ffff80002a6d78b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a62f008,ffff80002a6d7a70,ffff80002a6d79c0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6d7a70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77038510d3a0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a6d7300 rbx 0x24 rdx 0x3fd rcx 0 rax 0x32 r8 0x101010101010101 r9 0x8080808080808080 r10 0xd2465016e26b8f04 r11 0x649126b5b8b6a644 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff812e439c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a6d72f0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=63839 pid=11903 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=0xffff80002a61c010,0xffffffff82d6e2a8 process=0xffff8000ffff8008 user=0xffff80002a6d2000, vmspace=0xfffffd807161b588 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *11903 63839 19214 0 7 0 syz-executor.0 19214 254310 81268 0 3 0x82 nanoslp syz-executor.0 81268 262817 30090 0 3 0x2000082 thrsleep syz-execprog 81268 191454 30090 0 3 0x6000082 nanoslp syz-execprog 81268 63118 30090 0 3 0x6000082 thrsleep syz-execprog 81268 165262 30090 0 3 0x6000082 thrsleep syz-execprog 81268 50294 30090 0 3 0x6000082 thrsleep syz-execprog 81268 217737 30090 0 3 0x6000082 wait syz-execprog 81268 422355 30090 0 3 0x6000082 thrsleep syz-execprog 81268 199846 30090 0 3 0x6000082 kqread syz-execprog 81268 503872 30090 0 3 0x6000082 thrsleep syz-execprog 81268 56342 30090 0 3 0x6000082 thrsleep syz-execprog 81268 196675 30090 0 3 0x6000082 thrsleep syz-execprog 30090 213604 87149 0 3 0x10008a sigsusp ksh 87149 238380 57859 0 3 0x9a kqread sshd 21772 144585 1 0 3 0x100083 ttyin getty 57859 403922 1 0 3 0x88 kqread sshd 43364 259968 74487 73 3 0x1100090 kqread syslogd 74487 63192 1 0 3 0x100082 netio syslogd 23834 136992 1 0 3 0x100080 kqread resolvd 43084 336239 83342 77 3 0x100092 kqread dhcpleased 7579 159182 83342 77 3 0x100092 kqread dhcpleased 83342 319596 1 0 3 0x80 kqread dhcpleased 46439 407590 0 0 3 0x14200 bored smr 5359 16469 0 0 2 0x14200 zerothread 9059 58436 0 0 3 0x14200 aiodoned aiodoned 69173 317632 0 0 3 0x14200 syncer update 84758 172789 0 0 3 0x14200 cleaner cleaner 15913 364951 0 0 3 0x14200 reaper reaper 82527 267234 0 0 3 0x14200 pgdaemon pagedaemon 78057 165013 0 0 3 0x14200 bored viomb 42013 358918 0 0 3 0x40014200 acpi0 acpi0 87552 501306 0 0 3 0x14200 bored softnet3 46291 321869 0 0 3 0x14200 bored softnet2 11583 170001 0 0 3 0x14200 bored softnet1 75468 151490 0 0 3 0x14200 bored softnet0 11054 53309 0 0 3 0x14200 bored systqmp 87527 107011 0 0 3 0x14200 bored systq 4595 402450 0 0 3 0x40014200 tmoslp softclock 85388 350418 0 0 3 0x40014200 idle0 1 340413 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 140 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 273 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 146 14K 14K 166960K 2707 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 3114 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 22 0 19 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 167 0 167 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 145 0 0 10 0 10 10 0 8 0 art_table 32 146 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 5187 0 5187 3 0 3 3 0 8 3 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 6359 0 6359 2 0 2 2 1 8 2 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 424 339 0 308 5 0 5 5 0 8 1 knotepl 120 3528 0 3492 2 0 2 2 0 8 0 kqueuepl 184 21 0 13 1 0 1 1 0 8 0 pipepl 288 111 0 104 1 0 1 1 0 8 0 fdescpl 432 323 0 308 3 0 3 3 0 8 1 filepl 120 1390 0 1324 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 308 0 308 1 0 1 1 0 8 1 processpl 1072 339 0 308 3 0 3 3 0 8 0 procpl 680 349 0 308 5 0 5 5 0 8 1 sockpl 488 86 0 63 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 11756 0 11715 31 17 14 31 0 8 8 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 18952 0 18894 16 4 12 16 0 8 8 bufpl 280 4049 0 139 280 0 280 280 0 8 0 anonpl 24 182437 0 179053 52 0 52 52 0 188 26 amapchunkpl 152 9380 0 9038 25 0 25 25 0 158 9 amappl16 200 5184 0 5116 5 0 5 5 0 8 0 amappl15 192 13 0 13 1 0 1 1 0 8 1 amappl14 184 132 0 122 2 0 2 2 0 8 1 amappl13 176 36 0 36 1 0 1 1 0 8 1 amappl12 168 851 0 835 2 0 2 2 0 8 1 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 20 0 18 1 0 1 1 0 8 0 amappl9 144 131 0 130 1 0 1 1 0 8 0 amappl8 136 140 0 120 2 0 2 2 0 8 1 amappl7 128 152 0 139 2 0 2 2 0 8 0 amappl6 120 137 0 130 1 0 1 1 0 8 0 amappl5 112 126 0 118 1 0 1 1 0 8 0 amappl4 104 389 0 369 2 0 2 2 0 8 1 amappl3 96 2467 0 2426 2 0 2 2 0 8 0 amappl2 88 735 0 679 3 0 3 3 0 8 1 amappl1 80 9679 0 9224 22 0 22 22 0 8 10 amappl 88 2278 0 2190 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 323 0 308 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 323 0 308 1 0 1 1 0 8 0 vmmpekpl 168 9152 0 9127 2 0 2 2 0 8 0 vmmpepl 168 40491 0 39313 110 0 110 110 0 357 54 vmsppl 352 322 0 308 3 0 3 3 0 8 1 rwobjpl 24 19905 0 17649 19 0 19 19 0 8 1 pdppl 4096 652 0 616 74 16 58 60 0 8 22 pvpl 32 369973 0 362403 336 0 336 336 0 265 262 pmappl 216 322 0 308 2 0 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 323 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(ffffffff828f6f9f) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806e6cb400,ffff80002a6d74b8,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806e6cb400,0,fffffd806f1df078,22,0,0,583dcc793d77c70) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806f1df000,fffffd806e6cb400,fffffd806e6cbb00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e530d68,fffffd806e6cbb00,ffff80002a6d7730,0,0,0) at sosend+0x66d sendit(ffff80002a62f008,3,ffff80002a6d78c8,0,ffff80002a6d78b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a62f008,ffff80002a6d7a70,ffff80002a6d79c0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6d7a70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77038510d3a0, 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(ffffffff828f6f9f) at panic+0x165 sys/kern/subr_prf.c:198 ip_fragment(fffffd806e6cb400,ffff80002a6d74b8,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd806e6cb400,0,fffffd806f1df078,22,0,0,583dcc793d77c70) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806f1df000,fffffd806e6cb400,fffffd806e6cbb00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e530d68,fffffd806e6cbb00,ffff80002a6d7730,0,0,0) at sosend+0x66d sendit(ffff80002a62f008,3,ffff80002a6d78c8,0,ffff80002a6d78b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a62f008,ffff80002a6d7a70,ffff80002a6d79c0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6d7a70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x77038510d3a0, count: -10 ddb>