panic: malformed IPv4 option passed to ip_optcopy Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 61284 38987 0 0 0 1 syz-executor.0 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(fffffd806d10fe00,ffff80002a21c5c8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806d10fe00,0,fffffd806f490200,22,0,0,9e14e8ba68df3692) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f490188,fffffd806d10fe00,fffffd807b8c4000,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae248,fffffd807b8c4000,ffff80002a21c830,0,0,0) at sosend+0x66d sendit(ffff80002a222010,3,ffff80002a21c9c8,0,ffff80002a21c9b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a222010,ffff80002a21cb70,ffff80002a21cac0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a21cb70) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a21cb70) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb0e6f61770, 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(ffffffff82914c9b) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd806d10fe00,ffff80002a21c5c8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806d10fe00,0,fffffd806f490200,22,0,0,9e14e8ba68df3692) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f490188,fffffd806d10fe00,fffffd807b8c4000,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae248,fffffd807b8c4000,ffff80002a21c830,0,0,0) at sosend+0x66d sendit(ffff80002a222010,3,ffff80002a21c9c8,0,ffff80002a21c9b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a222010,ffff80002a21cb70,ffff80002a21cac0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a21cb70) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a21cb70) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb0e6f61770, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a21c410 rbx 0xffff800029ceccb7 rdx 0x3fd rcx 0 rax 0x32 r8 0x101010101010101 r9 0x8080808080808080 r10 0x728e8692e9b3d1af r11 0x6328cf3a5086e2ac r12 0xffff800029cecab8 r13 0 r14 0 r15 0x1 rip 0xffffffff81ab58dc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a21c400 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) tid=61284 pid=38987 tcnt=1 stat=onproc flags process=0 proc=0 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a221570,0xffffffff82d91ac0 process=0xffff8000ffff8478 user=0xffff80002a217000, vmspace=0xfffffd806efa5c48 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *38987 61284 58730 0 7 0 syz-executor.0 58730 334373 20811 0 3 0x82 nanoslp syz-executor.0 20811 254036 7458 0 3 0x2000082 thrsleep syz-execprog 20811 77867 7458 0 3 0x6000082 nanoslp syz-execprog 20811 357437 7458 0 3 0x6000082 thrsleep syz-execprog 20811 337522 7458 0 3 0x6000082 thrsleep syz-execprog 20811 486008 7458 0 3 0x6000082 thrsleep syz-execprog 20811 66830 7458 0 3 0x6000082 thrsleep syz-execprog 20811 193958 7458 0 3 0x6000082 kqread syz-execprog 20811 5067 7458 0 3 0x6000082 thrsleep syz-execprog 20811 30408 7458 0 3 0x6000082 wait syz-execprog 20811 155715 7458 0 3 0x6000082 thrsleep syz-execprog 20811 141508 7458 0 3 0x6000082 thrsleep syz-execprog 7458 387857 17216 0 3 0x10008a sigsusp ksh 17216 56602 21546 0 3 0x9a kqread sshd 2287 124991 1 0 3 0x100083 ttyin getty 21546 439303 1 0 3 0x88 kqread sshd 86357 260935 72334 74 3 0x1100092 bpf pflogd 72334 386497 1 0 3 0x80 netio pflogd 28163 425336 77098 73 3 0x1100090 kqread syslogd 77098 497467 1 0 3 0x100082 netio syslogd 60191 34689 1 0 3 0x100080 kqread resolvd 47498 89555 6676 77 3 0x100092 kqread dhcpleased 20215 105397 6676 77 3 0x100092 kqread dhcpleased 6676 159767 1 0 3 0x80 kqread dhcpleased 44696 243836 0 0 3 0x14200 bored smr 83336 352649 0 0 3 0x14200 pgzero zerothread 52862 174621 0 0 3 0x14200 aiodoned aiodoned 75545 185432 0 0 3 0x14200 syncer update 326 422480 0 0 3 0x14200 cleaner cleaner 52272 500818 0 0 3 0x14200 reaper reaper 59160 522407 0 0 3 0x14200 pgdaemon pagedaemon 28391 241395 0 0 3 0x14200 bored viomb 73501 423378 0 0 3 0x40014200 acpi0 acpi0 53725 87602 0 0 3 0x40014200 idle1 39047 36012 0 0 3 0x14200 bored softnet3 68269 161988 0 0 3 0x14200 bored softnet2 80860 451597 0 0 3 0x14200 bored softnet1 60 399464 0 0 3 0x14200 bored softnet0 86488 356646 0 0 3 0x14200 bored systqmp 56085 289054 0 0 3 0x14200 bored systq 54025 116036 0 0 3 0x14200 tmoslp softclockmp 22717 355494 0 0 3 0x40014200 tmoslp softclock 5798 147336 0 0 7 0x40014200 idle0 1 314168 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 38987 (syz-executor.0) thread 0xffff80002a222010 (61284) exclusive rwlock inet r = 0 (0xffff800000dae260) #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 (0xffffffff82d48390) #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 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 21 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 163 15K 17K 166960K 3009 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{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 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 158 0 158 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 5492 0 5492 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 6575 0 6575 3 2 1 2 1 8 1 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 62 0 0 2 0 2 2 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 1540 0 1469 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 379 0 334 5 0 5 5 0 8 0 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 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 277 0 0 35 0 35 35 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 288 0 0 18 0 18 18 0 8 0 bufpl 280 4104 0 139 284 0 284 284 0 8 0 anonpl 24 182581 0 178963 59 2 57 57 0 186 33 amapchunkpl 152 9877 0 9506 29 2 27 27 0 158 11 amappl16 200 5095 0 5023 8 2 6 6 0 8 0 amappl15 192 17 0 16 3 2 1 1 0 8 0 amappl14 184 141 0 129 2 0 2 2 0 8 1 amappl13 176 5 0 5 1 1 0 1 0 8 0 amappl12 168 913 0 896 3 1 2 2 0 8 1 amappl11 160 87 0 73 1 0 1 1 0 8 0 amappl10 152 18 0 17 2 1 1 1 0 8 0 amappl9 144 169 0 169 2 1 1 1 0 8 1 amappl8 136 131 0 109 2 0 2 2 0 8 1 amappl7 128 155 0 138 2 0 2 2 0 8 0 amappl6 120 163 0 156 1 0 1 1 0 8 0 amappl5 112 135 0 122 1 0 1 1 0 8 0 amappl4 104 439 0 412 2 0 2 2 0 8 1 amappl3 96 2380 0 2335 4 1 3 3 0 8 1 amappl2 88 771 0 709 3 0 3 3 0 8 1 amappl1 80 10059 0 9552 23 0 23 23 0 8 11 amappl 88 2546 0 2449 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 9656 0 9637 2 0 2 2 0 8 0 vmmpepl 168 41974 0 40650 120 1 119 119 0 357 58 vmsppl 448 350 0 334 5 1 4 4 0 8 2 rwobjpl 56 20199 0 17833 49 2 47 47 0 8 10 pdppl 4096 709 0 668 83 18 65 65 0 8 24 pvpl 32 45597 0 0 368 0 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 355 0 21 10 0 10 10 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82d16ff0) 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(ffffffff82d16ff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff82d16ff0) 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(ffffffff82d16ff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: -5 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(ffffffff82914c9b) at panic+0x17b sys/kern/subr_prf.c:198 ip_fragment(fffffd806d10fe00,ffff80002a21c5c8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806d10fe00,0,fffffd806f490200,22,0,0,9e14e8ba68df3692) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f490188,fffffd806d10fe00,fffffd807b8c4000,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae248,fffffd807b8c4000,ffff80002a21c830,0,0,0) at sosend+0x66d sendit(ffff80002a222010,3,ffff80002a21c9c8,0,ffff80002a21c9b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a222010,ffff80002a21cb70,ffff80002a21cac0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a21cb70) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a21cb70) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb0e6f61770, count: 5 ddb{1}> 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(fffffd806d10fe00,ffff80002a21c5c8,ffff8000001a02a8,5dc) at ip_fragment+0x5b4 ip_output(fffffd806d10fe00,0,fffffd806f490200,22,0,0,9e14e8ba68df3692) at ip_output+0xe3c sys/netinet/ip_output.c:478 divert_output(fffffd806f490188,fffffd806d10fe00,fffffd807b8c4000,0) at divert_output+0x30a sys/netinet/ip_divert.c:174 sosend(ffff800000dae248,fffffd807b8c4000,ffff80002a21c830,0,0,0) at sosend+0x66d sendit(ffff80002a222010,3,ffff80002a21c9c8,0,ffff80002a21c9b8) at sendit+0x65d sys/kern/uipc_syscalls.c:786 sys_sendmmsg(ffff80002a222010,ffff80002a21cb70,ffff80002a21cac0) at sys_sendmmsg+0x344 sys/kern/uipc_syscalls.c:677 syscall(ffff80002a21cb70) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002a21cb70) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6fb0e6f61770, count: -10 ddb{1}>