panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 33850 75561 0 0 0 0 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(fffffd8070135d00,ffff80002a24fc68,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8070135d00,0,fffffd806f498078,22,0,0,e44d646947888801) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f498000,fffffd8070135d00,fffffd806d03e500,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae490,fffffd806d03e500,ffff80002a24fed0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a250068,0,ffff80002a250058) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a250210,ffff80002a250160) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a250210) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a250210) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x753676985400, 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(fffffd8070135d00,ffff80002a24fc68,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8070135d00,0,fffffd806f498078,22,0,0,e44d646947888801) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f498000,fffffd8070135d00,fffffd806d03e500,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae490,fffffd806d03e500,ffff80002a24fed0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a250068,0,ffff80002a250058) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a250210,ffff80002a250160) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a250210) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a250210) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x753676985400, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a24fab0 rbx 0xffffffff82cbbcb7 cpu_info_full_primary+0x2cb7 rdx 0x3fd rcx 0 rax 0x32 r8 0x101010101010101 r9 0x8080808080808080 r10 0x23a628fcd73c99e7 r11 0xf42a0a72cf53e11e r12 0xffffffff82cbbab8 cpu_info_full_primary+0x2ab8 r13 0 r14 0 r15 0x1 rip 0xffffffff8108ebcc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a24faa0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) tid=33850 pid=75561 tcnt=1 stat=onproc flags process=0 proc=0 runpri=67, usrpri=67, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a186aa8,0xffffffff82de3388 process=0xffff8000ffff8478 user=0xffff80002a24b000, vmspace=0xfffffd807f003a80 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *75561 33850 79559 0 7 0 syz-executor.0 79559 190194 37637 0 3 0x82 nanoslp syz-executor.0 37637 121013 67170 0 3 0x2000082 thrsleep syz-execprog 37637 521822 67170 0 3 0x6000082 nanoslp syz-execprog 37637 124920 67170 0 3 0x6000082 thrsleep syz-execprog 37637 402760 67170 0 3 0x6000082 thrsleep syz-execprog 37637 413360 67170 0 3 0x6000082 thrsleep syz-execprog 37637 477203 67170 0 3 0x6000082 wait syz-execprog 37637 450392 67170 0 3 0x6000082 thrsleep syz-execprog 37637 517162 67170 0 3 0x6000082 thrsleep syz-execprog 37637 388736 67170 0 3 0x6000082 kqread syz-execprog 37637 335778 67170 0 3 0x6000082 thrsleep syz-execprog 67170 152298 19984 0 3 0x10008a sigsusp ksh 19984 337222 47268 0 3 0x9a kqread sshd 20214 449141 1 0 3 0x100083 ttyin getty 47268 237614 1 0 3 0x88 kqread sshd 95440 256879 42356 74 3 0x1100092 bpf pflogd 42356 230945 1 0 3 0x80 netio pflogd 55955 280580 25151 73 3 0x1100090 kqread syslogd 25151 56052 1 0 3 0x100082 netio syslogd 92699 291076 1 0 3 0x100080 kqread resolvd 40787 102816 31303 77 3 0x100092 kqread dhcpleased 56858 358499 31303 77 3 0x100092 kqread dhcpleased 31303 245239 1 0 3 0x80 kqread dhcpleased 18648 417576 0 0 3 0x14200 bored smr 26531 456412 0 0 3 0x14200 pgzero zerothread 24820 468242 0 0 3 0x14200 aiodoned aiodoned 49580 110990 0 0 3 0x14200 syncer update 71209 385976 0 0 3 0x14200 cleaner cleaner 75149 285546 0 0 3 0x14200 reaper reaper 62397 152985 0 0 3 0x14200 pgdaemon pagedaemon 72902 303401 0 0 3 0x14200 bored viomb 73840 20995 0 0 3 0x40014200 acpi0 acpi0 40625 191823 0 0 7 0x40014200 idle1 59224 228313 0 0 3 0x14200 bored softnet3 1388 309869 0 0 3 0x14200 bored softnet2 94259 201199 0 0 3 0x14200 bored softnet1 39137 356199 0 0 3 0x14200 bored softnet0 92015 149195 0 0 3 0x14200 bored systqmp 26943 485613 0 0 3 0x14200 bored systq 83076 153322 0 0 3 0x14200 tmoslp softclockmp 44857 304712 0 0 3 0x40014200 tmoslp softclock 38182 181887 0 0 3 0x40014200 idle0 1 96672 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 75561 (syz-executor.0) thread 0xffff80002a18a2a8 (33850) exclusive rwlock inet r = 0 (0xffff800000dae4a8) #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{0}> 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 144 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 299 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 165 15K 17K 166960K 2969 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 3480 0 kqueue 12 18K 18K 166960K 25 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 22 0 19 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 95 0 95 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 11 0 0 1 0 1 1 0 8 0 pfstkey 128 11 0 0 1 0 1 1 0 8 0 pfstate 376 11 0 0 2 0 2 2 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 5491 0 5491 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 6566 0 6566 3 1 2 2 1 8 2 plimitpl 152 28 0 19 1 0 1 1 0 8 0 sigapl 424 369 0 334 6 0 6 6 0 8 1 knotepl 120 68 0 0 3 0 3 3 0 8 0 kqueuepl 216 21 0 13 1 0 1 1 0 8 0 pipepl 320 118 0 111 2 0 2 2 0 8 1 fdescpl 496 351 0 334 4 0 4 4 0 8 1 filepl 152 1539 0 1468 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 334 0 334 1 0 1 1 0 8 1 processpl 1136 369 0 334 4 0 4 4 0 8 1 procpl 680 378 0 334 5 0 5 5 0 8 1 sockpl 584 95 0 70 2 0 2 2 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 338 0 0 43 0 43 43 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 354 0 0 23 0 23 23 0 8 0 bufpl 280 4104 0 141 284 0 284 284 0 8 0 anonpl 24 172614 0 168977 59 2 57 58 0 186 32 amapchunkpl 152 9890 0 9517 28 0 28 28 0 158 11 amappl16 200 4411 0 4344 6 0 6 6 0 8 0 amappl15 192 41 0 41 1 1 0 1 0 8 0 amappl14 184 139 0 127 2 0 2 2 0 8 1 amappl13 176 17 0 15 1 0 1 1 0 8 0 amappl12 168 910 0 891 3 1 2 2 0 8 1 amappl11 160 57 0 43 1 0 1 1 0 8 0 amappl10 152 42 0 39 1 0 1 1 0 8 0 amappl9 144 352 0 352 1 0 1 1 0 8 1 amappl8 136 127 0 106 2 0 2 2 0 8 1 amappl7 128 172 0 151 2 0 2 2 0 8 0 amappl6 120 148 0 141 1 0 1 1 0 8 0 amappl5 112 122 0 111 1 0 1 1 0 8 0 amappl4 104 426 0 402 2 0 2 2 0 8 1 amappl3 96 1738 0 1693 4 1 3 3 0 8 1 amappl2 88 734 0 671 3 0 3 3 0 8 1 amappl1 80 10166 0 9662 23 0 23 23 0 8 10 amappl 88 2515 0 2416 5 0 5 5 0 92 2 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 351 0 334 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 351 0 334 1 0 1 1 0 8 0 vmmpekpl 168 9691 0 9671 2 0 2 2 0 8 0 vmmpepl 168 40209 0 38892 118 0 118 118 0 357 59 vmsppl 448 350 0 334 5 1 4 4 0 8 2 rwobjpl 56 19078 0 16716 47 0 47 47 0 8 8 pdppl 4096 709 0 668 83 18 65 65 0 8 24 pvpl 32 45553 0 0 369 1 368 368 0 265 0 pmappl 248 350 0 334 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 368 0 21 10 0 10 10 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(fffffd8070135d00,ffff80002a24fc68,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd8070135d00,0,fffffd806f498078,22,0,0,e44d646947888801) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f498000,fffffd8070135d00,fffffd806d03e500,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae490,fffffd806d03e500,ffff80002a24fed0,0,0,0) at sosend+0x66d sendit(ffff80002a18a2a8,3,ffff80002a250068,0,ffff80002a250058) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a18a2a8,ffff80002a250210,ffff80002a250160) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a250210) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a250210) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x753676985400, 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 ddb{1}>