panic() at panic+0x15c sys/kern/subr_prf.c:207 vput(fffffd803b7817c0) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd8030bbda68,ffff8000ffff3b40) at vn_closefile+0x15b sys/kern/vfs_vnops.c:584 fdrop(fffffd8030bbda68,ffff8000ffff3b40) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd8030bbda68,ffff8000ffff3b40) at closef+0x118 sys/kern/kern_descrip.c:1253 fdfree(ffff8000ffff3b40) at fdfree+0xf7 sys/kern/kern_descrip.c:1185 exit1(ffff8000ffff3b40,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff8000ffff3b40,ffff800014940300,ffff800014940370) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149403d0) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffc5604) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc55d0, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic vput: v_writecount != 0 ddb> 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(fffffd803b7817c0) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd8030bbda68,ffff8000ffff3b40) at vn_closefile+0x15b sys/kern/vfs_vnops.c:584 fdrop(fffffd8030bbda68,ffff8000ffff3b40) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd8030bbda68,ffff8000ffff3b40) at closef+0x118 sys/kern/kern_descrip.c:1253 fdfree(ffff8000ffff3b40) at fdfree+0xf7 sys/kern/kern_descrip.c:1185 exit1(ffff8000ffff3b40,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff8000ffff3b40,ffff800014940300,ffff800014940370) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff8000149403d0) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffc5604) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc55d0, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001493fff0 rbx 0xffff8000149400a0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001493ffb0 r9 0x1 r10 0 r11 0x8aeaadab38953023 r12 0x3000000008 r13 0xffff800014940000 r14 0x100 r15 0x1 rip 0xffffffff8198adc8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001493ffe0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=298453 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff822db690 process=0xffff8000ffff6d90 user=0xffff80001493b000, vmspace=0xfffffd803f00ccc0 estcpu=36, cpticks=15, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 51772 358849 1 0 3 0x100083 ttyin getty 6071 359456 0 0 3 0x14200 bored sosplice 79944 342196 90241 0 2 0x482 syz-executor.0 1774 355793 90241 0 2 0x2 syz-executor.1 90241 279428 17790 0 3 0x82 kqread syz-fuzzer 90241 242688 17790 0 2 0x4000482 syz-fuzzer 90241 397597 17790 0 3 0x4000082 thrsleep syz-fuzzer 90241 80315 17790 0 3 0x4000082 thrsleep syz-fuzzer 90241 214547 17790 0 3 0x4000082 thrsleep syz-fuzzer 90241 477142 17790 0 3 0x4000082 thrsleep syz-fuzzer 90241 255977 17790 0 3 0x4000082 thrsleep syz-fuzzer 17790 509140 66508 0 3 0x10008a pause ksh 66508 461740 94143 0 3 0x92 select sshd 94143 75261 1 0 3 0x80 select sshd 74036 190269 12811 73 2 0x100090 syslogd 12811 25848 1 0 3 0x100082 netio syslogd 25644 107948 1 77 3 0x100090 poll dhclient 3782 244796 1 0 3 0x80 poll dhclient 50747 420578 0 0 2 0x14200 zerothread 97265 377305 0 0 3 0x14200 aiodoned aiodoned 87988 93245 0 0 3 0x14200 syncer update 44322 456503 0 0 3 0x14200 cleaner cleaner 69488 297839 0 0 3 0x14200 reaper reaper 2989 292989 0 0 3 0x14200 pgdaemon pagedaemon 28038 466081 0 0 3 0x14200 bored crynlk 37714 296275 0 0 3 0x14200 bored crypto 90563 109689 0 0 3 0x40014200 acpi0 acpi0 57737 102769 0 0 3 0x14200 bored softnet 94388 242642 0 0 3 0x14200 bored systqmp 23402 415651 0 0 3 0x14200 bored systq 56254 219558 0 0 3 0x40014200 bored softclock 702 234677 0 0 3 0x40014200 idle0 99213 382706 0 0 2 0x14200 smr 1 375604 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9553 6492K 14656K 78643K 25086 0 0 pcb 13 8K 8K 78643K 370 0 0 rtable 118 4K 5K 78643K 1176 0 0 ifaddr 68 17K 19K 78643K 561 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 287 0 0 iov 0 0K 32K 78643K 576 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1204 76K 77K 78643K 5983 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 64 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 537 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 5094 0 0 sigio 1 0K 0K 78643K 62 0 0 proc 42 30K 46K 78643K 819 0 0 subproc 32 2K 2K 78643K 40 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 471 0 0 in_multi 33 2K 2K 78643K 200 0 0 ether_multi 1 0K 0K 78643K 24 0 0 mrt 0 0K 0K 78643K 12 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 686 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 84 20K 36K 78643K 12815 0 0 UVM aobj 130 4K 4K 78643K 156 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 225 0 0 NDP 15 0K 0K 78643K 151 0 0 temp 191 2728K 3367K 78643K 19050 0 0 kqueue 0 0K 0K 78643K 61 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 7 0 1 1 0 1 1 0 8 0 rtpcb 80 252 0 250 1 0 1 1 0 8 0 rtentry 112 56 0 11 2 0 2 2 0 8 0 unpcb 120 1719 0 1709 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1522 0 1522 1 1 0 1 0 8 0 tcpcb 544 801 0 797 1 0 1 1 0 8 0 inpcb 280 2134 0 2125 4 3 1 2 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 30 0 30 10 9 1 1 0 8 1 swfcl 56 10 0 0 1 0 1 1 0 8 0 ppxss 1128 104 0 104 15 14 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 1 12 0 12 12 0 8 0 art_table 32 190 0 1 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 533 0 523 1 0 1 1 0 8 0 shmpl 112 154 0 26 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9705 0 8305 46 0 46 46 0 8 0 ffsino 240 9705 0 8305 84 0 84 84 0 8 0 nchpl 144 17062 0 15434 62 0 62 62 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 54076 0 54076 4 3 1 1 0 8 1 scsiplug 64 12 0 12 8 8 0 1 0 8 0 scxspl 192 50210 0 50210 28 24 4 6 0 8 4 plimitpl 152 432 0 425 1 0 1 1 0 8 0 sigapl 432 5268 0 5255 2 0 2 2 0 8 0 futexpl 56 85550 0 85550 3 2 1 1 0 8 1 knotepl 112 1069 0 1050 1 0 1 1 0 8 0 kqueuepl 104 1354 0 1352 1 0 1 1 0 8 0 pipepl 112 3138 0 3119 7 6 1 2 0 8 0 fdescpl 424 5269 0 5255 2 0 2 2 0 8 0 filepl 120 31699 0 31604 5 1 4 5 0 8 0 lockfpl 104 1729 0 1729 4 3 1 1 0 8 1 lockfspl 48 573 0 573 4 3 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 82 0 72 1 0 1 1 0 8 0 ucredpl 96 6448 0 6441 1 0 1 1 0 8 0 zombiepl 144 5256 0 5255 2 1 1 1 0 8 0 processpl 864 5284 0 5255 4 0 4 4 0 8 0 procpl 632 11870 0 11835 4 0 4 4 0 8 0 sosppl 128 63 0 63 16 15 1 1 0 8 1 sockpl 384 4178 0 4159 7 4 3 4 0 8 1 mcl64k 65536 1697 0 1697 152 151 1 65 0 8 1 mcl16k 16384 20 0 20 13 13 0 1 0 8 0 mcl12k 12288 93 0 93 14 13 1 1 0 8 1 mcl9k 9216 58 0 58 16 15 1 1 0 8 1 mcl8k 8192 81 0 81 18 17 1 1 0 8 1 mcl4k 4096 248 0 246 6 5 1 1 0 8 0 mcl2k2 2112 45 0 45 17 16 1 1 0 8 1 mcl2k 2048 62355 0 62312 19 12 7 12 0 8 1 mtagpl 80 143 0 89 3 1 2 2 0 8 0 mbufpl 256 125239 0 125054 92 79 13 43 0 8 0 bufpl 256 18537 0 12879 354 0 354 354 0 8 0 anonpl 16 490492 0 478279 185 119 66 67 0 62 13 amapchunkpl 152 23466 0 23359 61 53 8 18 0 158 2 amappl16 192 26979 0 26306 190 144 46 47 0 8 12 amappl15 184 2549 0 2548 1 0 1 1 0 8 0 amappl14 176 2618 0 2610 1 0 1 1 0 8 0 amappl13 168 10 0 10 4 4 0 1 0 8 0 amappl12 160 8 0 6 1 0 1 1 0 8 0 amappl11 152 49 0 38 1 0 1 1 0 8 0 amappl10 144 73 0 71 2 1 1 1 0 8 0 amappl9 136 3065 0 3060 1 0 1 1 0 8 0 amappl8 128 2639 0 2622 1 0 1 1 0 8 0 amappl7 120 31 0 28 1 0 1 1 0 8 0 amappl6 112 53 0 47 1 0 1 1 0 8 0 amappl5 104 175 0 164 1 0 1 1 0 8 0 amappl4 96 2979 0 2950 1 0 1 1 0 8 0 amappl3 88 5433 0 5421 1 0 1 1 0 8 0 amappl2 80 41648 0 41583 4 2 2 3 0 8 0 amappl1 72 97130 0 96714 26 17 9 19 0 8 0 amappl 80 12185 0 12148 1 0 1 1 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 155 0 26 3 0 3 3 0 8 0 uaddrrnd 24 5269 0 5255 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5269 0 5255 1 0 1 1 0 8 0 vmmpekpl 168 30556 0 30534 2 0 2 2 0 8 0 vmmpepl 168 608816 0 607097 231 141 90 120 0 357 10 vmsppl 272 5268 0 5255 2 1 1 2 0 8 0 pdppl 4096 10545 0 10510 6 1 5 6 0 8 0 pvpl 32 1278563 0 1263300 378 198 180 200 0 265 54 pmappl 200 5268 0 5255 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 769 0 284 18 1 17 17 0 8 0