panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 344077 99749 0 0 0 0 syz-executor.0 *500581 99749 0 0 0x4000000 1 syz-executor.0 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(fffffd806fd4aa00,ffff80002a256378,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806fd4aa00,0,fffffd806f49a510,22,0,0,6336968e1cffdcea) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f49a498,fffffd806fd4aa00,fffffd806cccdf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000da9248,fffffd806cccdf00,ffff80002a2565e0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a256778,0,ffff80002a256768) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a256920,ffff80002a256870) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a256920) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a256920) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xac1076ea570, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: malformed IPv4 option passed to ip_optcopy ddb{1}> 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(fffffd806fd4aa00,ffff80002a256378,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806fd4aa00,0,fffffd806f49a510,22,0,0,6336968e1cffdcea) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f49a498,fffffd806fd4aa00,fffffd806cccdf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000da9248,fffffd806cccdf00,ffff80002a2565e0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a256778,0,ffff80002a256768) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a256920,ffff80002a256870) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a256920) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a256920) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xac1076ea570, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a2561c0 rbx 0xffff800029ceccb7 rdx 0x3fd rcx 0 rax 0x32 r8 0x101010101010101 r9 0x8080808080808080 r10 0x256d6d5e61b85720 r11 0xb3dbf19985096322 r12 0xffff800029cecab8 r13 0 r14 0 r15 0x1 rip 0xffffffff8108ebcc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a2561b0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) tid=500581 pid=99749 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=0xffff80002a189d58,0xffffffff82de3388 process=0xffff8000ffff9638 user=0xffff80002a251000, vmspace=0xfffffd806d3f0010 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 99749 344077 80337 0 7 0 syz-executor.0 *99749 500581 80337 0 7 0x4000000 syz-executor.0 80337 489651 86282 0 3 0x82 nanoslp syz-executor.0 86282 136042 22725 0 3 0x2000082 thrsleep syz-execprog 86282 473840 22725 0 3 0x6000082 nanoslp syz-execprog 86282 339490 22725 0 3 0x6000082 thrsleep syz-execprog 86282 120178 22725 0 3 0x6000082 wait syz-execprog 86282 234434 22725 0 3 0x6000082 thrsleep syz-execprog 86282 104317 22725 0 3 0x6000082 thrsleep syz-execprog 86282 147219 22725 0 3 0x6000082 thrsleep syz-execprog 86282 177841 22725 0 3 0x6000082 thrsleep syz-execprog 86282 317524 22725 0 3 0x6000082 kqread syz-execprog 86282 524059 22725 0 3 0x6000082 thrsleep syz-execprog 86282 126846 22725 0 3 0x6000082 thrsleep syz-execprog 22725 188277 31905 0 3 0x10008a sigsusp ksh 31905 339169 4114 0 3 0x9a kqread sshd 89932 166465 1 0 3 0x100083 ttyin getty 4114 284544 1 0 3 0x88 kqread sshd 54955 137665 3475 74 3 0x1100092 bpf pflogd 3475 415989 1 0 3 0x80 netio pflogd 94681 28773 46039 73 3 0x1100090 kqread syslogd 46039 361993 1 0 3 0x100082 netio syslogd 21247 189879 1 0 3 0x100080 kqread resolvd 22305 239932 28409 77 3 0x100092 kqread dhcpleased 84127 43425 28409 77 3 0x100092 kqread dhcpleased 28409 395800 1 0 3 0x80 kqread dhcpleased 33968 173634 0 0 3 0x14200 bored smr 95135 405173 0 0 3 0x14200 pgzero zerothread 19460 358278 0 0 3 0x14200 aiodoned aiodoned 22942 415043 0 0 3 0x14200 syncer update 33636 516987 0 0 3 0x14200 cleaner cleaner 64542 18853 0 0 3 0x14200 reaper reaper 51626 324007 0 0 3 0x14200 pgdaemon pagedaemon 74068 130828 0 0 3 0x14200 bored viomb 29321 458749 0 0 3 0x40014200 acpi0 acpi0 46671 255185 0 0 3 0x40014200 idle1 84262 22829 0 0 3 0x14200 bored softnet3 61833 157466 0 0 3 0x14200 bored softnet2 46988 106611 0 0 3 0x14200 bored softnet1 63827 268332 0 0 3 0x14200 bored softnet0 34491 250668 0 0 3 0x14200 bored systqmp 87274 207928 0 0 3 0x14200 bored systq 954 383839 0 0 3 0x14200 tmoslp softclockmp 13590 196130 0 0 3 0x40014200 tmoslp softclock 67216 169199 0 0 3 0x40014200 idle0 1 279987 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 99749 (syz-executor.0) thread 0xffff80002a18a2a8 (500581) exclusive rwlock inet r = 0 (0xffff800000da9260) #0 witness_lock+0x447 #1 sosend+0x4fe sys/kern/uipc_socket.c:642 #2 sendit+0x65d sys/kern/uipc_syscalls.c:786 #3 sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 #4 syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] #4 syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 #5 Xsyscall+0x128 shared rwlock netlock r = 0 (0xffffffff82d67360) #0 witness_lock+0x447 #1 solock_shared+0x68 sys/kern/uipc_socket2.c:374 #2 sosend+0x4fe sys/kern/uipc_socket.c:642 #3 sendit+0x65d sys/kern/uipc_syscalls.c:786 #4 sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 #5 syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] #5 syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 #6 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10158 6457K 6457K 166960K 11236 0 pcb 15 10K 10K 166960K 15 0 rtable 80 2K 2K 166960K 138 0 pf 18 7K 10K 166960K 29 0 ifaddr 17 10K 10K 166960K 17 0 ifgroup 27 1K 1K 166960K 27 0 counters 50 34K 34K 166960K 50 0 ioctlops 0 0K 4K 166960K 1476 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1176 74K 74K 166960K 1192 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 4 9K 13K 166960K 22 0 proc 67 91K 103K 166960K 330 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 22 1K 1K 166960K 22 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 290 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 166 15K 15K 166960K 2861 0 UVM aobj 3 2K 2K 166960K 3 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 7 0K 0K 166960K 7 0 temp 1 6756K 6820K 166960K 3393 0 kqueue 12 18K 18K 166960K 25 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 19 0 16 1 0 1 1 0 8 0 rtentry 112 34 0 1 1 0 1 1 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 180 0 180 1 1 0 1 0 8 0 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 120 4 0 0 1 0 1 1 0 8 0 inpcb 392 38 0 31 1 0 1 1 0 8 0 nd6 136 3 0 0 1 0 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 10 0 0 1 0 1 1 0 8 0 pfstkey 128 10 0 0 1 0 1 1 0 8 0 pfstate 376 10 0 0 1 0 1 1 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 145 0 0 10 0 10 10 0 8 0 art_table 32 146 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1465 0 52 89 0 89 89 0 8 0 ffsino 272 1465 0 52 95 0 95 95 0 8 0 nchpl 144 1704 0 63 61 0 61 61 0 8 0 uvmvnodes 80 1479 0 0 31 0 31 31 0 8 0 vnodes 216 1479 0 0 83 0 83 83 0 8 0 namei 1024 5444 0 5444 2 0 2 2 0 8 2 percpumem 16 39 0 0 1 0 1 1 0 8 0 kstatmem 264 10 0 0 1 0 1 1 0 8 0 scxspl 216 6563 0 6563 3 2 1 2 1 8 1 plimitpl 152 28 0 19 1 0 1 1 0 8 0 sigapl 424 360 0 325 6 0 6 6 0 8 1 futexpl 64 2 0 2 1 0 1 1 0 8 1 knotepl 120 64 0 0 2 0 2 2 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 320 115 0 108 2 0 2 2 0 8 1 fdescpl 496 342 0 325 4 0 4 4 0 8 1 filepl 152 1521 0 1450 4 0 4 4 0 8 1 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 104 71 0 59 1 0 1 1 0 8 0 zombiepl 144 325 0 325 1 0 1 1 0 8 1 processpl 1136 360 0 325 4 0 4 4 0 8 1 procpl 680 371 0 325 5 0 5 5 0 8 1 sockpl 584 92 0 67 2 0 2 2 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 242 0 0 31 0 31 31 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 261 0 0 17 0 17 17 0 8 0 bufpl 280 4102 0 138 284 0 284 284 0 8 0 anonpl 24 151737 0 148099 60 7 53 53 0 186 27 amapchunkpl 152 9035 0 8639 26 0 26 26 0 158 10 amappl16 200 3822 0 3756 10 5 5 5 0 8 0 amappl15 192 18 0 16 2 1 1 1 0 8 0 amappl14 184 140 0 128 2 0 2 2 0 8 1 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 922 0 904 2 0 2 2 0 8 0 amappl11 160 52 0 37 1 0 1 1 0 8 0 amappl10 152 14 0 12 2 1 1 1 0 8 0 amappl9 144 163 0 163 2 1 1 1 0 8 1 amappl8 136 127 0 104 2 0 2 2 0 8 1 amappl7 128 162 0 142 2 0 2 2 0 8 0 amappl6 120 151 0 144 1 0 1 1 0 8 0 amappl5 112 141 0 130 1 0 1 1 0 8 0 amappl4 104 437 0 411 2 0 2 2 0 8 1 amappl3 96 2388 0 2339 3 0 3 3 0 8 1 amappl2 88 748 0 684 3 0 3 3 0 8 1 amappl1 80 9968 0 9459 23 0 23 23 0 8 10 amappl 88 2416 0 2315 4 0 4 4 0 92 1 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 342 0 325 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 342 0 325 1 0 1 1 0 8 0 vmmpekpl 168 9594 0 9576 2 0 2 2 0 8 0 vmmpepl 168 40274 0 38934 120 4 116 116 0 357 57 vmsppl 448 341 0 325 4 0 4 4 0 8 1 rwobjpl 56 18742 0 16366 47 1 46 46 0 8 7 pdppl 4096 691 0 650 85 24 61 65 0 8 20 pvpl 32 42131 0 0 341 1 340 340 0 265 0 pmappl 248 341 0 325 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 351 0 26 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82cbaff0) 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: 0x7bddb2b27100, count: 12 ddb{0}> trace x86_ipi_db(ffffffff82cbaff0) 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: 0x7bddb2b27100, count: -3 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp 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(fffffd806fd4aa00,ffff80002a256378,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806fd4aa00,0,fffffd806f49a510,22,0,0,6336968e1cffdcea) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f49a498,fffffd806fd4aa00,fffffd806cccdf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000da9248,fffffd806cccdf00,ffff80002a2565e0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a256778,0,ffff80002a256768) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a256920,ffff80002a256870) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a256920) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a256920) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xac1076ea570, count: 5 ddb{1}> 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(fffffd806fd4aa00,ffff80002a256378,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806fd4aa00,0,fffffd806f49a510,22,0,0,6336968e1cffdcea) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f49a498,fffffd806fd4aa00,fffffd806cccdf00,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000da9248,fffffd806cccdf00,ffff80002a2565e0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a256778,0,ffff80002a256768) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a256920,ffff80002a256870) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a256920) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a256920) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xac1076ea570, count: -10 ddb{1}>