panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 8355 37471 0 0 0 1 syz-executor.6 *504979 45211 0 0 0x4000000 0 syz-executor.5 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82914c9b) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8068e14000,ffff800033c30fb8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8068e14000,0,fffffd8075b449c0,22,0,0,b4ad771eb2d18987) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd8075b44948,fffffd8068e14000,fffffd80656baf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000d9eda8,fffffd80656baf00,ffff800033c31220,0,0,0) at sosend+0x66d sendit(ffff80002d6b1810,3,ffff800033c313b8,0,ffff800033c313a8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002d6b1810,ffff800033c31560,ffff800033c314b0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800033c31560) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800033c31560) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x25e712d7d70, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: malformed IPv4 option passed to ip_optcopy ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82914c9b) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8068e14000,ffff800033c30fb8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8068e14000,0,fffffd8075b449c0,22,0,0,b4ad771eb2d18987) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd8075b44948,fffffd8068e14000,fffffd80656baf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000d9eda8,fffffd80656baf00,ffff800033c31220,0,0,0) at sosend+0x66d sendit(ffff80002d6b1810,3,ffff800033c313b8,0,ffff800033c313a8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002d6b1810,ffff800033c31560,ffff800033c314b0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800033c31560) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800033c31560) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x25e712d7d70, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800033c30e00 rbx 0xffffffff82d17cb7 cpu_info_full_primary+0x2cb7 rdx 0xffff800000e30380 rcx 0xffff80002d6b1810 rax 0xffffffff82d16ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x2df1414142f52e63 r11 0x9e2470c5882cf82d r12 0xffffffff82d17ab8 cpu_info_full_primary+0x2ab8 r13 0 r14 0 r15 0x1 rip 0xffffffff81ab58dc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800033c30df0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.5) tid=504979 pid=45211 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=0xffff80002d6b2800,0xffff80002d6b2568 process=0xffff8000ffff7550 user=0xffff800033c2c000, vmspace=0xfffffd806784c018 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 68903 474690 93413 0 2 0 syz-executor.4 37471 8355 94228 0 7 0 syz-executor.6 37471 28800 94228 0 2 0x4000000 syz-executor.6 45211 522883 53509 0 2 0 syz-executor.5 *45211 504979 53509 0 7 0x4000000 syz-executor.5 55419 259591 46979 0 2 0 syz-executor.3 55419 472824 46979 0 3 0x4000080 fsleep syz-executor.3 13391 199871 22811 0 3 0x80 nanoslp syz-executor.1 13391 162895 22811 0 3 0x4000080 ttyin syz-executor.1 13391 115056 22811 0 3 0x4000080 fsleep syz-executor.1 52196 309423 40983 0 3 0x80 nanoslp syz-executor.2 52196 252896 40983 0 3 0x4000080 fsleep syz-executor.2 52196 27976 40983 0 3 0x4000080 netio syz-executor.2 52196 93670 40983 0 3 0x4000080 fsleep syz-executor.2 46979 103447 96194 0 3 0x82 nanoslp syz-executor.3 20706 46221 96194 0 2 0x2 syz-executor.7 53509 351481 96194 0 3 0x82 nanoslp syz-executor.5 84115 1310 1 0 3 0x100083 ttyin getty 22811 45164 96194 0 3 0x82 nanoslp syz-executor.1 67108 191309 0 0 3 0x14200 acct acct 63840 459403 96194 0 3 0x82 nanoslp syz-executor.0 94228 70544 96194 0 3 0x82 nanoslp syz-executor.6 40983 195332 96194 0 3 0x82 nanoslp syz-executor.2 93413 504031 96194 0 3 0x82 nanoslp syz-executor.4 99675 248912 0 0 3 0x14280 nfsidl nfsio 35900 122701 0 0 3 0x14280 nfsidl nfsio 95193 508149 0 0 3 0x14280 nfsidl nfsio 58031 502559 0 0 3 0x14280 nfsidl nfsio 16282 382402 0 0 3 0x14280 nfsidl nfsio 9765 195600 0 0 3 0x14280 nfsidl nfsio 4416 436900 0 0 3 0x14280 nfsidl nfsio 94442 508978 0 0 3 0x14280 nfsidl nfsio 73746 46080 0 0 3 0x14280 nfsidl nfsio 90988 445541 0 0 3 0x14280 nfsidl nfsio 64073 498509 0 0 3 0x14280 nfsidl nfsio 62413 420916 0 0 3 0x14280 nfsidl nfsio 7400 446058 0 0 3 0x14280 nfsidl nfsio 71121 212155 0 0 3 0x14280 nfsidl nfsio 94208 179508 0 0 3 0x14280 nfsidl nfsio 2052 477991 0 0 3 0x14280 nfsidl nfsio 30044 131485 0 0 3 0x14280 nfsidl nfsio 33359 405164 0 0 3 0x14280 nfsidl nfsio 60732 348943 0 0 3 0x14280 nfsidl nfsio 32917 304993 0 0 3 0x14280 nfsidl nfsio 60418 63219 0 0 3 0x14200 bored sosplice 96194 406737 48067 0 3 0x2000082 wait syz-fuzzer 96194 422081 48067 0 3 0x6000082 nanoslp syz-fuzzer 96194 129736 48067 0 3 0x6000082 wait syz-fuzzer 96194 380825 48067 0 3 0x6000082 wait syz-fuzzer 96194 64752 48067 0 3 0x6000082 wait syz-fuzzer 96194 316633 48067 0 3 0x6000082 thrsleep syz-fuzzer 96194 351218 48067 0 3 0x6000082 wait syz-fuzzer 96194 202398 48067 0 3 0x6000082 thrsleep syz-fuzzer 96194 59226 48067 0 3 0x6000082 wait syz-fuzzer 96194 508427 48067 0 3 0x6000082 thrsleep syz-fuzzer 96194 28135 48067 0 3 0x6000082 thrsleep syz-fuzzer 96194 391424 48067 0 3 0x6000082 wait syz-fuzzer 96194 293825 48067 0 3 0x6000082 wait syz-fuzzer 96194 437681 48067 0 3 0x6000082 kqread syz-fuzzer 96194 240133 48067 0 3 0x6000082 thrsleep syz-fuzzer 96194 64141 48067 0 3 0x6000082 thrsleep syz-fuzzer 48067 153597 67884 0 3 0x10008a sigsusp ksh 67884 199590 11339 0 3 0x9a kqread sshd 11339 440669 1 0 3 0x88 kqread sshd 93575 287712 75536 74 3 0x1100092 bpf pflogd 75536 100086 1 0 3 0x80 netio pflogd 19769 185768 38025 73 3 0x1100090 kqread syslogd 38025 38215 1 0 3 0x100082 netio syslogd 69264 202593 1 0 3 0x100080 kqread resolvd 98653 32218 0 0 3 0x14200 bored smr 21761 210240 0 0 2 0x14200 zerothread 2596 13067 0 0 3 0x14200 aiodoned aiodoned 61180 148157 0 0 3 0x14200 syncer update 90499 138693 0 0 3 0x14200 cleaner cleaner 856 141599 0 0 3 0x14200 reaper reaper 49037 140508 0 0 3 0x14200 pgdaemon pagedaemon 49461 249246 0 0 3 0x14200 bored viomb 38813 111608 0 0 3 0x40014200 acpi0 acpi0 12593 27823 0 0 3 0x40014200 idle1 19264 242534 0 0 3 0x14200 bored softnet3 44821 459260 0 0 3 0x14200 bored softnet2 45150 429877 0 0 3 0x14200 bored softnet1 35719 442290 0 0 3 0x14200 bored softnet0 93596 154204 0 0 3 0x14200 bored systqmp 47609 33920 0 0 3 0x14200 bored systq 45204 426102 0 0 3 0x14200 tmoslp softclockmp 90983 131275 0 0 3 0x40014200 tmoslp softclock 17074 332492 0 0 3 0x40014200 idle0 1 414465 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 45211 (syz-executor.5) thread 0xffff80002d6b1810 (504979) Process 20706 (syz-executor.7) thread 0xffff80002d6b1d60 (46221) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 6486K 7060K 166960K 15045 0 pcb 15 18K 20K 166960K 741 0 rtable 234 15K 15K 166960K 2146 0 pf 35 10K 10K 166960K 405 0 ifaddr 45 17K 17K 166960K 308 0 ifgroup 62 2K 3K 166960K 635 0 sysctl 3 0K 0K 166960K 7 0 counters 66 36K 37K 166960K 362 0 ioctlops 0 0K 4K 166960K 2066 0 iov 0 0K 33K 166960K 1564 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1499 94K 94K 166960K 5157 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 111 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 1466 0 dirhash 12 2K 2K 166960K 66 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 89K 166960K 12070 0 sigio 0 0K 0K 166960K 544 0 proc 68 67K 127K 166960K 2075 0 subproc 104 6K 6K 166960K 533 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1106 0 in_multi 98 7K 7K 166960K 605 0 ether_multi 1 0K 0K 166960K 19 0 mrt 1 0K 0K 166960K 12 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 1935 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 465 641K 641K 166960K 120023 0 UVM aobj 131 4K 4K 166960K 135 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 486 0 NDP 13 0K 1K 166960K 243 0 temp 74 6772K 6904K 166960K 70359 0 kqueue 6 10K 26K 166960K 1229 0 SYN cache 2 36K 44K 166960K 3 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 517 0 516 5 4 1 3 0 8 0 rtentry 112 573 0 466 6 2 4 4 0 8 0 unpcb 144 10581 0 10571 123 117 6 15 0 8 5 syncache 336 100 0 100 25 25 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 379 408 379 15 15 0 2 0 8 0 tcpcb 808 3370 0 3331 109 98 11 15 0 8 6 arp 120 117 0 100 1 0 1 1 0 8 0 inpcb 392 9224 0 9179 202 188 14 22 0 8 9 nd6 136 125 0 101 1 0 1 1 0 8 0 pkpcb 40 18 0 18 6 6 0 1 0 8 0 kcovpl 48 41 0 33 1 0 1 1 0 8 0 ppxss 1168 41 0 41 12 12 0 1 0 8 0 pffrag 232 111 0 109 6 5 1 1 0 482 0 pffrnode 88 111 0 109 6 5 1 1 0 8 0 pffrent 40 251 0 249 6 5 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 423 0 408 1 0 1 1 0 8 0 pfstkey 128 424 0 409 3 2 1 2 0 8 0 pfstate 376 424 0 409 15 12 3 8 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 4 3 2 1 3 0 8 0 art_heap4 256 2074 0 1614 45 16 29 30 0 8 0 art_table 32 2079 0 1618 5 1 4 4 0 8 0 art_node 16 562 0 465 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 1463 0 1453 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 53 0 36 3 0 3 3 0 8 0 dino2pl 256 17238 0 15730 95 0 95 95 0 8 0 ffsino 272 17238 0 15730 101 0 101 101 0 8 0 nchpl 144 33480 0 31825 64 0 64 64 0 8 0 uvmvnodes 80 7130 0 0 146 0 146 146 0 8 0 vnodes 216 7130 0 0 397 0 397 397 0 8 0 namei 1024 118196 0 118196 9 8 1 2 0 8 1 percpumem 16 195 0 148 1 0 1 1 0 8 0 vcpupl 2048 67 0 0 9 0 9 9 0 8 0 vmpool 696 70 0 3 8 1 7 7 0 8 0 kstatmem 264 322 0 296 3 0 3 3 0 8 1 scxspl 216 121576 0 121576 43 39 4 8 1 8 4 plimitpl 152 2416 0 2401 1 0 1 1 0 8 0 sigapl 424 12360 0 12293 11 3 8 9 0 8 0 futexpl 64 94019 0 94015 12 11 1 1 0 8 0 knotepl 120 899 0 0 26 1 25 26 0 8 0 kqueuepl 216 3157 0 3151 49 48 1 7 0 8 0 pipepl 320 2170 0 2141 66 60 6 13 0 8 3 fdescpl 496 12299 0 12273 7 3 4 5 0 8 0 filepl 152 79151 0 78922 175 160 15 24 0 8 4 lockfpl 104 3743 0 3742 5 3 2 2 0 8 1 lockfspl 48 1078 0 1077 1 0 1 1 0 8 0 sessionpl 144 60 0 44 1 0 1 1 0 8 0 pgrppl 48 324 0 308 1 0 1 1 0 8 0 ucredpl 104 12489 0 12479 1 0 1 1 0 8 0 zombiepl 144 12294 0 12293 3 2 1 1 0 8 0 processpl 1136 12360 0 12293 6 0 6 6 0 8 0 procpl 680 33484 0 33394 17 8 9 10 0 8 0 srpgc 96 49 0 49 14 14 0 1 0 8 0 sosppl 168 119 0 113 14 13 1 1 0 8 0 sockpl 584 20401 0 20349 263 251 12 30 0 8 8 mcl64k 65536 38 0 0 5 3 2 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 29 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 31 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 382 0 0 33 16 17 33 0 8 0 mtagpl 96 25 0 0 1 0 1 1 0 8 0 mbufpl 256 7387 0 0 418 0 418 418 0 8 0 bufpl 280 25121 0 17990 510 0 510 510 0 8 0 anonpl 24 1299922 0 1286072 161 50 111 118 0 186 0 amapchunkpl 152 382127 0 381267 120 79 41 58 0 158 5 amappl16 200 25026 0 24548 95 64 31 39 0 8 0 amappl15 192 62 0 61 1 0 1 1 0 8 0 amappl14 184 316 0 299 3 1 2 2 0 8 0 amappl13 176 20 0 20 4 4 0 1 0 8 0 amappl12 168 13439 0 13407 3 1 2 2 0 8 0 amappl11 160 75 0 67 1 0 1 1 0 8 0 amappl10 152 79 0 65 1 0 1 1 0 8 0 amappl9 144 241 0 238 1 0 1 1 0 8 0 amappl8 136 794 0 657 5 0 5 5 0 8 0 amappl7 128 301 0 276 3 1 2 3 0 8 0 amappl6 120 834 0 817 1 0 1 1 0 8 0 amappl5 112 321 0 313 1 0 1 1 0 8 0 amappl4 104 903 0 869 2 1 1 2 0 8 0 amappl3 96 74134 0 74053 3 0 3 3 0 8 0 amappl2 88 13282 0 13209 3 1 2 3 0 8 0 amappl1 80 54078 0 53619 24 12 12 23 0 8 0 amappl 88 118865 0 118595 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 134 0 4 3 0 3 3 0 8 0 uaddrrnd 24 12369 0 12276 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12369 0 12276 1 0 1 1 0 8 0 vmmpekpl 168 94816 0 94741 4 0 4 4 0 8 0 vmmpepl 168 745758 0 743415 310 183 127 138 0 357 0 vmsppl 448 12368 0 12276 13 2 11 11 0 8 0 rwobjpl 56 186289 0 177462 139 13 126 126 0 8 1 pdppl 4096 24745 0 24619 610 480 130 130 0 8 4 pvpl 32 44755 0 0 362 1 361 361 0 265 0 pmappl 248 12368 0 12276 6 0 6 6 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1784 0 925 25 0 25 25 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82914c9b) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8068e14000,ffff800033c30fb8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8068e14000,0,fffffd8075b449c0,22,0,0,b4ad771eb2d18987) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd8075b44948,fffffd8068e14000,fffffd80656baf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000d9eda8,fffffd80656baf00,ffff800033c31220,0,0,0) at sosend+0x66d sendit(ffff80002d6b1810,3,ffff800033c313b8,0,ffff800033c313a8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002d6b1810,ffff800033c31560,ffff800033c314b0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800033c31560) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800033c31560) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x25e712d7d70, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x77492ebe8fe0, count: 12 ddb{1}> trace x86_ipi_db(ffff800029cebff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x77492ebe8fe0, count: -3