panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *522820 842 0 0 0x4000000 0 syz-executor.6 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(fffffd8069359000,ffff8000378dd268,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd8069359000,0,fffffd80677561f8,22,0,0,fd14b509737b5ae8) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8067756180,fffffd8069359000,fffffd807c4c4e00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd80694ebba0,fffffd807c4c4e00,ffff8000378dd4e0,0,0,0) at sosend+0x66d sendit(ffff80002f50bd48,3,ffff8000378dd678,0,ffff8000378dd668) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002f50bd48,ffff8000378dd820,ffff8000378dd770) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff8000378dd820) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe02ab212520, 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(fffffd8069359000,ffff8000378dd268,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd8069359000,0,fffffd80677561f8,22,0,0,fd14b509737b5ae8) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8067756180,fffffd8069359000,fffffd807c4c4e00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd80694ebba0,fffffd807c4c4e00,ffff8000378dd4e0,0,0,0) at sosend+0x66d sendit(ffff80002f50bd48,3,ffff8000378dd678,0,ffff8000378dd668) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002f50bd48,ffff8000378dd820,ffff8000378dd770) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff8000378dd820) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe02ab212520, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000378dd0b0 rbx 0x24 rdx 0xffff800000dd4c00 rcx 0 rax 0xffff80002f50bd48 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb18ecb45e2921a84 r11 0x3f0522ff2b73e814 r12 0 r13 0 r14 0 r15 0x1 rip 0xffffffff818496ac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000378dd0a0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.6) tid=522820 pid=842 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=76, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002f50b550,0xffffffff82d736d8 process=0xffff80002a62a5d0 user=0xffff8000378d8000, vmspace=0xfffffd80693dd5a0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 842 16558 12899 0 2 0 syz-executor.6 * 842 522820 12899 0 7 0x4000000 syz-executor.6 13257 364893 88491 0 3 0x80 nanoslp syz-executor.5 13257 451261 88491 0 3 0x4000080 fsleep syz-executor.5 13257 374612 88491 0 3 0x4000080 nanoslp syz-executor.5 13257 354957 88491 0 3 0x4000080 fsleep syz-executor.5 81334 123769 1 0 3 0x100083 ttyin getty 66238 342297 39504 0 2 0x2 syz-executor.0 22907 274940 39504 0 3 0x82 nanoslp syz-executor.7 88491 314769 39504 0 3 0x82 nanoslp syz-executor.5 46043 275998 0 0 3 0x14280 nfsidl nfsio 92627 129042 0 0 3 0x14280 nfsidl nfsio 91933 245324 0 0 3 0x14280 nfsidl nfsio 37153 210839 0 0 3 0x14280 nfsidl nfsio 66133 277091 0 0 3 0x14280 nfsidl nfsio 55348 254439 0 0 3 0x14280 nfsidl nfsio 84836 523878 0 0 3 0x14280 nfsidl nfsio 166 17591 0 0 3 0x14280 nfsidl nfsio 86264 850 0 0 3 0x14280 nfsidl nfsio 13051 424203 0 0 3 0x14280 nfsidl nfsio 70874 488520 0 0 3 0x14280 nfsidl nfsio 5713 376890 0 0 3 0x14280 nfsidl nfsio 55515 39605 0 0 3 0x14280 nfsidl nfsio 36561 129148 0 0 3 0x14280 nfsidl nfsio 53125 65989 0 0 3 0x14280 nfsidl nfsio 2565 492324 0 0 3 0x14280 nfsidl nfsio 49141 2836 0 0 3 0x14280 nfsidl nfsio 44900 183850 0 0 3 0x14280 nfsidl nfsio 40926 418013 0 0 3 0x14280 nfsidl nfsio 42736 366756 0 0 3 0x14280 nfsidl nfsio 54808 46287 0 0 3 0x14200 bored sosplice 12899 225192 39504 0 3 0x82 nanoslp syz-executor.6 30505 450614 39504 0 3 0x82 nanoslp syz-executor.4 22970 446802 39504 0 3 0x82 nanoslp syz-executor.3 69790 401023 39504 0 2 0x2 syz-executor.1 76805 200810 39504 0 2 0x2 syz-executor.2 39504 71412 12709 0 3 0x2000082 wait syz-fuzzer 39504 313996 12709 0 3 0x6000082 nanoslp syz-fuzzer 39504 511473 12709 0 3 0x6000082 thrsleep syz-fuzzer 39504 40214 12709 0 3 0x6000082 wait syz-fuzzer 39504 276109 12709 0 3 0x6000082 wait syz-fuzzer 39504 336983 12709 0 3 0x6000082 kqread syz-fuzzer 39504 315852 12709 0 3 0x6000082 thrsleep syz-fuzzer 39504 275987 12709 0 3 0x6000082 wait syz-fuzzer 39504 158810 12709 0 3 0x6000082 wait syz-fuzzer 39504 208981 12709 0 3 0x6000082 thrsleep syz-fuzzer 39504 141123 12709 0 3 0x6000082 thrsleep syz-fuzzer 39504 340072 12709 0 3 0x6000082 wait syz-fuzzer 39504 385541 12709 0 3 0x6000082 wait syz-fuzzer 39504 208180 12709 0 3 0x6000082 wait syz-fuzzer 12709 181048 79531 0 3 0x10008a sigsusp ksh 79531 420426 85171 0 3 0x9a kqread sshd 85171 327524 1 0 3 0x88 kqread sshd 52438 227106 29318 73 3 0x1100090 kqread syslogd 29318 112129 1 0 3 0x100082 netio syslogd 32439 163829 1 0 3 0x100080 kqread resolvd 77618 462687 77007 77 3 0x100092 kqread dhcpleased 56681 161293 77007 77 3 0x100092 kqread dhcpleased 77007 365948 1 0 3 0x80 kqread dhcpleased 24342 463846 0 0 3 0x14200 bored smr 62594 470696 0 0 2 0x14200 zerothread 98407 400527 0 0 3 0x14200 aiodoned aiodoned 67733 153332 0 0 3 0x14200 syncer update 97090 221692 0 0 3 0x14200 cleaner cleaner 77165 464834 0 0 3 0x14200 reaper reaper 31864 305975 0 0 3 0x14200 pgdaemon pagedaemon 84108 111135 0 0 3 0x14200 bored viomb 10223 75850 0 0 3 0x40014200 acpi0 acpi0 99353 79129 0 0 3 0x14200 bored softnet3 91702 223794 0 0 3 0x14200 bored softnet2 69695 520204 0 0 3 0x14200 bored softnet1 55499 494673 0 0 3 0x14200 bored softnet0 14365 224918 0 0 3 0x14200 bored systqmp 21288 383334 0 0 3 0x14200 bored systq 5613 354845 0 0 3 0x40014200 tmoslp softclock 62149 29082 0 0 3 0x40014200 idle0 1 508979 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 10178 6422K 7127K 166960K 15589 0 pcb 15 14K 16K 166960K 341 0 rtable 178 13K 14K 166960K 668 0 pf 27 8K 9K 166960K 81 0 ifaddr 33 9K 11K 166960K 86 0 ifgroup 46 2K 2K 166960K 130 0 sysctl 2 0K 0K 166960K 2 0 counters 29 17K 17K 166960K 53 0 ioctlops 0 0K 2K 166960K 173 0 iov 0 0K 16K 166960K 334 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1344 84K 84K 166960K 2678 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 36 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 559 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 12 41K 69K 166960K 2858 0 sigio 0 0K 0K 166960K 127 0 proc 58 59K 75K 166960K 725 0 subproc 104 6K 6K 166960K 156 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 241 0 in_multi 71 5K 7K 166960K 176 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 935 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 349 279K 284K 166960K 28999 0 UVM aobj 131 7K 7K 166960K 140 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 103 0 NDP 10 0K 1K 166960K 60 0 temp 74 6764K 13932K 166960K 109320 0 kqueue 12 18K 26K 166960K 281 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 278 0 275 3 0 3 3 0 8 2 rtentry 112 212 0 133 4 0 4 4 0 8 0 unpcb 144 1992 0 1979 6 0 6 6 0 8 5 syncache 336 25 0 25 2 1 1 1 0 8 1 tcpqe 32 163 0 163 2 1 1 1 0 8 1 tcpcb 808 745 0 726 14 5 9 9 0 8 5 arp 88 38 0 28 1 0 1 1 0 8 0 inpcb 360 2226 0 2203 14 5 9 9 0 8 6 nd6 104 42 0 24 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1072 9 0 9 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 779 0 413 30 2 28 29 0 8 3 art_table 32 780 0 413 4 0 4 4 0 8 0 art_node 16 198 0 126 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 5 1 0 1 1 0 8 0 semapl 112 557 0 547 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 5357 0 3898 92 0 92 92 0 8 0 ffsino 240 5357 0 3898 86 0 86 86 0 8 0 nchpl 144 9597 0 7942 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 30826 0 30824 4 3 1 3 0 8 0 vcpupl 2048 18 0 0 3 0 3 3 0 8 0 vmpool 664 18 0 0 2 0 2 2 0 8 0 kstatmem 264 68 0 48 2 0 2 2 0 8 0 scxspl 216 30297 0 30297 11 7 4 8 1 8 4 plimitpl 152 461 0 445 1 0 1 1 0 8 0 sigapl 424 3212 0 3149 8 0 8 8 0 8 0 futexpl 64 28415 0 28413 1 0 1 1 0 8 0 knotepl 120 28063 0 27980 4 0 4 4 0 8 0 kqueuepl 184 543 0 535 4 0 4 4 0 8 3 pipepl 288 633 0 605 10 5 5 7 0 8 2 fdescpl 432 3135 0 3112 4 0 4 4 0 8 0 filepl 120 18008 0 17771 18 5 13 14 0 8 3 lockfpl 104 666 0 664 2 0 2 2 0 8 1 lockfspl 48 261 0 259 1 0 1 1 0 8 0 sessionpl 144 28 0 12 1 0 1 1 0 8 0 pgrppl 48 72 0 56 1 0 1 1 0 8 0 ucredpl 104 2329 0 2317 1 0 1 1 0 8 0 zombiepl 144 3152 0 3149 1 0 1 1 0 8 0 processpl 1072 3212 0 3149 5 0 5 5 0 8 0 procpl 680 7574 0 7494 9 0 9 9 0 8 1 sosppl 168 23 0 23 1 0 1 1 0 8 1 sockpl 488 4540 0 4501 55 41 14 23 0 8 7 mcl64k 65536 120 0 120 2 1 1 1 0 8 1 mcl16k 16384 58 0 58 2 1 1 1 0 8 1 mcl12k 12288 74 0 74 2 1 1 1 0 8 1 mcl9k 9216 48 0 48 2 1 1 1 0 8 1 mcl8k 8192 182 0 181 2 1 1 1 0 8 0 mcl4k 4096 345 0 345 2 1 1 1 0 8 1 mcl2k2 2112 19 0 19 2 1 1 1 0 8 1 mcl2k 2048 77379 0 77331 28 20 8 27 0 8 1 mtagpl 96 449 0 145 8 0 8 8 0 8 0 mbufpl 256 147900 0 147487 112 78 34 70 0 8 7 bufpl 280 10338 0 3946 457 0 457 457 0 8 0 anonpl 24 454825 0 441276 104 7 97 97 0 188 1 amapchunkpl 152 92888 0 92107 40 0 40 40 0 158 2 amappl16 200 10916 0 10474 36 7 29 30 0 8 4 amappl15 192 12 0 12 1 1 0 1 0 8 0 amappl14 184 169 0 159 2 1 1 2 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 3837 0 3813 2 0 2 2 0 8 0 amappl11 160 57 0 46 1 0 1 1 0 8 0 amappl10 152 34 0 25 1 0 1 1 0 8 0 amappl9 144 142 0 141 1 0 1 1 0 8 0 amappl8 136 262 0 194 3 0 3 3 0 8 0 amappl7 128 183 0 161 2 0 2 2 0 8 0 amappl6 120 349 0 337 1 0 1 1 0 8 0 amappl5 112 179 0 171 1 0 1 1 0 8 0 amappl4 104 479 0 454 2 1 1 2 0 8 0 amappl3 96 18706 0 18634 3 0 3 3 0 8 0 amappl2 88 3773 0 3707 3 1 2 3 0 8 0 amappl1 80 19690 0 19187 22 10 12 22 0 8 0 amappl 88 28366 0 28159 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 139 0 9 3 0 3 3 0 8 0 uaddrrnd 24 3153 0 3112 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3153 0 3112 1 0 1 1 0 8 0 vmmpekpl 168 27752 0 27695 3 0 3 3 0 8 0 vmmpepl 168 205228 0 203159 130 8 122 122 0 357 17 vmsppl 352 3152 0 3112 5 0 5 5 0 8 0 rwobjpl 24 61589 0 54079 46 0 46 46 0 8 0 pdppl 4096 6312 0 6242 193 111 82 82 0 8 12 pvpl 32 1083120 0 1064312 348 170 178 335 0 265 4 pmappl 216 3152 0 3112 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 598 0 231 12 0 12 12 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(fffffd8069359000,ffff8000378dd268,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd8069359000,0,fffffd80677561f8,22,0,0,fd14b509737b5ae8) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8067756180,fffffd8069359000,fffffd807c4c4e00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd80694ebba0,fffffd807c4c4e00,ffff8000378dd4e0,0,0,0) at sosend+0x66d sendit(ffff80002f50bd48,3,ffff8000378dd678,0,ffff8000378dd668) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002f50bd48,ffff8000378dd820,ffff8000378dd770) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff8000378dd820) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe02ab212520, 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(fffffd8069359000,ffff8000378dd268,ffff80000019e2a8,5dc) at ip_fragment+0x7b1 ip_output(fffffd8069359000,0,fffffd80677561f8,22,0,0,fd14b509737b5ae8) at ip_output+0xe10 sys/netinet/ip_output.c:478 divert_output(fffffd8067756180,fffffd8069359000,fffffd807c4c4e00,0) at divert_output+0x2ca sys/netinet/ip_divert.c:174 sosend(fffffd80694ebba0,fffffd807c4c4e00,ffff8000378dd4e0,0,0,0) at sosend+0x66d sendit(ffff80002f50bd48,3,ffff8000378dd678,0,ffff8000378dd668) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002f50bd48,ffff8000378dd820,ffff8000378dd770) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff8000378dd820) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe02ab212520, count: -10