panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *316475 4811 0 0 0x4000000 0 syz-executor.2 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8291a600) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8073b14d00,ffff80002d2c7888,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8073b14d00,0,fffffd80603aae70,22,0,0,b95ae64432654b19) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd80603aadf8,fffffd8073b14d00,fffffd807858a800,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000e43490,fffffd807858a800,ffff80002d2c7af0,0,0,0) at sosend+0x66d sendit(ffff80002bcb9000,3,ffff80002d2c7c88,0,ffff80002d2c7c78) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002bcb9000,ffff80002d2c7e30,ffff80002d2c7d80) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002d2c7e30) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002d2c7e30) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf7a50791ce0, 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(ffffffff8291a600) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8073b14d00,ffff80002d2c7888,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8073b14d00,0,fffffd80603aae70,22,0,0,b95ae64432654b19) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd80603aadf8,fffffd8073b14d00,fffffd807858a800,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000e43490,fffffd807858a800,ffff80002d2c7af0,0,0,0) at sosend+0x66d sendit(ffff80002bcb9000,3,ffff80002d2c7c88,0,ffff80002d2c7c78) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002bcb9000,ffff80002d2c7e30,ffff80002d2c7d80) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002d2c7e30) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002d2c7e30) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf7a50791ce0, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002d2c76d0 rbx 0xffffffff82cbbcb7 cpu_info_full_primary+0x2cb7 rdx 0xffff800000df0040 rcx 0xffff80002bcb9000 rax 0xffffffff82cbaff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x49ee5e078d2aad0f r11 0x4c6f78136a8b274e r12 0xffffffff82cbbab8 cpu_info_full_primary+0x2ab8 r13 0 r14 0 r15 0x1 rip 0xffffffff8108ebcc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002d2c76c0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.2) tid=316475 pid=4811 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=79, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002bcba540,0xffff80002bcbaaa0 process=0xffff80002bcf6c88 user=0xffff80002d2c2000, vmspace=0xfffffd8066aa6580 estcpu=29, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51078 244332 29860 0 2 0 syz-executor.3 46047 213050 34270 0 2 0 syz-executor.7 46047 495878 34270 0 3 0x4000080 fsleep syz-executor.7 55239 443299 8305 0 2 0 syz-executor.5 55239 78115 8305 0 3 0x4000080 kqpoll syz-executor.5 62246 491255 113 0 2 0 syz-executor.0 62246 303976 113 0 3 0x4000080 fsleep syz-executor.0 62246 268541 113 0 3 0x4000080 fsleep syz-executor.0 4811 130232 6146 0 2 0 syz-executor.2 * 4811 316475 6146 0 7 0x4000000 syz-executor.2 113 331167 55889 0 2 0x482 syz-executor.0 70895 516115 55889 0 2 0x482 syz-executor.6 73115 115478 1 0 3 0x100083 ttyin getty 86419 278650 55889 0 3 0x2 biowait syz-executor.4 17294 412957 55889 0 2 0x2 syz-executor.1 8305 75798 55889 0 2 0x482 syz-executor.5 29860 19930 55889 0 3 0x82 nanoslp syz-executor.3 6146 172971 55889 0 2 0x482 syz-executor.2 34270 44401 55889 0 2 0x482 syz-executor.7 43824 233585 0 0 3 0x14280 nfsidl nfsio 53729 423665 0 0 3 0x14280 nfsidl nfsio 588 327835 0 0 3 0x14280 nfsidl nfsio 72502 403721 0 0 3 0x14280 nfsidl nfsio 22245 221904 0 0 3 0x14280 nfsidl nfsio 15220 400230 0 0 3 0x14280 nfsidl nfsio 10217 462501 0 0 3 0x14280 nfsidl nfsio 50931 502817 0 0 3 0x14280 nfsidl nfsio 1078 247548 0 0 3 0x14280 nfsidl nfsio 76102 239037 0 0 3 0x14280 nfsidl nfsio 70847 351944 0 0 3 0x14280 nfsidl nfsio 30881 227197 0 0 3 0x14280 nfsidl nfsio 30581 347671 0 0 3 0x14280 nfsidl nfsio 22371 424766 0 0 3 0x14280 nfsidl nfsio 11012 396148 0 0 3 0x14280 nfsidl nfsio 34600 378983 0 0 3 0x14280 nfsidl nfsio 70113 128329 0 0 3 0x14280 nfsidl nfsio 9081 345131 0 0 3 0x14280 nfsidl nfsio 56307 79890 0 0 3 0x14280 nfsidl nfsio 82664 335260 0 0 3 0x14280 nfsidl nfsio 69672 19055 0 0 3 0x14200 bored sosplice 55889 239920 657 0 3 0x2000082 thrsleep syz-fuzzer 55889 50130 657 0 2 0x6000482 syz-fuzzer 55889 289331 657 0 3 0x6000082 thrsleep syz-fuzzer 55889 454041 657 0 3 0x6000082 wait syz-fuzzer 55889 144603 657 0 3 0x6000082 thrsleep syz-fuzzer 55889 480623 657 0 3 0x6000082 thrsleep syz-fuzzer 55889 496601 657 0 3 0x6000082 kqread syz-fuzzer 55889 396916 657 0 3 0x6000082 wait syz-fuzzer 55889 163940 657 0 3 0x6000082 wait syz-fuzzer 55889 158550 657 0 3 0x6000082 thrsleep syz-fuzzer 55889 267902 657 0 3 0x6000082 wait syz-fuzzer 55889 115808 657 0 3 0x6000082 wait syz-fuzzer 55889 39103 657 0 3 0x6000082 thrsleep syz-fuzzer 55889 13735 657 0 3 0x6000082 wait syz-fuzzer 55889 181219 657 0 3 0x6000082 wait syz-fuzzer 55889 245268 657 0 3 0x6000082 wait syz-fuzzer 657 48564 33778 0 3 0x10008a sigsusp ksh 33778 341332 13729 0 3 0x9a kqread sshd 13729 160005 1 0 3 0x88 kqread sshd 6461 94395 1067 74 3 0x1100092 bpf pflogd 1067 353643 1 0 3 0x80 netio pflogd 75898 165065 1588 73 3 0x1100090 kqread syslogd 1588 7265 1 0 3 0x100082 netio syslogd 83825 71771 1 0 3 0x100080 kqread resolvd 11023 391529 48324 77 3 0x100092 kqread dhcpleased 32863 129557 48324 77 3 0x100092 kqread dhcpleased 48324 424742 1 0 3 0x80 kqread dhcpleased 12406 258265 0 0 3 0x14200 bored smr 47506 58886 0 0 2 0x14200 zerothread 60254 61387 0 0 3 0x14200 aiodoned aiodoned 96897 248754 0 0 3 0x14200 syncer update 16624 261056 0 0 3 0x14200 cleaner cleaner 19410 334558 0 0 3 0x14200 reaper reaper 10764 131156 0 0 3 0x14200 pgdaemon pagedaemon 16367 406352 0 0 3 0x14200 bored viomb 19082 227571 0 0 3 0x40014200 acpi0 acpi0 57511 438920 0 0 7 0x40014200 idle1 84292 293801 0 0 3 0x14200 bored softnet3 87323 54161 0 0 3 0x14200 bored softnet2 51667 310595 0 0 3 0x14200 bored softnet1 24595 424750 0 0 3 0x14200 bored softnet0 64386 36570 0 0 3 0x14200 bored systqmp 44456 184830 0 0 3 0x14200 bored systq 22189 405826 0 0 3 0x14200 tmoslp softclockmp 68538 347660 0 0 3 0x40014200 tmoslp softclock 68000 422497 0 0 3 0x40014200 idle0 1 435014 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 4811 (syz-executor.2) thread 0xffff80002bcb9000 (316475) Process 86419 (syz-executor.4) thread 0xffff80002a276298 (278650) Process 17294 (syz-executor.1) thread 0xffff80002a275550 (412957) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10198 6500K 7138K 166960K 25801 0 pcb 15 18K 20K 166960K 972 0 rtable 196 14K 15K 166960K 1416 0 pf 35 10K 10K 166960K 200 0 ifaddr 40 15K 17K 166960K 198 0 ifgroup 60 2K 2K 166960K 298 0 sysctl 4 1K 1K 166960K 4 0 counters 66 36K 37K 166960K 216 0 ioctlops 0 0K 4K 166960K 1770 0 iov 0 0K 28K 166960K 893 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1467 92K 93K 166960K 6082 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 88 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 1060 0 dirhash 12 2K 2K 166960K 66 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 15 53K 89K 166960K 8532 0 sigio 0 0K 0K 166960K 332 0 proc 73 91K 115K 166960K 1582 0 subproc 104 6K 7K 166960K 415 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 313 0 in_multi 77 5K 7K 166960K 461 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 4 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 1562 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 449 384K 385K 166960K 84422 0 UVM aobj 18 4K 4K 166960K 18 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 234 0 NDP 13 0K 1K 166960K 150 0 temp 74 6772K 6904K 166960K 76941 0 kqueue 12 18K 28K 166960K 700 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 481 0 478 6 5 1 3 0 8 0 rtentry 112 402 0 314 5 1 4 4 0 8 0 unpcb 144 5420 0 5405 55 54 1 10 0 8 0 syncache 336 58 0 58 15 15 0 1 0 8 0 tcpqe 32 597 0 597 10 10 0 2 0 8 0 tcpcb 808 1902 0 1875 76 72 4 16 0 8 1 arp 120 74 0 60 1 0 1 1 0 8 0 inpcb 392 6005 0 5973 131 127 4 17 0 8 0 nd6 136 97 0 79 1 0 1 1 0 8 0 pkpcb 40 33 0 33 8 8 0 1 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 ppxss 1168 34 0 34 6 6 0 1 0 8 0 pffrag 232 39 0 39 3 2 1 1 0 482 1 pffrnode 88 39 0 39 3 2 1 1 0 8 1 pffrent 40 131 0 131 3 2 1 1 0 8 1 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 252 0 228 1 0 1 1 0 8 0 pfstkey 128 254 0 230 2 1 1 2 0 8 0 pfstate 376 254 0 230 8 5 3 4 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1548 0 1175 41 14 27 31 0 8 0 art_table 32 1549 0 1175 4 0 4 4 0 8 0 art_node 16 391 0 311 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1058 0 1048 1 0 1 1 0 8 0 shmpl 112 15 0 0 1 0 1 1 0 8 0 dirhash 1024 53 0 36 3 0 3 3 0 8 0 dino2pl 256 12562 0 11087 93 0 93 93 0 8 0 ffsino 272 12562 0 11087 99 0 99 99 0 8 0 nchpl 144 23897 0 22249 64 0 64 64 0 8 0 uvmvnodes 80 6196 0 0 127 0 127 127 0 8 0 vnodes 216 6196 0 0 345 0 345 345 0 8 0 namei 1024 80188 0 80186 7 6 1 2 0 8 0 percpumem 16 122 0 75 1 0 1 1 0 8 0 vcpupl 2048 39 0 0 5 0 5 5 0 8 0 vmpool 696 51 0 12 4 0 4 4 0 8 0 kstatmem 264 176 0 150 4 1 3 3 0 8 0 scxspl 216 83339 0 83338 27 26 1 8 1 8 0 plimitpl 152 843 0 827 1 0 1 1 0 8 0 sigapl 424 8835 0 8767 10 1 9 9 0 8 0 futexpl 64 66293 0 66290 4 3 1 1 0 8 0 knotepl 120 748 0 0 13 2 11 11 0 8 0 kqueuepl 216 2086 0 2076 43 42 1 6 0 8 0 pipepl 320 1377 0 1349 38 35 3 10 0 8 0 fdescpl 496 8795 0 8767 5 0 5 5 0 8 0 filepl 152 47674 0 47429 101 86 15 24 0 8 4 lockfpl 104 2708 0 2706 8 7 1 2 0 8 0 lockfspl 48 976 0 974 1 0 1 1 0 8 0 sessionpl 144 49 0 32 1 0 1 1 0 8 0 pgrppl 48 192 0 175 1 0 1 1 0 8 0 ucredpl 104 6327 0 6309 1 0 1 1 0 8 0 zombiepl 144 8768 0 8767 1 0 1 1 0 8 0 processpl 1136 8835 0 8767 6 0 6 6 0 8 0 procpl 680 23054 0 22966 11 2 9 9 0 8 0 srpgc 96 32 0 32 11 11 0 1 0 8 0 sosppl 168 73 0 73 8 8 0 1 0 8 0 sockpl 584 11943 0 11893 142 137 5 21 0 8 1 mcl64k 65536 20 0 0 3 0 3 3 0 8 0 mcl16k 16384 10 0 0 2 0 2 2 0 8 0 mcl12k 12288 31 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 28 0 0 4 1 3 3 0 8 0 mcl4k 4096 32 0 0 3 1 2 3 0 8 0 mcl2k2 2112 10 0 0 1 0 1 1 0 8 0 mcl2k 2048 434 0 0 38 9 29 38 0 8 0 mtagpl 96 522 0 0 10 0 10 10 0 8 0 mbufpl 256 1078 0 0 52 0 52 52 0 8 0 bufpl 280 18745 0 12427 452 0 452 452 0 8 0 anonpl 24 955983 0 942078 182 74 108 134 0 186 0 amapchunkpl 152 272522 0 271645 90 50 40 51 0 158 0 amappl16 200 18066 0 17567 79 52 27 38 0 8 0 amappl15 192 17 0 16 2 1 1 1 0 8 0 amappl14 184 261 0 242 7 6 1 2 0 8 0 amappl13 176 19 0 19 2 2 0 1 0 8 0 amappl12 168 9828 0 9792 4 2 2 3 0 8 0 amappl11 160 59 0 45 1 0 1 1 0 8 0 amappl10 152 66 0 53 1 0 1 1 0 8 0 amappl9 144 255 0 254 1 0 1 1 0 8 0 amappl8 136 507 0 395 4 0 4 4 0 8 0 amappl7 128 284 0 256 3 1 2 3 0 8 0 amappl6 120 661 0 646 1 0 1 1 0 8 0 amappl5 112 264 0 253 1 0 1 1 0 8 0 amappl4 104 679 0 646 2 1 1 2 0 8 0 amappl3 96 52149 0 52064 5 2 3 4 0 8 0 amappl2 88 9610 0 9532 3 1 2 3 0 8 0 amappl1 80 41083 0 40531 25 12 13 23 0 8 0 amappl 88 83443 0 83186 9 2 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 17 0 0 1 0 1 1 0 8 0 uaddrrnd 24 8846 0 8779 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8846 0 8779 1 0 1 1 0 8 0 vmmpekpl 168 68356 0 68284 4 0 4 4 0 8 0 vmmpepl 168 532375 0 529896 342 209 133 150 0 357 7 vmsppl 448 8845 0 8779 10 2 8 8 0 8 0 rwobjpl 56 135055 0 127177 118 6 112 112 0 8 0 pdppl 4096 17699 0 17597 502 396 106 108 0 8 4 pvpl 32 42594 0 0 346 2 344 344 0 265 0 pmappl 248 8845 0 8779 6 1 5 5 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1116 0 663 14 0 14 14 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(ffffffff8291a600) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8073b14d00,ffff80002d2c7888,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8073b14d00,0,fffffd80603aae70,22,0,0,b95ae64432654b19) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd80603aadf8,fffffd8073b14d00,fffffd807858a800,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000e43490,fffffd807858a800,ffff80002d2c7af0,0,0,0) at sosend+0x66d sendit(ffff80002bcb9000,3,ffff80002d2c7c88,0,ffff80002d2c7c78) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002bcb9000,ffff80002d2c7e30,ffff80002d2c7d80) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002d2c7e30) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002d2c7e30) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xf7a50791ce0, 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cebff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: 10 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cebff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: -5