panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *349817 11519 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(fffffd807ba56300,ffff80002a677428,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807ba56300,0,fffffd806ee2b618,22,0,0,9b54e3458b7a5621) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806ee2b5a0,fffffd807ba56300,fffffd807ba56400,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e52ed68,fffffd807ba56400,ffff80002a6776a0,0,0,0) at sosend+0x66d sendit(ffff80002a61b008,3,ffff80002a677838,0,ffff80002a677828) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a61b008,ffff80002a6779e0,ffff80002a677930) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6779e0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x777c2e15a0d0, 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(fffffd807ba56300,ffff80002a677428,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807ba56300,0,fffffd806ee2b618,22,0,0,9b54e3458b7a5621) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806ee2b5a0,fffffd807ba56300,fffffd807ba56400,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e52ed68,fffffd807ba56400,ffff80002a6776a0,0,0,0) at sosend+0x66d sendit(ffff80002a61b008,3,ffff80002a677838,0,ffff80002a677828) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a61b008,ffff80002a6779e0,ffff80002a677930) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6779e0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x777c2e15a0d0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a677270 rbx 0x24 rdx 0x3fd rcx 0 rax 0x32 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf148ee8806ab0582 r11 0x4a0766b8d56cfa6f r12 0 r13 0x4e r14 0 r15 0x1 rip 0xffffffff818496ac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a677260 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=349817 pid=11519 tcnt=1 stat=onproc flags process=0 proc=0 runpri=51, usrpri=51, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a61c010,0xffffffff82d736d8 process=0xffff8000ffff8438 user=0xffff80002a672000, vmspace=0xfffffd806f152008 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *11519 349817 72071 0 7 0 syz-executor.0 72071 313783 3120 0 3 0x82 nanoslp syz-executor.0 3120 87287 16667 0 3 0x2000082 thrsleep syz-execprog 3120 421878 16667 0 3 0x6000082 nanoslp syz-execprog 3120 298105 16667 0 3 0x6000082 wait syz-execprog 3120 253651 16667 0 3 0x6000082 thrsleep syz-execprog 3120 81534 16667 0 3 0x6000082 thrsleep syz-execprog 3120 164792 16667 0 3 0x6000082 kqread syz-execprog 3120 502730 16667 0 3 0x6000082 thrsleep syz-execprog 3120 429371 16667 0 3 0x6000082 thrsleep syz-execprog 3120 468149 16667 0 3 0x6000082 thrsleep syz-execprog 3120 107411 16667 0 3 0x6000082 thrsleep syz-execprog 3120 340369 16667 0 3 0x6000082 thrsleep syz-execprog 16667 171883 83498 0 3 0x10008a sigsusp ksh 83498 369688 54395 0 3 0x9a kqread sshd 67126 10075 1 0 3 0x100083 ttyin getty 54395 428016 1 0 3 0x88 kqread sshd 7568 103416 26978 73 3 0x1100090 kqread syslogd 26978 450129 1 0 3 0x100082 netio syslogd 26493 348703 1 0 3 0x100080 kqread resolvd 66363 22364 61036 77 3 0x100092 kqread dhcpleased 57617 350309 61036 77 3 0x100092 kqread dhcpleased 61036 89633 1 0 3 0x80 kqread dhcpleased 41538 174940 0 0 3 0x14200 bored smr 74928 203436 0 0 2 0x14200 zerothread 74120 445162 0 0 3 0x14200 aiodoned aiodoned 58953 35045 0 0 3 0x14200 syncer update 68576 173759 0 0 3 0x14200 cleaner cleaner 80890 260228 0 0 3 0x14200 reaper reaper 7639 365716 0 0 3 0x14200 pgdaemon pagedaemon 27590 509643 0 0 3 0x14200 bored viomb 23805 262072 0 0 3 0x40014200 acpi0 acpi0 99137 10102 0 0 3 0x14200 bored softnet3 42936 402361 0 0 3 0x14200 bored softnet2 45246 449849 0 0 3 0x14200 bored softnet1 11386 418208 0 0 3 0x14200 bored softnet0 25965 488215 0 0 3 0x14200 bored systqmp 44916 519002 0 0 3 0x14200 bored systq 85044 258295 0 0 3 0x40014200 tmoslp softclock 19487 154279 0 0 3 0x40014200 idle0 1 268170 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 150 15K 15K 166960K 2642 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 3119 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 152 0 152 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 5187 0 5187 3 0 3 3 0 8 3 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 6371 0 6371 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 3640 0 3604 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 11729 0 11686 32 18 14 32 0 8 8 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 18919 0 18859 17 5 12 17 0 8 8 bufpl 280 4041 0 135 279 0 279 279 0 8 0 anonpl 24 198521 0 195141 53 0 53 53 0 188 28 amapchunkpl 152 9597 0 9255 25 0 25 25 0 158 10 amappl16 200 5852 0 5787 5 0 5 5 0 8 1 amappl15 192 9 0 9 1 0 1 1 0 8 1 amappl14 184 132 0 121 2 0 2 2 0 8 1 amappl13 176 13 0 13 1 0 1 1 0 8 1 amappl12 168 849 0 831 2 0 2 2 0 8 0 amappl11 160 55 0 44 1 0 1 1 0 8 0 amappl10 152 15 0 14 1 0 1 1 0 8 0 amappl9 144 184 0 183 1 0 1 1 0 8 0 amappl8 136 124 0 104 2 0 2 2 0 8 1 amappl7 128 155 0 140 2 0 2 2 0 8 0 amappl6 120 145 0 139 1 0 1 1 0 8 0 amappl5 112 129 0 121 1 0 1 1 0 8 0 amappl4 104 399 0 379 2 0 2 2 0 8 1 amappl3 96 2342 0 2301 2 0 2 2 0 8 0 amappl2 88 731 0 676 3 0 3 3 0 8 1 amappl1 80 9660 0 9210 22 0 22 22 0 8 10 amappl 88 2222 0 2134 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 9261 0 9238 2 0 2 2 0 8 0 vmmpepl 168 41033 0 39854 110 0 110 110 0 357 56 vmsppl 352 322 0 308 3 0 3 3 0 8 1 rwobjpl 24 20533 0 18282 19 0 19 19 0 8 0 pdppl 4096 652 0 616 74 18 56 60 0 8 20 pvpl 32 385869 0 378306 339 2 337 339 0 265 265 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 324 0 41 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(fffffd807ba56300,ffff80002a677428,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807ba56300,0,fffffd806ee2b618,22,0,0,9b54e3458b7a5621) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806ee2b5a0,fffffd807ba56300,fffffd807ba56400,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e52ed68,fffffd807ba56400,ffff80002a6776a0,0,0,0) at sosend+0x66d sendit(ffff80002a61b008,3,ffff80002a677838,0,ffff80002a677828) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a61b008,ffff80002a6779e0,ffff80002a677930) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6779e0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x777c2e15a0d0, 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(fffffd807ba56300,ffff80002a677428,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807ba56300,0,fffffd806ee2b618,22,0,0,9b54e3458b7a5621) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806ee2b5a0,fffffd807ba56300,fffffd807ba56400,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd806e52ed68,fffffd807ba56400,ffff80002a6776a0,0,0,0) at sosend+0x66d sendit(ffff80002a61b008,3,ffff80002a677838,0,ffff80002a677828) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a61b008,ffff80002a6779e0,ffff80002a677930) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a6779e0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x777c2e15a0d0, count: -10 ddb>