panic: tcp_output: template len != hdrlen - optlen Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 451827 20421 0 0x2 0 0 syz-executor.0 *378711 3274 0 0x12 0 1 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824203c2) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8540) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8540) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806eb02af8,9,fffffd807f00d300,0,0,ffff800020e4d280) at tcp_usrreq+0xa55 sosend(fffffd806eb02af8,0,ffff800020e24978,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e4d280,4,ffff800020e24978,0,ffff800020e24a60) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e4d280,ffff800020e24a10,ffff800020e24a60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e24ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e24ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbd80, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic tcp_output: template len != hdrlen - optlen ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824203c2) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8540) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8540) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806eb02af8,9,fffffd807f00d300,0,0,ffff800020e4d280) at tcp_usrreq+0xa55 sosend(fffffd806eb02af8,0,ffff800020e24978,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e4d280,4,ffff800020e24978,0,ffff800020e24a60) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e4d280,ffff800020e24a10,ffff800020e24a60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e24ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e24ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbd80, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e244e0 rbx 0xffff800020e24590 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff823bfbdf kprintf+0x16f r9 0x1 r10 0x2 r11 0x8b196b1faa0c7f4d r12 0x3000000008 r13 0xffff800020e244f0 r14 0x100 r15 0x1 rip 0xffffffff8236cd38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e244d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (sshd) pid=378711 stat=onproc flags process=12 proc=0 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e4d4f0,0xffff800020e4d020 process=0xffff8000ffffef98 user=0xffff800020e1f000, vmspace=0xfffffd806e90f008 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78807 176389 0 0 3 0x14200 bored sosplice 9290 337629 0 0 3 0x14280 nfsidl nfsio 51418 101041 0 0 3 0x14280 nfsidl nfsio 42813 424241 0 0 3 0x14280 nfsidl nfsio 31920 385976 0 0 3 0x14280 nfsidl nfsio 80579 243852 0 0 3 0x14280 nfsidl nfsio 94645 283476 0 0 3 0x14280 nfsidl nfsio 91172 494690 0 0 3 0x14280 nfsidl nfsio 6523 30004 0 0 3 0x14280 nfsidl nfsio 56058 69062 0 0 3 0x14280 nfsidl nfsio 18088 341481 0 0 3 0x14280 nfsidl nfsio 96231 199711 0 0 3 0x14280 nfsidl nfsio 50131 229998 0 0 3 0x14280 nfsidl nfsio 40246 361890 0 0 3 0x14280 nfsidl nfsio 6213 485265 0 0 3 0x14280 nfsidl nfsio 13857 387630 0 0 3 0x14280 nfsidl nfsio 20132 387973 0 0 3 0x14280 nfsidl nfsio 16062 111161 0 0 3 0x14280 nfsidl nfsio 63571 126597 0 0 3 0x14280 nfsidl nfsio 7967 150689 0 0 3 0x14280 nfsidl nfsio 88701 507108 0 0 3 0x14280 nfsidl nfsio 8179 149946 31045 0 3 0x82 piperd syz-executor.1 20421 451827 31045 0 7 0x2 syz-executor.0 31045 424986 79484 0 3 0x82 thrsleep syz-fuzzer 31045 296840 79484 0 3 0x4000082 nanosleep syz-fuzzer 31045 364702 79484 0 3 0x4000082 thrsleep syz-fuzzer 31045 32025 79484 0 3 0x4000082 thrsleep syz-fuzzer 31045 334721 79484 0 2 0x4000002 syz-fuzzer 31045 301756 79484 0 3 0x4000082 thrsleep syz-fuzzer 31045 239252 79484 0 3 0x4000082 thrsleep syz-fuzzer 31045 508816 79484 0 3 0x4000082 kqread syz-fuzzer 79484 353839 3274 0 3 0x10008a pause ksh * 3274 378711 35325 0 7 0x12 sshd 78361 430038 1 0 3 0x100083 ttyin getty 35325 131706 1 0 3 0x80 select sshd 43089 34510 68957 74 3 0x100092 bpf pflogd 68957 236343 1 0 3 0x80 netio pflogd 6021 8416 83524 73 3 0x100090 kqread syslogd 83524 287688 1 0 3 0x100082 netio syslogd 68321 515881 1 77 3 0x100090 poll dhclient 94340 4527 1 0 3 0x80 poll dhclient 20251 11242 0 0 3 0x14200 bored smr 52912 6939 0 0 3 0x14200 pgzero zerothread 41367 182614 0 0 3 0x14200 aiodoned aiodoned 29382 73911 0 0 3 0x14200 syncer update 19757 100361 0 0 3 0x14200 cleaner cleaner 28697 209450 0 0 3 0x14200 reaper reaper 18415 443193 0 0 3 0x14200 pgdaemon pagedaemon 84003 522089 0 0 3 0x14200 bored crynlk 98128 368920 0 0 3 0x14200 bored crypto 98962 344804 0 0 3 0x40014200 acpi0 acpi0 34457 38980 0 0 3 0x40014200 idle1 17655 279357 0 0 3 0x14200 bored softnet 6697 418191 0 0 3 0x14200 bored systqmp 85244 200871 0 0 3 0x14200 bored systq 6016 32843 0 0 3 0x40014200 bored softclock 17811 132054 0 0 3 0x40014200 idle0 1 137654 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 20421 (syz-executor.0) thread 0xffff800020ddc4e8 (451827) exclusive rrwlock inode r = 0 (0xfffffd80794be810) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vget+0x1c8 sys/kern/vfs_subr.c:671 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1329 #8 ufs_lookup+0x14b7 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a6 sys/kern/vfs_lookup.c:568 #11 namei+0x63c sys/kern/vfs_lookup.c:249 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #13 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c814c48) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:311 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:462 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:603 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:575 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1853 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #9 Xsyscall+0x128 Process 3274 (sshd) thread 0xffff800020e4d280 (378711) exclusive rwlock netlock r = 0 (0xffffffff827b4428) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sosend+0x559 sys/kern/uipc_socket.c:543 #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9509 6419K 6807K 78643K 11103 0 pcb 13 8K 8K 78643K 790 0 rtable 120 11K 14K 78643K 399 0 ifaddr 101 22K 22K 78643K 154 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1557 0 iov 0 0K 12K 78643K 49 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1371 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 96 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 4 9K 25K 78643K 500 0 sigio 0 0K 0K 78643K 32 0 proc 61 63K 95K 78643K 471 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 29 0 in_multi 100 4K 4K 78643K 142 0 ether_multi 1 0K 0K 78643K 6 0 mrt 1 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 222 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 194 76K 76K 78643K 2521 0 UVM aobj 31 2K 2K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 47 0 NDP 11 0K 0K 78643K 24 0 temp 117 3867K 3931K 78643K 7774 0 kqueue 3 4K 8K 78643K 15 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 47 0 45 1 0 1 1 0 8 0 rtentry 112 59 0 27 2 0 2 2 0 8 0 unpcb 120 208 0 198 1 0 1 1 0 8 0 syncache 264 8 0 8 3 2 1 1 0 8 1 tcpqe 32 92 0 92 2 2 0 1 0 8 0 tcpcb 544 173 0 167 4 2 2 2 0 8 1 inpcb 296 1241 0 1223 3 0 3 3 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 13 0 9 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 3 2 1 1 1 0 482 1 pffrnode 88 3 0 3 2 1 1 1 0 8 1 pffrent 40 8 0 8 2 1 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 43 0 27 2 0 2 2 0 8 0 pfpktdelay 56 117 0 0 2 0 2 2 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 18 0 11 1 0 1 1 0 8 0 pfstkey 112 18 0 11 1 0 1 1 0 8 0 pfstate 328 18 0 11 2 1 1 2 0 8 0 pfsrctr 152 57 0 57 1 1 0 1 0 8 0 pfrule 1360 35 0 22 3 1 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 212 0 81 12 1 11 12 0 8 0 art_table 32 213 0 81 2 0 2 2 0 8 0 art_node 16 58 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 94 0 84 1 0 1 1 0 8 0 shmpl 112 30 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1993 0 591 89 1 88 89 0 8 0 ffsino 272 1993 0 591 94 0 94 94 0 8 0 nchpl 144 2884 0 1279 60 0 60 60 0 8 0 uvmvnodes 72 2150 0 0 40 0 40 40 0 8 0 vnodes 208 2150 0 0 114 0 114 114 0 8 0 namei 1024 7706 0 7706 1 0 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 7 0 3 2 1 1 1 0 8 0 pfiaddrpl 120 16 0 4 1 0 1 1 0 8 0 scxspl 192 8629 0 8629 8 7 1 7 0 8 1 plimitpl 152 35 0 27 1 0 1 1 0 8 0 sigapl 424 736 0 685 6 0 6 6 0 8 0 futexpl 56 8170 0 8170 1 0 1 1 0 8 1 knotepl 112 77 0 57 1 0 1 1 0 8 0 kqueuepl 144 65 0 62 1 0 1 1 0 8 0 pipepl 304 144 0 133 2 0 2 2 0 8 1 fdescpl 496 700 0 685 3 0 3 3 0 8 0 filepl 152 4072 0 3970 6 1 5 6 0 8 0 lockfpl 104 85 0 84 1 0 1 1 0 8 0 lockfspl 48 28 0 27 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 235 0 226 1 0 1 1 0 8 0 zombiepl 144 685 0 685 1 0 1 1 0 8 1 processpl 992 736 0 685 7 0 7 7 0 8 0 procpl 624 1682 0 1624 7 2 5 6 0 8 0 sosppl 128 8 0 8 3 2 1 1 0 8 1 sockpl 400 1508 0 1487 5 1 4 4 0 8 1 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 27 0 27 27 0 8 0 mtagpl 96 37 0 0 1 0 1 1 0 8 0 mbufpl 256 433 0 0 26 0 26 26 0 8 0 bufpl 280 4255 0 126 295 0 295 295 0 8 0 anonpl 16 82127 0 63234 92 15 77 88 0 124 1 amapchunkpl 152 3838 0 3511 18 4 14 18 0 158 0 amappl16 192 3257 0 2398 55 11 44 53 0 8 1 amappl15 184 85 0 81 1 0 1 1 0 8 0 amappl14 176 1 0 0 1 0 1 1 0 8 0 amappl13 168 29 0 25 1 0 1 1 0 8 0 amappl12 160 37 0 31 1 0 1 1 0 8 0 amappl11 152 447 0 431 1 0 1 1 0 8 0 amappl10 144 17 0 13 1 0 1 1 0 8 0 amappl9 136 365 0 363 1 0 1 1 0 8 0 amappl8 128 407 0 342 3 0 3 3 0 8 0 amappl7 120 117 0 104 1 0 1 1 0 8 0 amappl6 112 426 0 416 1 0 1 1 0 8 0 amappl5 104 608 0 593 1 0 1 1 0 8 0 amappl4 96 494 0 468 1 0 1 1 0 8 0 amappl3 88 146 0 138 1 0 1 1 0 8 0 amappl2 80 4740 0 4672 2 0 2 2 0 8 0 amappl1 72 28853 0 28425 23 13 10 18 0 8 0 amappl 80 1962 0 1873 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 32 0 2 1 0 1 1 0 8 0 uaddrrnd 24 707 0 688 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 707 0 688 1 0 1 1 0 8 0 vmmpekpl 168 8513 0 8472 3 0 3 3 0 8 0 vmmpepl 168 95069 0 93056 118 24 94 111 0 357 1 vmsppl 368 706 0 688 2 0 2 2 0 8 0 pdppl 4096 1421 0 1380 6 0 6 6 0 8 0 pvpl 32 257748 0 235922 208 27 181 208 0 265 4 pmappl 232 706 0 688 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 286 0 10 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82721ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828dc528) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dc528) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828dc528,1) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435 sleep_finish(ffff800020edc180,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020edc180,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020edc180,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd8068268008,11,ffffffff8247cbd9,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 biowait(fffffd8068268008) at biowait+0xa6 sys/kern/vfs_bio.c:1262 bwrite(fffffd8068268008) at bwrite+0x215 sys/kern/vfs_bio.c:771 ufs_dirremove(fffffd80682918f0,fffffd80794be778,800c,1) at ufs_dirremove+0x291 ufs_rmdir(ffff800020edc3a8) at ufs_rmdir+0x247 sys/ufs/ufs/ufs_vnops.c:1328 VOP_RMDIR(fffffd80682918f0,fffffd8067ed6b78,ffff800020edc4a8) at VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474 end trace frame: 0xffff800020edc540, count: 0 ddb{0}> trace x86_ipi_db(ffffffff82721ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828dc528) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828dc528) at __mp_lock+0x127 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff828dc528,1) at __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x392 sys/kern/sched_bsd.c:435 sleep_finish(ffff800020edc180,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020edc180,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020edc180,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd8068268008,11,ffffffff8247cbd9,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 biowait(fffffd8068268008) at biowait+0xa6 sys/kern/vfs_bio.c:1262 bwrite(fffffd8068268008) at bwrite+0x215 sys/kern/vfs_bio.c:771 ufs_dirremove(fffffd80682918f0,fffffd80794be778,800c,1) at ufs_dirremove+0x291 ufs_rmdir(ffff800020edc3a8) at ufs_rmdir+0x247 sys/ufs/ufs/ufs_vnops.c:1328 VOP_RMDIR(fffffd80682918f0,fffffd8067ed6b78,ffff800020edc4a8) at VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474 dounlinkat(ffff800020ddc4e8,ffffff9c,7f7ffffc6970,8) at dounlinkat+0x14c sys/kern/vfs_syscalls.c:1886 syscall(ffff800020edc620) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020edc620) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc6960, count: -17 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824203c2) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8540) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8540) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806eb02af8,9,fffffd807f00d300,0,0,ffff800020e4d280) at tcp_usrreq+0xa55 sosend(fffffd806eb02af8,0,ffff800020e24978,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e4d280,4,ffff800020e24978,0,ffff800020e24a60) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e4d280,ffff800020e24a10,ffff800020e24a60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e24ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e24ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbd80, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff824203c2) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8540) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8540) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806eb02af8,9,fffffd807f00d300,0,0,ffff800020e4d280) at tcp_usrreq+0xa55 sosend(fffffd806eb02af8,0,ffff800020e24978,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e4d280,4,ffff800020e24978,0,ffff800020e24a60) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e4d280,ffff800020e24a10,ffff800020e24a60) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e24ae0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e24ae0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcbd80, count: -9