panic(ffffffff821fa794) at panic+0x15c sys/kern/subr_prf.c:207 tcp_output(ffff800000a04ee0) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000a04ee0) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806eb76e18,9,fffffd8076b8d100,0,0,ffff800020a7cc38) at tcp_usrreq+0xa55 sosend(fffffd806eb76e18,0,ffff800020b373f8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020a7cc38,3,ffff800020b373f8,0,ffff800020b374e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020a7cc38,ffff800020b37490,ffff800020b374e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020b37560) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b37560) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc0001a7420, count: 6 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 tcp_output: template len != hdrlen - optlen ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fa794) at panic+0x15c sys/kern/subr_prf.c:207 tcp_output(ffff800000a04ee0) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000a04ee0) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806eb76e18,9,fffffd8076b8d100,0,0,ffff800020a7cc38) at tcp_usrreq+0xa55 sosend(fffffd806eb76e18,0,ffff800020b373f8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:549 dofilewritev(ffff800020a7cc38,3,ffff800020b373f8,0,ffff800020b374e0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020a7cc38,ffff800020b37490,ffff800020b374e0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020b37560) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020b37560) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc0001a7420, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020b36f60 rbx 0xffff800020b37010 rdx 0xffff800020a7cc38 rcx 0 rax 0 r8 0xffffffff819b8d6f kprintf+0x16f r9 0x1 r10 0x25 r11 0xe88e6bcc765563c2 r12 0x3000000008 r13 0xffff800020b36f70 r14 0x100 r15 0x1 rip 0xffffffff8126b018 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b36f50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-fuzzer) pid=426772 stat=onproc flags process=2 proc=4000000 pri=32, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800020a7d118,0xffff800020a7c768 process=0xffff800020ad9698 user=0xffff800020b32000, vmspace=0xfffffd806e9a7738 estcpu=2, cpticks=2, pctcpu=0.36 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12488 520252 50093 0 2 0 syz-executor.0 12488 168992 50093 0 2 0x4000000 syz-executor.0 93013 227040 33977 0 2 0 syz-executor.1 93013 303537 33977 0 3 0x4000080 fsleep syz-executor.1 93013 393849 33977 0 3 0x4000080 ttyin syz-executor.1 93013 198782 33977 0 3 0x4000080 fsleep syz-executor.1 96430 302746 1 0 7 0x100003 getty 33977 23091 82818 0 2 0x482 syz-executor.1 57109 72985 0 0 3 0x14200 bored sosplice 50093 32940 82818 0 2 0x2 syz-executor.0 82818 516063 22127 0 3 0x82 kqread syz-fuzzer 82818 202238 22127 0 2 0x4000482 syz-fuzzer 82818 396856 22127 0 3 0x4000082 thrsleep syz-fuzzer 82818 5964 22127 0 2 0x4000482 syz-fuzzer 82818 95245 22127 0 2 0x4000482 syz-fuzzer 82818 209347 22127 0 3 0x4000082 thrsleep syz-fuzzer 82818 7199 22127 0 3 0x4000082 thrsleep syz-fuzzer 82818 7940 22127 0 3 0x4000082 thrsleep syz-fuzzer *82818 426772 22127 0 7 0x4000002 syz-fuzzer 82818 10591 22127 0 2 0x4000002 syz-fuzzer 22127 47679 42616 0 3 0x10008a pause ksh 42616 325053 22491 0 3 0x92 select sshd 22491 331559 1 0 3 0x80 select sshd 92830 57055 13763 74 2 0x100492 pflogd 13763 448701 1 0 3 0x80 netio pflogd 2559 114590 49848 73 3 0x100090 kqread syslogd 49848 417723 1 0 3 0x100082 netio syslogd 88565 217309 1 77 3 0x100090 poll dhclient 32232 276189 1 0 3 0x80 poll dhclient 8230 337375 0 0 2 0x14200 zerothread 45743 338088 0 0 3 0x14200 aiodoned aiodoned 91967 418057 0 0 2 0x14200 update 32747 307659 0 0 3 0x14200 cleaner cleaner 22683 53251 0 0 3 0x14200 reaper reaper 55253 117760 0 0 3 0x14200 pgdaemon pagedaemon 20090 239085 0 0 3 0x14200 bored crynlk 85319 446253 0 0 3 0x14200 bored crypto 73319 436887 0 0 3 0x40014200 acpi0 acpi0 218 338273 0 0 3 0x40014200 idle1 28702 20148 0 0 3 0x14200 bored softnet 33454 134279 0 0 2 0x14200 systqmp 29785 164278 0 0 3 0x14200 bored systq 50698 400785 0 0 3 0x40014200 bored softclock 18879 93401 0 0 3 0x40014200 idle0 14432 452247 0 0 2 0x14200 smr 1 391428 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 96430 (getty) thread 0xffff800020ad7608 (302746) exclusive rwlock vmmaplk r = 0 (0xfffffd806e9a78c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 vm_map_lock_ln+0x111 sys/uvm/uvm_map.c:5409 #3 uvm_mmaplock+0x64 sys/uvm/uvm_mmap.c:865 #4 sys_mmap+0xbca uvm_mmapanon sys/uvm/uvm_mmap.c:950 [inline] #4 sys_mmap+0xbca sys/uvm/uvm_mmap.c:421 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82647588) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570 #2 Xsyscall+0x128 Process 82818 (syz-fuzzer) thread 0xffff800020a7cc38 (426772) exclusive rwlock netlock r = 0 (0xffffffff824ba3e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:537 #3 dofilewritev+0x1b6 sys/kern/sys_generic.c:365 #4 sys_write+0x83 sys/kern/sys_generic.c:285 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9538 6681K 6941K 78643K 11430 0 pcb 13 10K 12K 78643K 118 0 rtable 117 4K 4K 78643K 378 0 ifaddr 83 17K 17K 78643K 146 0 counters 43 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 1483 0 iov 0 0K 16K 78643K 58 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 78K 78643K 1594 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 4 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 126 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 25K 78643K 539 0 sigio 2 0K 0K 78643K 165 0 proc 62 63K 95K 78643K 542 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 37 0 in_multi 85 3K 4K 78643K 168 0 ether_multi 1 0K 0K 78643K 19 0 mrt 0 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 91 413K 413K 78643K 91 0 exec 0 0K 1K 78643K 259 0 pfkey data 0 0K 4K 78643K 2 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 128 39K 55K 78643K 2761 0 UVM aobj 36 4K 4K 78643K 44 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 91 0 NDP 11 0K 0K 78643K 31 0 temp 128 3022K 3095K 78643K 14405 0 kqueue 3 4K 18K 78643K 28 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 10 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 62 0 60 1 0 1 1 0 8 0 rtentry 112 78 0 31 2 0 2 2 0 8 0 unpcb 120 528 0 517 1 0 1 1 0 8 0 syncache 264 10 0 10 2 1 1 1 0 8 1 tcpqe 32 192 0 192 2 1 1 1 0 8 1 tcpcb 544 693 0 687 21 12 9 11 0 8 8 inpcb 280 1294 0 1281 16 7 9 9 0 8 8 nd6 48 14 0 9 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 3 0 3 2 1 1 1 0 8 1 pffrag 232 3 0 3 1 1 0 1 0 482 0 pffrnode 88 3 0 3 1 1 0 1 0 8 0 pffrent 40 135 0 135 1 1 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 56 0 12 1 0 1 1 0 8 0 pfstkey 112 56 0 12 2 0 2 2 0 8 0 pfstate 328 56 0 12 4 0 4 4 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 357 0 156 14 1 13 13 0 8 0 art_table 32 359 0 156 2 0 2 2 0 8 0 art_node 16 77 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 10 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 122 0 112 1 0 1 1 0 8 0 shmpl 112 42 0 8 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2242 0 823 46 0 46 46 0 8 0 ffsino 272 2242 0 823 96 0 96 96 0 8 0 nchpl 144 3478 0 1875 61 0 61 61 0 8 0 uvmvnodes 72 2565 0 0 47 0 47 47 0 8 0 vnodes 208 2565 0 0 135 0 135 135 0 8 0 namei 1024 11503 0 11503 1 0 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 2 1 0 1 1 0 8 0 scxspl 192 10653 0 10653 10 7 3 6 0 8 3 plimitpl 152 42 0 33 1 0 1 1 0 8 0 sigapl 424 754 0 721 4 0 4 4 0 8 0 futexpl 56 12060 0 12058 1 0 1 1 0 8 0 knotepl 112 104 0 85 1 0 1 1 0 8 0 kqueuepl 144 599 0 596 9 4 5 5 0 8 4 pipelkpl 48 194 0 184 1 0 1 1 0 8 0 pipepl 120 388 0 369 1 0 1 1 0 8 0 fdescpl 496 738 0 721 3 0 3 3 0 8 0 filepl 152 6314 0 6209 21 9 12 14 0 8 7 lockfpl 104 222 0 221 1 0 1 1 0 8 0 lockfspl 48 91 0 90 1 0 1 1 0 8 0 sessionpl 112 21 0 10 1 0 1 1 0 8 0 pgrppl 48 31 0 20 1 0 1 1 0 8 0 ucredpl 96 886 0 877 1 0 1 1 0 8 0 zombiepl 144 721 0 721 1 0 1 1 0 8 1 processpl 960 754 0 721 5 0 5 5 0 8 0 procpl 624 1912 0 1866 4 0 4 4 0 8 0 sosppl 128 13 0 13 2 1 1 1 0 8 1 sockpl 400 1941 0 1919 25 14 11 14 0 8 8 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 166 0 0 20 0 20 20 0 8 0 mtagpl 80 40 0 0 1 0 1 1 0 8 0 mbufpl 256 501 0 0 31 0 31 31 0 8 0 bufpl 280 6095 0 174 423 0 423 423 0 8 0 anonpl 16 80896 0 59515 87 1 86 86 0 124 0 amapchunkpl 152 4813 0 4648 32 12 20 20 0 158 12 amappl16 192 3422 0 2244 59 0 59 59 0 8 0 amappl15 184 50 0 48 1 0 1 1 0 8 0 amappl14 176 251 0 247 2 1 1 1 0 8 0 amappl13 168 32 0 31 1 0 1 1 0 8 0 amappl12 160 7 0 3 2 1 1 1 0 8 0 amappl11 152 72 0 54 1 0 1 1 0 8 0 amappl10 144 18 0 13 1 0 1 1 0 8 0 amappl9 136 598 0 593 1 0 1 1 0 8 0 amappl8 128 579 0 545 2 0 2 2 0 8 0 amappl7 120 130 0 117 1 0 1 1 0 8 0 amappl6 112 30 0 24 1 0 1 1 0 8 0 amappl5 104 634 0 615 1 0 1 1 0 8 0 amappl4 96 535 0 501 2 1 1 2 0 8 0 amappl3 88 121 0 113 1 0 1 1 0 8 0 amappl2 80 4981 0 4903 3 1 2 3 0 8 0 amappl1 72 26374 0 25925 25 15 10 20 0 8 0 amappl 80 2197 0 2146 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 43 0 8 1 0 1 1 0 8 0 uaddrrnd 24 742 0 723 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 742 0 723 1 0 1 1 0 8 0 vmmpekpl 168 9998 0 9958 2 0 2 2 0 8 0 vmmpepl 168 96918 0 94475 133 26 107 124 0 357 0 vmsppl 368 741 0 723 2 0 2 2 0 8 0 pdppl 4096 1491 0 1448 6 0 6 6 0 8 0 pvpl 32 249595 0 224932 203 4 199 199 0 265 0 pmappl 232 741 0 723 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 235 0 29 6 0 6 6 0 8 0