panic() at panic+0x15c sys/kern/subr_prf.c:207 vput(fffffd803af089b8) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd802f7f1cc0,ffff80001494c290) at vn_closefile+0x15b sys/kern/vfs_vnops.c:584 fdrop(fffffd802f7f1cc0,ffff80001494c290) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd802f7f1cc0,ffff80001494c290) at closef+0x118 sys/kern/kern_descrip.c:1253 fdfree(ffff80001494c290) at fdfree+0xf7 sys/kern/kern_descrip.c:1185 exit1(ffff80001494c290,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff80001494c290,ffff800017a00430,ffff800017a004a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800017a00500) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffc4254) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4220, 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(fffffd803af089b8) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd802f7f1cc0,ffff80001494c290) at vn_closefile+0x15b sys/kern/vfs_vnops.c:584 fdrop(fffffd802f7f1cc0,ffff80001494c290) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd802f7f1cc0,ffff80001494c290) at closef+0x118 sys/kern/kern_descrip.c:1253 fdfree(ffff80001494c290) at fdfree+0xf7 sys/kern/kern_descrip.c:1185 exit1(ffff80001494c290,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff80001494c290,ffff800017a00430,ffff800017a004a0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800017a00500) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffc4254) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc4220, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800017a00120 rbx 0xffff800017a001d0 rdx 0x2 rcx 0 rax 0 r8 0xffff800017a000e0 r9 0x1 r10 0 r11 0x1e6ab67eb1c6e61a r12 0x3000000008 r13 0xffff800017a00130 r14 0x100 r15 0x1 rip 0xffffffff8141a408 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017a00110 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=139823 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=84, nice=20 forw=0xffffffffffffffff, list=0xffff80001494d650,0xffffffff82298c18 process=0xffff8000ffff6d90 user=0xffff8000179fb000, vmspace=0xfffffd803f00c220 estcpu=34, cpticks=18, pctcpu=0.2 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 900 97447 0 0 3 0x14200 bored sosplice 16277 4675 80708 0 2 0x2 syz-executor.0 16308 196007 80708 0 2 0x482 syz-executor.1 80708 314246 38774 0 3 0x82 thrsleep syz-fuzzer 80708 330124 38774 0 3 0x4000082 thrsleep syz-fuzzer 80708 429109 38774 0 3 0x4000082 thrsleep syz-fuzzer 80708 507492 38774 0 3 0x4000082 kqread syz-fuzzer 80708 139646 38774 0 3 0x4000082 thrsleep syz-fuzzer 80708 386963 38774 0 3 0x4000082 thrsleep syz-fuzzer 80708 22028 38774 0 3 0x4000082 thrsleep syz-fuzzer 38774 371733 98179 0 3 0x10008a pause ksh 98179 261742 32174 0 3 0x92 select sshd 50426 473001 1 0 3 0x100083 ttyin getty 32174 254333 1 0 3 0x80 select sshd 42173 359056 79505 73 2 0x100090 syslogd 79505 81374 1 0 3 0x100082 netio syslogd 5348 266157 1 77 3 0x100090 poll dhclient 3736 450046 1 0 3 0x80 poll dhclient 18017 214371 0 0 2 0x14200 zerothread 90185 309327 0 0 3 0x14200 aiodoned aiodoned 57592 2745 0 0 3 0x14200 syncer update 85649 268439 0 0 3 0x14200 cleaner cleaner 46699 263880 0 0 3 0x14200 reaper reaper 4057 103714 0 0 3 0x14200 pgdaemon pagedaemon 3331 522214 0 0 3 0x14200 bored crynlk 44538 446167 0 0 3 0x14200 bored crypto 8686 459353 0 0 3 0x40014200 acpi0 acpi0 76794 43452 0 0 3 0x14200 bored softnet 34099 100789 0 0 3 0x14200 bored systqmp 3442 394052 0 0 3 0x14200 bored systq 55460 297740 0 0 3 0x40014200 bored softclock 91920 365843 0 0 3 0x40014200 idle0 62850 439540 0 0 3 0x14200 bored smr 1 173912 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 9510 6483K 6902K 78643K 15310 0 0 pcb 13 8K 8K 78643K 85 0 0 rtable 110 3K 4K 78643K 1172 0 0 ifaddr 56 16K 18K 78643K 555 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 111 0 0 iov 0 0K 24K 78643K 193 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 2822 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 26 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 156 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1625 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 41 30K 54K 78643K 463 0 0 subproc 32 2K 2K 78643K 36 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 133 0 0 in_multi 33 2K 2K 78643K 105 0 0 ether_multi 1 0K 0K 78643K 16 0 0 mrt 0 0K 0K 78643K 3 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 464 0 0 pfkey data 0 0K 0K 78643K 2 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 21K 78643K 4662 0 0 UVM aobj 75 3K 3K 78643K 81 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 51 0 0 NDP 11 0K 0K 78643K 173 0 0 temp 163 2727K 2796K 78643K 8932 0 0 kqueue 0 0K 0K 78643K 27 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 0 1 0 1 1 0 8 0 rtpcb 80 59 0 57 1 0 1 1 0 8 0 rtentry 112 46 0 1 2 0 2 2 0 8 0 unpcb 120 715 0 705 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 683 0 683 1 1 0 1 0 8 0 tcpcb 544 240 0 236 1 0 1 1 0 8 0 inpcb 280 539 0 530 2 1 1 2 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 2 0 1 0 8 0 ppxss 1128 20 0 20 6 5 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 45 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 4 1 0 1 1 0 8 0 semapl 112 154 0 144 1 0 1 1 0 8 0 shmpl 112 79 0 6 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4297 0 2888 46 0 46 46 0 8 0 ffsino 240 4297 0 2888 84 0 84 84 0 8 0 nchpl 144 6731 0 5091 62 0 62 62 0 8 0 uvmvnodes 72 5243 0 0 96 0 96 96 0 8 0 vnodes 200 5243 0 0 276 0 276 276 0 8 0 namei 1024 20157 0 20157 1 0 1 1 0 8 1 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 18585 0 18585 12 11 1 6 0 8 1 plimitpl 152 107 0 100 1 0 1 1 0 8 0 sigapl 432 1796 0 1783 2 0 2 2 0 8 0 futexpl 56 25989 0 25989 1 0 1 1 0 8 1 knotepl 112 548 0 529 1 0 1 1 0 8 0 kqueuepl 104 604 0 602 1 0 1 1 0 8 0 pipepl 112 978 0 959 1 0 1 1 0 8 0 fdescpl 424 1797 0 1783 2 0 2 2 0 8 0 filepl 120 10546 0 10451 4 0 4 4 0 8 0 lockfpl 104 505 0 505 3 2 1 1 0 8 1 lockfspl 48 167 0 167 3 2 1 1 0 8 1 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 1758 0 1751 1 0 1 1 0 8 0 zombiepl 144 1784 0 1783 1 0 1 1 0 8 0 processpl 864 1812 0 1783 4 0 4 4 0 8 0 procpl 632 3969 0 3934 4 0 4 4 0 8 0 sosppl 128 31 0 31 7 6 1 1 0 8 1 sockpl 384 1327 0 1308 3 0 3 3 0 8 1 mcl64k 65536 306 0 306 36 35 1 32 0 8 1 mcl16k 16384 4 0 4 3 2 1 1 0 8 1 mcl12k 12288 33 0 33 9 8 1 1 0 8 1 mcl9k 9216 22 0 22 7 6 1 1 0 8 1 mcl8k 8192 25 0 25 6 5 1 1 0 8 1 mcl4k 4096 89 0 89 3 2 1 1 0 8 1 mcl2k2 2112 6 0 6 4 4 0 1 0 8 0 mcl2k 2048 56784 0 56745 17 11 6 12 0 8 0 mtagpl 80 42 0 16 2 1 1 1 0 8 0 mbufpl 256 99956 0 99846 25 17 8 22 0 8 0 bufpl 256 8796 0 4290 282 0 282 282 0 8 0 anonpl 16 209217 0 197221 74 23 51 64 0 62 0 amapchunkpl 152 7027 0 6920 12 7 5 9 0 158 0 amappl16 192 11635 0 10972 63 29 34 45 0 8 0 amappl15 184 904 0 903 1 0 1 1 0 8 0 amappl14 176 951 0 944 1 0 1 1 0 8 0 amappl13 168 7 0 7 2 2 0 1 0 8 0 amappl12 160 14 0 12 1 0 1 1 0 8 0 amappl11 152 53 0 42 1 0 1 1 0 8 0 amappl10 144 748 0 745 1 0 1 1 0 8 0 amappl9 136 535 0 532 1 0 1 1 0 8 0 amappl8 128 125 0 111 1 0 1 1 0 8 0 amappl7 120 714 0 710 1 0 1 1 0 8 0 amappl6 112 49 0 44 1 0 1 1 0 8 0 amappl5 104 193 0 183 1 0 1 1 0 8 0 amappl4 96 2020 0 1994 1 0 1 1 0 8 0 amappl3 88 222 0 211 1 0 1 1 0 8 0 amappl2 80 14563 0 14496 3 1 2 3 0 8 0 amappl1 72 39918 0 39498 25 16 9 19 0 8 0 amappl 80 4189 0 4152 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 80 0 6 2 0 2 2 0 8 0 uaddrrnd 24 1797 0 1783 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1797 0 1783 1 0 1 1 0 8 0 vmmpekpl 168 14904 0 14882 2 0 2 2 0 8 0 vmmpepl 168 214526 0 212815 112 32 80 96 0 357 0 vmsppl 272 1796 0 1783 2 1 1 2 0 8 0 pdppl 4096 3601 0 3566 6 1 5 6 0 8 0 pvpl 32 555125 0 540141 173 47 126 156 0 265 1 pmappl 200 1796 0 1783 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 484 0 76 14 2 12 14 0 8 0