panic: tcp_output: template len != hdrlen - optlen Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 377091 18970 0 0x2 0 0 syz-executor.0 * 13053 30030 0 0x2 0x4000000 1 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241d05e) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8320) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8320) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806f664320,9,fffffd806f555500,0,0,ffff800020e3fc40) at tcp_usrreq+0xa55 sosend(fffffd806f664320,0,ffff800020e91ed8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e3fc40,6,ffff800020e91ed8,0,ffff800020e91fc0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e3fc40,ffff800020e91f70,ffff800020e91fc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e92040) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e92040) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000c05448, 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(ffffffff8241d05e) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8320) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8320) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806f664320,9,fffffd806f555500,0,0,ffff800020e3fc40) at tcp_usrreq+0xa55 sosend(fffffd806f664320,0,ffff800020e91ed8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e3fc40,6,ffff800020e91ed8,0,ffff800020e91fc0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e3fc40,ffff800020e91f70,ffff800020e91fc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e92040) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e92040) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000c05448, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e91a40 rbx 0xffff800020e91af0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffff800020e91a00 r9 0xffffffff817bd10f kprintf+0x16f r10 0x1 r11 0xbc9733f863e2546b r12 0x3000000008 r13 0xffff800020e91a50 r14 0x100 r15 0x1 rip 0xffffffff821dd518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e91a30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-fuzzer) pid=13053 stat=onproc flags process=2 proc=4000000 pri=24, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e3f760,0xffff800020e3f9e0 process=0xffff800020e6a020 user=0xffff800020e8d000, vmspace=0xfffffd807efff000 estcpu=0, cpticks=1, pctcpu=0.36 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 82107 159147 25853 0 2 0 syz-executor.1 82107 489647 25853 0 2 0x4000000 syz-executor.1 14813 261570 0 0 3 0x14280 nfsidl nfsio 45937 58277 0 0 3 0x14280 nfsidl nfsio 96473 45938 0 0 3 0x14280 nfsidl nfsio 11479 252577 0 0 3 0x14280 nfsidl nfsio 86716 87178 0 0 3 0x14280 nfsidl nfsio 22725 137271 0 0 3 0x14280 nfsidl nfsio 32376 110244 0 0 3 0x14280 nfsidl nfsio 31703 181460 0 0 3 0x14280 nfsidl nfsio 73578 426374 0 0 3 0x14280 nfsidl nfsio 77674 461252 0 0 3 0x14280 nfsidl nfsio 44766 271866 0 0 3 0x14280 nfsidl nfsio 82818 477349 0 0 3 0x14280 nfsidl nfsio 49293 376805 0 0 3 0x14280 nfsidl nfsio 1667 46472 0 0 3 0x14280 nfsidl nfsio 78907 79643 0 0 3 0x14280 nfsidl nfsio 24765 153989 0 0 3 0x14280 nfsidl nfsio 71978 26678 0 0 3 0x14280 nfsidl nfsio 13158 3878 0 0 3 0x14280 nfsidl nfsio 39388 233472 0 0 3 0x14280 nfsidl nfsio 18411 515852 0 0 3 0x14280 nfsidl nfsio 22727 393302 0 0 3 0x14200 bored sosplice 25853 131445 30030 0 3 0x82 nanosleep syz-executor.1 18970 377091 30030 0 7 0x2 syz-executor.0 30030 80855 78496 0 3 0x82 thrsleep syz-fuzzer 30030 462686 78496 0 3 0x4000082 nanosleep syz-fuzzer *30030 13053 78496 0 7 0x4000002 syz-fuzzer 30030 332041 78496 0 3 0x4000082 thrsleep syz-fuzzer 30030 33551 78496 0 3 0x4000082 nanosleep syz-fuzzer 30030 325321 78496 0 3 0x4000082 thrsleep syz-fuzzer 30030 137231 78496 0 3 0x4000082 thrsleep syz-fuzzer 30030 96797 78496 0 3 0x4000082 thrsleep syz-fuzzer 78496 423074 33739 0 3 0x10008a pause ksh 33739 99512 32488 0 3 0x92 select sshd 88932 53799 1 0 3 0x100083 ttyin getty 32488 203803 1 0 3 0x80 select sshd 40414 346051 54867 74 3 0x100092 bpf pflogd 54867 283528 1 0 3 0x80 netio pflogd 12407 115545 74048 73 3 0x100090 kqread syslogd 74048 56686 1 0 3 0x100082 netio syslogd 24623 240445 1 77 3 0x100090 poll dhclient 62966 91800 1 0 3 0x80 poll dhclient 88052 97028 0 0 3 0x14200 bored smr 48411 7347 0 0 3 0x14200 pgzero zerothread 97191 146219 0 0 3 0x14200 aiodoned aiodoned 53167 514023 0 0 3 0x14200 syncer update 89170 345612 0 0 3 0x14200 cleaner cleaner 65443 437125 0 0 3 0x14200 reaper reaper 31580 305662 0 0 3 0x14200 pgdaemon pagedaemon 48465 329882 0 0 3 0x14200 bored crynlk 19603 204943 0 0 3 0x14200 bored crypto 89171 65790 0 0 3 0x40014200 acpi0 acpi0 74022 302598 0 0 3 0x40014200 idle1 94985 276823 0 0 3 0x14200 bored softnet 18770 443223 0 0 3 0x14200 bored systqmp 91939 290233 0 0 3 0x14200 bored systq 63398 179249 0 0 3 0x40014200 bored softclock 87582 434976 0 0 3 0x40014200 idle0 1 503960 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 18970 (syz-executor.0) thread 0xffff800020ddc008 (377091) exclusive rrwlock inode r = 0 (0xfffffd807b5954d8) #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 (0xfffffd807b595d58) #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 30030 (syz-fuzzer) thread 0xffff800020e3fc40 (13053) exclusive rwlock netlock r = 0 (0xffffffff826f8418) #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 9517 6414K 6978K 78643K 11589 0 pcb 13 8K 8K 78643K 133 0 rtable 97 4K 4K 78643K 843 0 ifaddr 71 14K 15K 78643K 431 0 counters 43 33K 34K 78643K 51 0 ioctlops 0 0K 4K 78643K 1551 0 iov 0 0K 12K 78643K 40 0 mount 1 1K 1K 78643K 1 0 vnodes 1214 76K 77K 78643K 1497 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 23 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 129 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 1485 0 sigio 0 0K 0K 78643K 4 0 proc 61 63K 83K 78643K 463 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 854 0 in_multi 32 2K 2K 78643K 957 0 ether_multi 1 0K 0K 78643K 13 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 233 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 177 59K 59K 78643K 5326 0 UVM aobj 36 7K 7K 78643K 49 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 81 0 NDP 12 0K 0K 78643K 208 0 temp 131 3862K 3927K 78643K 5799 0 kqueue 3 4K 8K 78643K 10 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 11 0 5 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 327 0 290 2 0 2 2 0 8 0 unpcb 120 4371 0 4361 3 1 2 2 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 480 0 480 1 1 0 1 0 8 0 tcpcb 544 1010 0 1000 9 7 2 6 0 8 1 inpcb 296 3592 0 3585 2 0 2 2 0 8 1 rttmr 72 3 0 3 2 1 1 1 0 8 1 nd6 48 207 0 196 1 0 1 1 0 8 0 pkpcb 40 5 0 5 3 3 0 1 0 8 0 ppxss 1136 1 0 1 1 0 1 1 0 8 1 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pffrag 232 5 0 4 2 1 1 1 0 482 0 pffrnode 88 5 0 4 2 1 1 1 0 8 0 pffrent 40 55 0 54 2 1 1 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 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 28 0 17 1 0 1 1 0 8 0 pfstkey 112 32 0 21 1 0 1 1 0 8 0 pfstate 328 29 0 19 2 0 2 2 0 8 0 pfrule 1360 27 0 20 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 804 0 540 20 0 20 20 0 8 1 art_table 32 805 0 540 3 0 3 3 0 8 0 art_node 16 326 0 291 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 125 0 115 1 0 1 1 0 8 0 shmpl 112 46 0 13 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3003 0 1605 88 0 88 88 0 8 0 ffsino 272 3003 0 1605 94 0 94 94 0 8 0 nchpl 144 4929 0 3320 60 0 60 60 0 8 0 uvmvnodes 72 3277 0 0 60 0 60 60 0 8 0 vnodes 208 3277 0 0 173 0 173 173 0 8 0 namei 1024 12353 0 12353 2 1 1 1 0 8 1 percpumem 16 36 0 4 1 0 1 1 0 8 0 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 560 6 0 3 2 1 1 1 0 8 0 scxspl 192 14382 0 14382 10 7 3 7 0 8 3 plimitpl 152 39 0 31 1 0 1 1 0 8 0 sigapl 424 1721 0 1669 6 0 6 6 0 8 0 futexpl 56 18763 0 18763 2 1 1 1 0 8 1 knotepl 112 71 0 51 1 0 1 1 0 8 0 kqueuepl 144 122 0 120 1 0 1 1 0 8 0 pipepl 304 198 0 187 4 2 2 2 0 8 1 fdescpl 496 1685 0 1669 3 0 3 3 0 8 0 filepl 152 12380 0 12278 8 2 6 6 0 8 2 lockfpl 104 83 0 82 1 0 1 1 0 8 0 lockfspl 48 31 0 30 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 24 0 13 1 0 1 1 0 8 0 ucredpl 96 588 0 579 1 0 1 1 0 8 0 zombiepl 144 1669 0 1669 1 0 1 1 0 8 1 processpl 992 1721 0 1669 7 0 7 7 0 8 0 procpl 624 4499 0 4439 7 1 6 6 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 6 0 6 2 2 0 1 0 8 0 sockpl 400 7999 0 7980 10 5 5 6 0 8 3 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl12k 12288 13 0 0 2 0 2 2 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 209 0 0 26 1 25 26 0 8 0 mtagpl 96 21 0 0 1 0 1 1 0 8 0 mbufpl 256 465 0 0 29 0 29 29 0 8 0 bufpl 280 5135 0 127 358 0 358 358 0 8 0 anonpl 16 143801 0 126527 74 1 73 73 0 124 0 amapchunkpl 152 8598 0 8327 27 15 12 25 0 158 0 amappl16 192 7022 0 6171 44 0 44 44 0 8 1 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 3 0 2 1 0 1 1 0 8 0 amappl13 168 788 0 782 1 0 1 1 0 8 0 amappl12 160 778 0 771 1 0 1 1 0 8 0 amappl11 152 56 0 41 1 0 1 1 0 8 0 amappl10 144 21 0 17 1 0 1 1 0 8 0 amappl9 136 366 0 365 1 0 1 1 0 8 0 amappl8 128 379 0 332 2 0 2 2 0 8 0 amappl7 120 126 0 112 1 0 1 1 0 8 0 amappl6 112 33 0 27 1 0 1 1 0 8 0 amappl5 104 842 0 826 1 0 1 1 0 8 0 amappl4 96 1250 0 1221 1 0 1 1 0 8 0 amappl3 88 919 0 906 1 0 1 1 0 8 0 amappl2 80 12580 0 12511 2 0 2 2 0 8 0 amappl1 72 56199 0 55773 22 12 10 17 0 8 0 amappl 80 4776 0 4699 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 48 0 13 1 0 1 1 0 8 0 uaddrrnd 24 1691 0 1672 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1691 0 1672 1 0 1 1 0 8 0 vmmpekpl 168 13439 0 13394 3 0 3 3 0 8 0 vmmpepl 168 216261 0 214212 114 17 97 109 0 357 2 vmsppl 368 1690 0 1672 2 0 2 2 0 8 0 pdppl 4096 3389 0 3347 6 0 6 6 0 8 0 pvpl 32 478975 0 458433 182 8 174 176 0 265 3 pmappl 232 1690 0 1672 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 307 0 18 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82713ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x58 sys/dev/kcov.c:86 __mp_acquire_count(ffffffff828ec9f0,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(ffff800020eda560,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020eda560,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020eda560,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd806856f008,11,ffffffff8247949e,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 biowait(fffffd806856f008) at biowait+0xa6 sys/kern/vfs_bio.c:1262 bwrite(fffffd806856f008) at bwrite+0x215 sys/kern/vfs_bio.c:771 ufs_dirremove(fffffd80685a98f0,fffffd807b595440,800c,1) at ufs_dirremove+0x291 ufs_rmdir(ffff800020eda788) at ufs_rmdir+0x247 sys/ufs/ufs/ufs_vnops.c:1328 VOP_RMDIR(fffffd80685a98f0,fffffd8064a360e0,ffff800020eda888) at VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474 end trace frame: 0xffff800020eda920, count: 0 ddb{0}> trace x86_ipi_db(ffffffff82713ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x58 sys/dev/kcov.c:86 __mp_acquire_count(ffffffff828ec9f0,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(ffff800020eda560,1) at sleep_finish+0x113 sys/kern/kern_synch.c:418 sleep_finish_all(ffff800020eda560,1) at sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:447 [inline] sleep_finish_all(ffff800020eda560,1) at sleep_finish_all+0x32 sys/kern/kern_synch.c:393 tsleep(fffffd806856f008,11,ffffffff8247949e,0) at tsleep+0x1cc sys/kern/kern_synch.c:155 biowait(fffffd806856f008) at biowait+0xa6 sys/kern/vfs_bio.c:1262 bwrite(fffffd806856f008) at bwrite+0x215 sys/kern/vfs_bio.c:771 ufs_dirremove(fffffd80685a98f0,fffffd807b595440,800c,1) at ufs_dirremove+0x291 ufs_rmdir(ffff800020eda788) at ufs_rmdir+0x247 sys/ufs/ufs/ufs_vnops.c:1328 VOP_RMDIR(fffffd80685a98f0,fffffd8064a360e0,ffff800020eda888) at VOP_RMDIR+0xf8 sys/kern/vfs_vops.c:474 dounlinkat(ffff800020ddc008,ffffff9c,7f7ffffe22a0,8) at dounlinkat+0x14c sys/kern/vfs_syscalls.c:1886 syscall(ffff800020edaa00) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020edaa00) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2290, 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(ffffffff8241d05e) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8320) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8320) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806f664320,9,fffffd806f555500,0,0,ffff800020e3fc40) at tcp_usrreq+0xa55 sosend(fffffd806f664320,0,ffff800020e91ed8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e3fc40,6,ffff800020e91ed8,0,ffff800020e91fc0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e3fc40,ffff800020e91f70,ffff800020e91fc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e92040) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e92040) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000c05448, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8241d05e) at panic+0x164 sys/kern/subr_prf.c:218 tcp_output(ffff800000ad8320) at tcp_output+0x2c4b tcp_setpersist sys/netinet/tcp_output.c:1130 [inline] tcp_output(ffff800000ad8320) at tcp_output+0x2c4b sys/netinet/tcp_output.c:333 tcp_usrreq(fffffd806f664320,9,fffffd806f555500,0,0,ffff800020e3fc40) at tcp_usrreq+0xa55 sosend(fffffd806f664320,0,ffff800020e91ed8,0,0,80) at sosend+0x671 sys/kern/uipc_socket.c:555 dofilewritev(ffff800020e3fc40,6,ffff800020e91ed8,0,ffff800020e91fc0) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020e3fc40,ffff800020e91f70,ffff800020e91fc0) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800020e92040) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020e92040) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000c05448, count: -9