panic() at panic+0x15c sys/kern/subr_prf.c:207 vput(fffffd807d2b7ca0) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd807aa69130,ffff800020b28018) at vn_closefile+0x15b sys/kern/vfs_vnops.c:583 fdrop(fffffd807aa69130,ffff800020b28018) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd807aa69130,ffff800020b28018) at closef+0x11d sys/kern/kern_descrip.c:1253 fdfree(ffff800020b28018) at fdfree+0xf8 sys/kern/kern_descrip.c:1185 exit1(ffff800020b28018,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020b28018,ffff800023e57120,ffff800023e57190) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800023e57200) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023e57200) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffca2f4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca2c0, count: 4 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 vput: v_writecount != 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 vput(fffffd807d2b7ca0) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd807aa69130,ffff800020b28018) at vn_closefile+0x15b sys/kern/vfs_vnops.c:583 fdrop(fffffd807aa69130,ffff800020b28018) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd807aa69130,ffff800020b28018) at closef+0x11d sys/kern/kern_descrip.c:1253 fdfree(ffff800020b28018) at fdfree+0xf8 sys/kern/kern_descrip.c:1185 exit1(ffff800020b28018,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020b28018,ffff800023e57120,ffff800023e57190) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800023e57200) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023e57200) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffca2f4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffca2c0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800023e56e10 rbx 0xffff800023e56ec0 rdx 0xffff800020b28018 rcx 0 rax 0 r8 0xffffffff81ecbab3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xc8a2bc10adf3098c r12 0x3000000008 r13 0xffff800023e56e20 r14 0x100 r15 0x1 rip 0xffffffff81b7cd58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023e56e00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=257890 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020b289f8,0xffffffff82399128 process=0xffff800020aeb188 user=0xffff800023e52000, vmspace=0xfffffd807effe730 estcpu=36, cpticks=13, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27284 520462 1 0 3 0x100083 ttyin getty 44657 415263 0 0 3 0x14200 bored sosplice 74295 66840 76750 0 2 0x482 syz-executor.1 66515 224303 76750 0 2 0x482 syz-executor.0 76750 413039 42317 0 3 0x82 thrsleep syz-fuzzer 76750 329894 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 68252 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 224947 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 308346 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 208062 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 369417 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 2790 42317 0 3 0x4000082 thrsleep syz-fuzzer 76750 210818 42317 0 3 0x4000082 kqread syz-fuzzer 76750 515552 42317 0 3 0x4000082 thrsleep syz-fuzzer 42317 381602 41062 0 3 0x10008a pause ksh 41062 423726 74909 0 3 0x92 select sshd 74909 307903 1 0 3 0x80 select sshd 36395 387882 46191 74 3 0x100092 bpf pflogd 46191 511958 1 0 3 0x80 netio pflogd 85988 416149 13707 73 2 0x100090 syslogd 13707 95199 1 0 3 0x100082 netio syslogd 77500 108866 1 77 3 0x100090 poll dhclient 12082 415666 1 0 3 0x80 poll dhclient 11738 479115 0 0 3 0x14200 pgzero zerothread 17995 78733 0 0 3 0x14200 aiodoned aiodoned 34669 244150 0 0 3 0x14200 syncer update 39960 222505 0 0 3 0x14200 cleaner cleaner 8269 236252 0 0 7 0x14200 reaper 68862 61548 0 0 3 0x14200 pgdaemon pagedaemon 49220 114079 0 0 3 0x14200 bored crynlk 833 197093 0 0 3 0x14200 bored crypto 47838 331660 0 0 3 0x40014200 acpi0 acpi0 7353 156233 0 0 3 0x40014200 idle1 30967 493739 0 0 3 0x14200 bored softnet 42528 393476 0 0 3 0x14200 bored systqmp 35150 23721 0 0 3 0x14200 bored systq 96727 106026 0 0 2 0x40014200 softclock 19152 81305 0 0 3 0x40014200 idle0 12517 316530 0 0 3 0x14200 bored smr 1 226848 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9531 6422K 6936K 78643K 12211 0 0 pcb 13 8K 8K 78643K 67 0 0 rtable 110 4K 4K 78643K 331 0 0 ifaddr 62 13K 14K 78643K 118 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1492 0 0 iov 0 0K 16K 78643K 83 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 1772 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 15 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 87 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 621 0 0 sigio 0 0K 0K 78643K 11 0 0 proc 53 50K 83K 78643K 503 0 0 subproc 32 2K 2K 78643K 34 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 48 0 0 in_multi 33 2K 2K 78643K 54 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 10 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 268 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 109 21K 31K 78643K 2985 0 0 UVM aobj 28 2K 2K 78643K 29 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 18 0 0 NDP 13 0K 0K 78643K 31 0 0 temp 150 2740K 2861K 78643K 5234 0 0 kqueue 0 0K 0K 78643K 6 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 7 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 51 0 49 1 0 1 1 0 8 0 rtentry 112 51 0 6 2 0 2 2 0 8 0 unpcb 120 190 0 178 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8482 0 8482 3 3 0 2 0 8 0 tcpcb 544 87 0 83 1 0 1 1 0 8 0 inpcb 280 308 0 301 1 0 1 1 0 8 0 rttmr 72 3 0 3 3 2 1 1 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 11 0 11 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 pfstitem 24 24 0 6 1 0 1 1 0 8 0 pfstkey 112 24 0 6 1 0 1 1 0 8 0 pfstate 328 24 0 6 2 0 2 2 0 8 0 pfrule 1360 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 190 0 0 12 0 12 12 0 8 0 art_table 32 191 0 0 2 0 2 2 0 8 0 art_node 16 48 0 7 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 85 0 75 1 0 1 1 0 8 0 shmpl 112 27 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2394 0 975 47 0 47 47 0 8 0 ffsino 272 2394 0 975 96 0 96 96 0 8 0 nchpl 144 3441 0 1792 62 0 62 62 0 8 0 uvmvnodes 72 2819 0 0 52 0 52 52 0 8 0 vnodes 200 2819 0 0 149 0 149 149 0 8 0 namei 1024 10038 0 10038 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 9715 0 9715 16 12 4 6 0 8 4 plimitpl 152 67 0 59 1 0 1 1 0 8 0 sigapl 432 822 0 807 3 1 2 3 0 8 0 futexpl 56 7360 0 7360 1 0 1 1 0 8 1 knotepl 112 206 0 187 1 0 1 1 0 8 0 kqueuepl 104 167 0 165 1 0 1 1 0 8 0 pipepl 112 458 0 439 2 1 1 1 0 8 0 fdescpl 488 823 0 807 3 0 3 3 0 8 0 filepl 152 4617 0 4517 7 2 5 6 0 8 0 lockfpl 104 260 0 260 2 1 1 1 0 8 1 lockfspl 48 91 0 91 2 1 1 1 0 8 1 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 726 0 717 1 0 1 1 0 8 0 zombiepl 144 808 0 806 3 2 1 1 0 8 0 processpl 896 839 0 806 4 0 4 4 0 8 0 procpl 632 2184 0 2141 5 0 5 5 0 8 1 srpgc 64 3 0 3 3 2 1 1 0 8 1 sosppl 128 19 0 19 2 1 1 1 0 8 1 sockpl 384 553 0 532 4 1 3 3 0 8 0 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 8 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 226 0 0 28 0 28 28 0 8 0 mtagpl 80 12 0 0 1 0 1 1 0 8 0 mbufpl 256 261 0 0 15 0 15 15 0 8 0 bufpl 256 7131 0 1167 373 0 373 373 0 8 0 anonpl 16 86314 0 74678 77 20 57 63 0 125 9 amapchunkpl 152 4655 0 4516 17 6 11 11 0 158 3 amappl16 192 3734 0 3122 49 15 34 41 0 8 3 amappl15 184 4 0 3 1 0 1 1 0 8 0 amappl14 176 640 0 632 1 0 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 5 0 5 1 1 0 1 0 8 0 amappl11 152 58 0 43 1 0 1 1 0 8 0 amappl10 144 78 0 71 1 0 1 1 0 8 0 amappl9 136 597 0 594 1 0 1 1 0 8 0 amappl8 128 176 0 152 1 0 1 1 0 8 0 amappl7 120 34 0 30 1 0 1 1 0 8 0 amappl6 112 55 0 49 1 0 1 1 0 8 0 amappl5 104 134 0 120 1 0 1 1 0 8 0 amappl4 96 1089 0 1057 2 1 1 2 0 8 0 amappl3 88 794 0 782 1 0 1 1 0 8 0 amappl2 80 5747 0 5674 4 2 2 3 0 8 0 amappl1 72 26937 0 26494 26 16 10 20 0 8 0 amappl 80 2454 0 2407 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 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 28 0 1 1 0 1 1 0 8 0 uaddrrnd 24 823 0 807 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 823 0 807 1 0 1 1 0 8 0 vmmpekpl 168 9892 0 9858 2 0 2 2 0 8 0 vmmpepl 168 105239 0 103478 126 42 84 93 0 357 3 vmsppl 368 822 0 807 2 0 2 2 0 8 0 pdppl 4096 1654 0 1614 6 0 6 6 0 8 0 pvpl 32 265887 0 251083 188 37 151 157 0 265 28 pmappl 232 822 0 807 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 548 0 4 16 0 16 16 0 8 0