panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *457182 22106 0 0 0x4000000 0 syz-executor.3 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(fffffd807e22fa00,ffff800037834a38,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807e22fa00,0,fffffd806911c790,22,0,0,6072cd458af51d40) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806911c718,fffffd807e22fa00,fffffd807f02a500,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd8067d235f8,fffffd807f02a500,ffff800037834cb0,0,0,0) at sosend+0x66d sendit(ffff80002a693d40,3,ffff800037834e48,0,ffff800037834e38) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a693d40,ffff800037834ff0,ffff800037834f40) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800037834ff0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa27409a6290, 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(fffffd807e22fa00,ffff800037834a38,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807e22fa00,0,fffffd806911c790,22,0,0,6072cd458af51d40) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806911c718,fffffd807e22fa00,fffffd807f02a500,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd8067d235f8,fffffd807f02a500,ffff800037834cb0,0,0,0) at sosend+0x66d sendit(ffff80002a693d40,3,ffff800037834e48,0,ffff800037834e38) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a693d40,ffff800037834ff0,ffff800037834f40) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800037834ff0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa27409a6290, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037834880 rbx 0x24 rdx 0xffff800000e41d80 rcx 0 rax 0xffff80002a693d40 r8 0x101010101010101 r9 0x8080808080808080 r10 0x492ee67ab197858f r11 0xa8a4310885a064f7 r12 0 r13 0x1 r14 0 r15 0x1 rip 0xffffffff812e439c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800037834870 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.3) tid=457182 pid=22106 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a692800,0xffff80002a6932b0 process=0xffff8000ffff3688 user=0xffff800037830000, vmspace=0xfffffd80698d2c88 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 42151 1770 78426 0 2 0 syz-executor.5 42151 504925 78426 0 2 0x4000000 syz-executor.5 92195 296247 86283 0 2 0 syz-executor.7 92195 67358 86283 0 3 0x4000080 fsleep syz-executor.7 8642 398298 36970 0 2 0 syz-executor.0 8642 456144 36970 0 3 0x4000080 fsleep syz-executor.0 22106 13662 17752 0 2 0 syz-executor.3 *22106 457182 17752 0 7 0x4000000 syz-executor.3 6961 73326 90942 0 2 0 syz-executor.6 6961 276052 90942 0 3 0x4000080 netcon syz-executor.6 6961 312241 90942 0 3 0x4000080 netcon syz-executor.6 6961 171647 90942 0 3 0x4000080 fsleep syz-executor.6 72254 93270 68656 0 2 0x2 syz-executor.1 17752 162498 68656 0 3 0x82 nanoslp syz-executor.3 36970 207309 68656 0 3 0x82 nanoslp syz-executor.0 26982 258740 68656 0 2 0x2 syz-executor.2 90942 261310 68656 0 3 0x82 nanoslp syz-executor.6 78426 68838 68656 0 3 0x82 nanoslp syz-executor.5 86283 25794 68656 0 3 0x82 nanoslp syz-executor.7 17308 434132 68656 0 3 0x82 nanoslp syz-executor.4 96340 346678 0 0 3 0x14280 nfsidl nfsio 40857 435725 0 0 3 0x14280 nfsidl nfsio 45450 360465 0 0 3 0x14280 nfsidl nfsio 1921 10767 0 0 3 0x14280 nfsidl nfsio 54204 152215 0 0 3 0x14280 nfsidl nfsio 42970 400855 0 0 3 0x14280 nfsidl nfsio 58796 321428 0 0 3 0x14280 nfsidl nfsio 33705 489886 0 0 3 0x14280 nfsidl nfsio 18266 34233 0 0 3 0x14280 nfsidl nfsio 3089 236227 0 0 3 0x14280 nfsidl nfsio 20280 159122 0 0 3 0x14280 nfsidl nfsio 62920 511699 0 0 3 0x14280 nfsidl nfsio 58908 316912 0 0 3 0x14280 nfsidl nfsio 12681 508192 0 0 3 0x14280 nfsidl nfsio 28557 152015 0 0 3 0x14280 nfsidl nfsio 61028 399286 0 0 3 0x14280 nfsidl nfsio 14601 484125 0 0 3 0x14280 nfsidl nfsio 20147 449572 0 0 3 0x14280 nfsidl nfsio 48262 100763 0 0 3 0x14280 nfsidl nfsio 17655 460798 0 0 3 0x14280 nfsidl nfsio 80356 380278 0 0 3 0x14200 bored sosplice 68656 44006 65818 0 3 0x2000082 thrsleep syz-fuzzer 68656 517301 65818 0 3 0x6000082 nanoslp syz-fuzzer 68656 198799 65818 0 3 0x6000082 wait syz-fuzzer 68656 489565 65818 0 3 0x6000082 wait syz-fuzzer 68656 483846 65818 0 3 0x6000082 wait syz-fuzzer 68656 184902 65818 0 3 0x6000082 kqread syz-fuzzer 68656 175605 65818 0 3 0x6000082 thrsleep syz-fuzzer 68656 203586 65818 0 3 0x6000082 wait syz-fuzzer 68656 430443 65818 0 3 0x6000082 wait syz-fuzzer 68656 68716 65818 0 3 0x6000082 wait syz-fuzzer 68656 484273 65818 0 3 0x6000082 thrsleep syz-fuzzer 68656 136933 65818 0 3 0x6000082 wait syz-fuzzer 68656 68205 65818 0 3 0x6000082 thrsleep syz-fuzzer 68656 67836 65818 0 3 0x6000082 wait syz-fuzzer 65818 59126 39207 0 3 0x10008a sigsusp ksh 39207 215765 51794 0 3 0x9a kqread sshd 6331 466079 1 0 3 0x100083 ttyin getty 51794 125916 1 0 3 0x88 kqread sshd 72965 21256 76436 73 3 0x1100090 kqread syslogd 76436 56105 1 0 3 0x100082 netio syslogd 68322 262070 1 0 3 0x100080 kqread resolvd 92641 443147 15660 77 3 0x100092 kqread dhcpleased 44598 216355 15660 77 3 0x100092 kqread dhcpleased 15660 478370 1 0 3 0x80 kqread dhcpleased 30930 7095 0 0 3 0x14200 bored smr 51512 503342 0 0 2 0x14200 zerothread 91448 106440 0 0 3 0x14200 aiodoned aiodoned 26638 504678 0 0 3 0x14200 syncer update 11153 249161 0 0 3 0x14200 cleaner cleaner 5724 398903 0 0 3 0x14200 reaper reaper 92970 346941 0 0 3 0x14200 pgdaemon pagedaemon 34671 521784 0 0 3 0x14200 bored viomb 41760 247564 0 0 3 0x40014200 acpi0 acpi0 45665 516590 0 0 3 0x14200 bored softnet3 52549 393462 0 0 3 0x14200 bored softnet2 12257 130449 0 0 3 0x14200 bored softnet1 12682 91082 0 0 3 0x14200 bored softnet0 38463 223628 0 0 3 0x14200 bored systqmp 38276 457218 0 0 3 0x14200 bored systq 15250 411735 0 0 3 0x40014200 tmoslp softclock 59221 508963 0 0 3 0x40014200 idle0 1 11523 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 10213 6489K 7392K 166960K 36790 0 pcb 15 18K 20K 166960K 866 0 rtable 236 15K 16K 166960K 2756 0 pf 33 9K 10K 166960K 302 0 ifaddr 44 13K 13K 166960K 323 0 ifgroup 58 2K 2K 166960K 487 0 sysctl 3 0K 0K 166960K 9 0 counters 32 17K 17K 166960K 151 0 ioctlops 0 0K 2K 166960K 569 0 iov 0 0K 24K 166960K 1355 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1532 96K 96K 166960K 9473 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 23 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 22 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 15 53K 73K 166960K 12270 0 sigio 0 0K 0K 166960K 351 0 proc 58 59K 83K 166960K 2158 0 subproc 104 6K 7K 166960K 728 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 1622 0 in_multi 98 7K 7K 166960K 720 0 ether_multi 1 0K 0K 166960K 9 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 2004 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 413 268K 276K 166960K 111821 0 UVM aobj 131 4K 4K 166960K 134 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 421 0 NDP 13 0K 2K 166960K 244 0 temp 74 6764K 7404K 166960K 80811 0 kqueue 14 18K 28K 166960K 750 0 SYN cache 2 104K 112K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 671 0 668 5 4 1 5 0 8 0 rtentry 112 876 0 770 4 0 4 4 0 8 0 unpcb 144 8144 0 8131 6 5 1 6 0 8 0 syncache 336 109 0 109 1 1 0 1 0 8 0 tcpqe 32 542 0 542 2 2 0 2 0 8 0 tcpcb 808 3294 0 3276 19 17 2 15 0 8 0 arp 88 146 0 130 1 0 1 1 0 8 0 ipq 40 7 0 7 1 1 0 1 0 8 0 ipqe 40 18 0 18 1 1 0 1 0 8 0 inpcb 360 10259 0 10236 31 23 8 15 0 8 5 nd6 104 177 0 153 1 0 1 1 0 8 0 pkpcb 40 115 0 115 1 1 0 1 0 8 0 kcovpl 48 56 0 48 1 0 1 1 0 8 0 ppxss 1072 39 0 39 1 0 1 1 0 8 1 art_heap8 4096 5 0 4 3 2 1 3 0 8 0 art_heap4 256 3273 0 2818 46 17 29 31 0 8 0 art_table 32 3278 0 2822 4 0 4 4 0 8 0 art_node 16 863 0 767 1 0 1 1 0 8 0 sysvmsgpl 40 43 0 4 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 18088 0 16602 94 0 94 94 0 8 0 ffsino 240 18088 0 16602 88 0 88 88 0 8 0 nchpl 144 34228 0 32579 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 117121 0 117120 3 2 1 2 0 8 0 vcpupl 2048 182 0 0 23 0 23 23 0 8 0 vmpool 664 194 0 12 16 0 16 16 0 8 0 kstatmem 264 264 0 238 2 0 2 2 0 8 0 scxspl 216 108226 0 108226 8 7 1 8 1 8 1 plimitpl 152 931 0 916 1 0 1 1 0 8 0 sigapl 424 12632 0 12568 8 0 8 8 0 8 0 futexpl 64 107044 0 107041 1 0 1 1 0 8 0 knotepl 120 105941 0 105858 10 7 3 10 0 8 0 kqueuepl 184 1975 0 1966 4 3 1 4 0 8 0 pipepl 288 1895 0 1867 7 4 3 7 0 8 0 fdescpl 432 12449 0 12423 4 0 4 4 0 8 0 filepl 120 73916 0 73674 19 9 10 17 0 8 1 lockfpl 104 2874 0 2872 2 1 1 2 0 8 0 lockfspl 48 968 0 966 1 0 1 1 0 8 0 sessionpl 144 71 0 55 1 0 1 1 0 8 0 pgrppl 48 359 0 343 1 0 1 1 0 8 0 ucredpl 104 9677 0 9660 1 0 1 1 0 8 0 zombiepl 144 12569 0 12568 2 1 1 1 0 8 0 processpl 1072 12632 0 12568 5 0 5 5 0 8 0 procpl 680 29776 0 29692 10 1 9 10 0 8 0 sosppl 168 117 0 117 1 1 0 1 0 8 0 sockpl 488 19236 0 19197 258 245 13 29 0 8 7 mcl64k 65536 458 0 458 1 1 0 1 0 8 0 mcl16k 16384 202 0 202 1 1 0 1 0 8 0 mcl12k 12288 449 0 449 2 1 1 1 0 8 1 mcl9k 9216 285 0 285 2 1 1 1 0 8 1 mcl8k 8192 909 0 908 2 1 1 1 0 8 0 mcl4k 4096 1129 0 1129 2 1 1 1 0 8 1 mcl2k2 2112 73 0 73 1 1 0 1 0 8 0 mcl2k 2048 93616 0 93564 53 45 8 33 0 8 0 mtagpl 96 3433 0 3415 21 20 1 21 0 8 0 mbufpl 256 249054 0 248785 268 250 18 95 0 8 0 bufpl 280 24448 0 18053 458 0 458 458 0 8 0 anonpl 24 1293671 0 1279955 123 17 106 123 0 188 0 amapchunkpl 152 353400 0 352574 50 15 35 48 0 158 1 amappl16 200 29397 0 28925 76 48 28 50 0 8 0 amappl15 192 81 0 80 1 0 1 1 0 8 0 amappl14 184 294 0 280 2 1 1 2 0 8 0 amappl13 176 33 0 33 1 1 0 1 0 8 0 amappl12 168 13790 0 13762 2 0 2 2 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 90 0 79 1 0 1 1 0 8 0 amappl9 144 251 0 248 1 0 1 1 0 8 0 amappl8 136 534 0 450 4 0 4 4 0 8 0 amappl7 128 298 0 274 2 0 2 2 0 8 0 amappl6 120 1008 0 997 1 0 1 1 0 8 0 amappl5 112 329 0 321 1 0 1 1 0 8 0 amappl4 104 775 0 751 2 1 1 2 0 8 0 amappl3 96 69880 0 69791 3 0 3 3 0 8 0 amappl2 88 13489 0 13417 3 1 2 3 0 8 0 amappl1 80 55634 0 55129 22 10 12 22 0 8 0 amappl 88 110697 0 110461 7 0 7 7 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 12643 0 12435 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12643 0 12435 2 0 2 2 0 8 0 vmmpekpl 168 82728 0 82654 4 0 4 4 0 8 0 vmmpepl 168 754364 0 751924 143 23 120 143 0 357 0 vmsppl 352 12642 0 12435 21 1 20 20 0 8 0 rwobjpl 24 179771 0 172188 48 0 48 48 0 8 0 pdppl 4096 25292 0 25052 794 550 244 248 0 8 4 pvpl 32 3395955 0 3376340 324 137 187 324 0 265 0 pmappl 216 12642 0 12435 12 0 12 12 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1421 0 895 18 0 18 18 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(fffffd807e22fa00,ffff800037834a38,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807e22fa00,0,fffffd806911c790,22,0,0,6072cd458af51d40) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806911c718,fffffd807e22fa00,fffffd807f02a500,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd8067d235f8,fffffd807f02a500,ffff800037834cb0,0,0,0) at sosend+0x66d sendit(ffff80002a693d40,3,ffff800037834e48,0,ffff800037834e38) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a693d40,ffff800037834ff0,ffff800037834f40) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800037834ff0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa27409a6290, 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(fffffd807e22fa00,ffff800037834a38,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd807e22fa00,0,fffffd806911c790,22,0,0,6072cd458af51d40) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd806911c718,fffffd807e22fa00,fffffd807f02a500,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd8067d235f8,fffffd807f02a500,ffff800037834cb0,0,0,0) at sosend+0x66d sendit(ffff80002a693d40,3,ffff800037834e48,0,ffff800037834e38) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a693d40,ffff800037834ff0,ffff800037834f40) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800037834ff0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa27409a6290, count: -10