panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *284351 43426 0 0 0x4000000 0 syz-executor.1 251017 55789 0 0x2 0 1 syz-executor.2 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82913ff7) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8061c70900,ffff800033f3fc98,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8061c70900,0,fffffd80761363c0,22,0,0,708425e02e17f12b) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd8076136348,fffffd8061c70900,fffffd8067c07f00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000ee3008,fffffd8067c07f00,ffff800033f3ff00,0,0,0) at sosend+0x66d sendit(ffff80002a21e550,4,ffff800033f40098,0,ffff800033f40088) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a21e550,ffff800033f40240,ffff800033f40190) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800033f40240) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800033f40240) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2c4a915d70, 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(ffffffff82913ff7) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8061c70900,ffff800033f3fc98,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8061c70900,0,fffffd80761363c0,22,0,0,708425e02e17f12b) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd8076136348,fffffd8061c70900,fffffd8067c07f00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000ee3008,fffffd8067c07f00,ffff800033f3ff00,0,0,0) at sosend+0x66d sendit(ffff80002a21e550,4,ffff800033f40098,0,ffff800033f40088) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a21e550,ffff800033f40240,ffff800033f40190) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800033f40240) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800033f40240) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2c4a915d70, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800033f3fae0 rbx 0xffffffff82c9bcb7 cpu_info_full_primary+0x2cb7 rdx 0xffff800000da7880 rcx 0xffff80002a21e550 rax 0xffffffff82c9aff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x1f7b177cc0c354bd r11 0x7825fb5ebf2e9b1e r12 0xffffffff82c9bab8 cpu_info_full_primary+0x2ab8 r13 0 r14 0 r15 0x1 rip 0xffffffff827c0c6c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800033f3fad0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) tid=284351 pid=43426 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=73, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a189808,0xffffffff82e49350 process=0xffff8000fffef100 user=0xffff800033f3b000, vmspace=0xfffffd80697243a0 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43426 12241 92809 0 2 0 syz-executor.1 *43426 284351 92809 0 7 0x4000000 syz-executor.1 24503 511583 55789 0 2 0 syz-executor.2 39820 55152 97445 0 2 0 syz-executor.6 39820 15780 97445 0 3 0x4000080 fsleep syz-executor.6 39820 11129 97445 0 3 0x4000080 fsleep syz-executor.6 84297 378554 24768 0 2 0 syz-executor.3 84297 362075 24768 0 2 0x4000000 syz-executor.3 11838 504279 73976 0 2 0 syz-executor.4 11838 286305 73976 0 3 0x4000080 netio syz-executor.4 12931 475389 10977 0 2 0 syz-executor.5 12931 58028 10977 0 3 0x4000080 netio syz-executor.5 12931 82698 10977 0 3 0x4000080 fsleep syz-executor.5 14447 137802 43374 0 2 0x2 syz-executor.7 10977 433131 43374 0 2 0x2 syz-executor.5 55789 251017 43374 0 7 0x2 syz-executor.2 24768 36176 43374 0 3 0x82 nanoslp syz-executor.3 97445 198788 43374 0 2 0x482 syz-executor.6 73976 212074 43374 0 3 0x82 nanoslp syz-executor.4 71060 505915 43374 0 2 0x2 syz-executor.0 90509 112433 1 0 3 0x100083 ttyin getty 92809 324524 43374 0 2 0x2 syz-executor.1 72533 126958 1 0 3 0x80 fsleep syz-executor.1 72533 54496 1 0 3 0x4000080 netio syz-executor.1 73912 355341 1 0 3 0x80 fsleep syz-executor.3 73912 359676 1 0 3 0x4000080 netio syz-executor.3 25158 9953 1 0 3 0x80 fsleep syz-executor.2 25158 131056 1 0 3 0x4000080 netio syz-executor.2 25025 440138 0 0 3 0x14200 acct acct 99408 217695 0 0 3 0x14200 bored sosplice 43374 188608 10778 0 3 0x2000082 thrsleep syz-fuzzer 43374 147674 10778 0 3 0x6000082 thrsleep syz-fuzzer 43374 167814 10778 0 3 0x6000082 wait syz-fuzzer 43374 350801 10778 0 3 0x6000082 wait syz-fuzzer 43374 68353 10778 0 3 0x6000082 wait syz-fuzzer 43374 431724 10778 0 3 0x6000082 wait syz-fuzzer 43374 411371 10778 0 3 0x6000082 wait syz-fuzzer 43374 201951 10778 0 3 0x6000082 thrsleep syz-fuzzer 43374 266160 10778 0 3 0x6000082 kqread syz-fuzzer 43374 358181 10778 0 3 0x6000082 thrsleep syz-fuzzer 43374 396272 10778 0 3 0x6000082 thrsleep syz-fuzzer 43374 422262 10778 0 3 0x6000082 thrsleep syz-fuzzer 43374 54294 10778 0 3 0x6000082 wait syz-fuzzer 43374 316808 10778 0 3 0x6000082 wait syz-fuzzer 43374 477151 10778 0 3 0x6000082 wait syz-fuzzer 43374 71169 10778 0 3 0x6000082 thrsleep syz-fuzzer 10778 412875 52034 0 3 0x10008a sigsusp ksh 52034 203239 95033 0 3 0x9a kqread sshd 95033 77708 1 0 3 0x88 kqread sshd 37914 68001 17321 74 3 0x1100092 bpf pflogd 17321 457472 1 0 3 0x80 netio pflogd 41046 285757 17530 73 3 0x1100090 kqread syslogd 17530 121065 1 0 3 0x100082 netio syslogd 76725 348017 1 0 3 0x100080 kqread resolvd 38436 206984 0 0 3 0x14200 bored smr 34739 51227 0 0 2 0x14200 zerothread 4450 298774 0 0 3 0x14200 aiodoned aiodoned 90600 396579 0 0 3 0x14200 syncer update 60897 515830 0 0 3 0x14200 cleaner cleaner 81007 120716 0 0 3 0x14200 reaper reaper 37111 121900 0 0 3 0x14200 pgdaemon pagedaemon 10519 409377 0 0 3 0x14200 bored viomb 67623 281420 0 0 3 0x40014200 acpi0 acpi0 86917 41492 0 0 3 0x40014200 idle1 43009 192449 0 0 3 0x14200 bored softnet3 80283 181499 0 0 3 0x14200 bored softnet2 22615 390223 0 0 3 0x14200 bored softnet1 44411 129593 0 0 3 0x14200 bored softnet0 45613 519778 0 0 3 0x14200 bored systqmp 53711 94732 0 0 3 0x14200 bored systq 56448 163041 0 0 3 0x14200 tmoslp softclockmp 16912 136153 0 0 3 0x40014200 tmoslp softclock 9952 277972 0 0 3 0x40014200 idle0 1 272929 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 43426 (syz-executor.1) thread 0xffff80002a21e550 (284351) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10196 6499K 6949K 166960K 14416 0 pcb 15 18K 20K 166960K 1119 0 rtable 250 15K 16K 166960K 2065 0 pf 40 10K 11K 166960K 242 0 ifaddr 51 17K 17K 166960K 340 0 ifgroup 71 3K 3K 166960K 374 0 sysctl 3 0K 1K 166960K 15 0 counters 70 37K 37K 166960K 258 0 ioctlops 0 0K 4K 166960K 2255 0 iov 1 2K 46K 166960K 895 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1476 92K 93K 166960K 4336 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 124 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 13 0 dirhash 12 2K 2K 166960K 54 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 19 69K 93K 166960K 12254 0 sigio 0 0K 0K 166960K 428 0 proc 78 68K 128K 166960K 2074 0 subproc 143 8K 8K 166960K 598 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 495 0 in_multi 101 7K 7K 166960K 640 0 ether_multi 1 0K 0K 166960K 19 0 mrt 1 0K 0K 166960K 10 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 2129 0 pfkey data 0 0K 4K 166960K 54 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 455 409K 416K 166960K 121583 0 UVM aobj 131 9K 9K 166960K 136 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 406 0 NDP 15 0K 1K 166960K 193 0 temp 87 6772K 6900K 166960K 78513 0 kqueue 6 10K 26K 166960K 943 0 SYN cache 2 16K 16K 166960K 2 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 940 0 939 15 14 1 4 0 8 0 rtentry 112 682 0 567 5 1 4 4 0 8 0 unpcb 144 7904 0 7888 95 94 1 8 0 8 0 syncache 336 88 0 88 22 21 1 1 0 8 1 tcpqe 32 133 0 133 19 18 1 1 0 8 1 tcpcb 808 3250 0 3237 122 114 8 11 0 8 6 arp 120 137 0 114 1 0 1 1 0 8 0 inpcb 392 9563 0 9417 215 200 15 16 0 8 0 nd6 136 127 0 103 1 0 1 1 0 8 0 pkpcb 40 50 0 50 13 13 0 1 0 8 0 kcovpl 48 46 0 35 1 0 1 1 0 8 0 ppxss 1168 39 0 39 13 13 0 1 0 8 0 pffrag 232 136 0 136 6 5 1 1 0 482 1 pffrnode 88 132 0 132 6 5 1 1 0 8 1 pffrent 40 294 0 294 6 5 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 405 0 335 1 0 1 1 0 8 0 pfstkey 128 407 0 337 4 1 3 3 0 8 0 pfstate 376 407 0 337 12 5 7 7 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 2221 0 1751 56 26 30 33 0 8 0 art_table 32 2222 0 1751 5 0 5 5 0 8 0 art_node 16 586 0 484 1 0 1 1 0 8 0 sysvmsgpl 40 51 0 11 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 45 0 28 3 0 3 3 0 8 0 dino2pl 256 17148 0 15673 93 0 93 93 0 8 0 ffsino 272 17148 0 15673 99 0 99 99 0 8 0 nchpl 144 33840 0 32182 65 1 64 64 0 8 0 uvmvnodes 80 6181 0 0 127 0 127 127 0 8 0 vnodes 216 6181 0 0 344 0 344 344 0 8 0 namei 1024 106815 0 106815 5 3 2 2 0 8 2 percpumem 16 143 0 94 1 0 1 1 0 8 0 vcpupl 2048 31 0 0 4 0 4 4 0 8 0 vmpool 696 80 0 49 3 0 3 3 0 8 0 kstatmem 264 218 0 188 3 0 3 3 0 8 0 scxspl 216 108404 0 108404 33 31 2 8 1 8 2 plimitpl 152 1472 0 1454 1 0 1 1 0 8 0 sigapl 424 12522 0 12472 14 7 7 9 0 8 0 futexpl 64 104914 0 104908 3 2 1 1 0 8 0 knotepl 120 919 0 0 12 0 12 12 0 8 0 kqueuepl 216 2399 0 2394 50 49 1 5 0 8 0 pipepl 320 1834 0 1803 59 56 3 13 0 8 0 fdescpl 496 12479 0 12450 9 5 4 5 0 8 0 filepl 152 65982 0 65572 162 146 16 23 0 8 0 lockfpl 104 2792 0 2791 5 4 1 2 0 8 0 lockfspl 48 823 0 822 1 0 1 1 0 8 0 sessionpl 144 60 0 41 1 0 1 1 0 8 0 pgrppl 48 193 0 174 1 0 1 1 0 8 0 ucredpl 104 8731 0 8722 1 0 1 1 0 8 0 zombiepl 144 12473 0 12472 1 0 1 1 0 8 0 processpl 1136 12522 0 12472 7 2 5 6 0 8 0 procpl 680 34071 0 33996 19 10 9 10 0 8 0 srpgc 96 68 0 68 19 19 0 1 0 8 0 sosppl 168 147 0 146 8 7 1 1 0 8 0 sockpl 584 18469 0 18306 230 218 12 17 0 8 0 mcl64k 65536 25 0 0 3 0 3 3 0 8 0 mcl16k 16384 25 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 28 0 0 4 1 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 432 0 0 44 18 26 44 0 8 0 mtagpl 96 147 0 0 4 1 3 4 0 8 0 mbufpl 256 6994 0 0 416 0 416 416 0 8 0 bufpl 280 23663 0 17346 452 0 452 452 0 8 0 anonpl 24 1318940 0 1303578 143 33 110 117 0 186 0 amapchunkpl 152 384823 0 383889 101 61 40 48 0 158 0 amappl16 200 26050 0 25548 146 115 31 40 0 8 2 amappl15 192 94 0 92 1 0 1 1 0 8 0 amappl14 184 290 0 273 2 1 1 2 0 8 0 amappl13 176 12 0 12 3 3 0 1 0 8 0 amappl12 168 13655 0 13618 4 2 2 3 0 8 0 amappl11 160 62 0 53 1 0 1 1 0 8 0 amappl10 152 88 0 73 1 0 1 1 0 8 0 amappl9 144 446 0 446 10 9 1 1 0 8 1 amappl8 136 715 0 594 5 0 5 5 0 8 0 amappl7 128 322 0 297 2 0 2 2 0 8 0 amappl6 120 856 0 842 1 0 1 1 0 8 0 amappl5 112 322 0 313 1 0 1 1 0 8 0 amappl4 104 837 0 805 2 1 1 2 0 8 0 amappl3 96 74320 0 74223 7 4 3 4 0 8 0 amappl2 88 13512 0 13444 3 1 2 3 0 8 0 amappl1 80 54826 0 54354 24 12 12 23 0 8 0 amappl 88 120467 0 120194 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 12560 0 12500 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12560 0 12500 1 0 1 1 0 8 0 vmmpekpl 168 97021 0 96936 5 0 5 5 0 8 0 vmmpepl 168 757963 0 755521 378 241 137 150 0 357 12 vmsppl 448 12559 0 12500 9 2 7 7 0 8 0 rwobjpl 56 187938 0 180009 122 8 114 115 0 8 0 pdppl 4096 25127 0 25031 804 704 100 102 0 8 4 pvpl 32 40894 0 0 330 0 330 330 0 265 0 pmappl 248 12559 0 12500 5 1 4 4 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1956 0 1132 24 0 24 24 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(ffffffff82913ff7) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd8061c70900,ffff800033f3fc98,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8061c70900,0,fffffd80761363c0,22,0,0,708425e02e17f12b) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd8076136348,fffffd8061c70900,fffffd8067c07f00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000ee3008,fffffd8067c07f00,ffff800033f3ff00,0,0,0) at sosend+0x66d sendit(ffff80002a21e550,4,ffff800033f40098,0,ffff800033f40088) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a21e550,ffff800033f40240,ffff800033f40190) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff800033f40240) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff800033f40240) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa2c4a915d70, count: -10 ddb{0}> machine ddbcpu 1