panic: vput: v_writecount != 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 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(fffffd8029b8f768) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd803b5d2db0,ffff800014fd0ee8) at vn_closefile+0x15b sys/kern/vfs_vnops.c:584 fdrop(fffffd803b5d2db0,ffff800014fd0ee8) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd803b5d2db0,ffff800014fd0ee8) at closef+0x118 sys/kern/kern_descrip.c:1253 fdfree(ffff800014fd0ee8) at fdfree+0xf7 sys/kern/kern_descrip.c:1185 exit1(ffff800014fd0ee8,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800014fd0ee8,ffff800015a06cb0,ffff800015a06d20) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a06d80) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffe2394) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2360, 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(fffffd8029b8f768) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd803b5d2db0,ffff800014fd0ee8) at vn_closefile+0x15b sys/kern/vfs_vnops.c:584 fdrop(fffffd803b5d2db0,ffff800014fd0ee8) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd803b5d2db0,ffff800014fd0ee8) at closef+0x118 sys/kern/kern_descrip.c:1253 fdfree(ffff800014fd0ee8) at fdfree+0xf7 sys/kern/kern_descrip.c:1185 exit1(ffff800014fd0ee8,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800014fd0ee8,ffff800015a06cb0,ffff800015a06d20) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800015a06d80) at syscall+0x508 Xsyscall(6,1,0,1,0,7f7ffffe2394) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe2360, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800015a069a0 rbx 0xffff800015a06a50 rdx 0x2 rcx 0 rax 0 r8 0xffff800015a06960 r9 0x1 r10 0 r11 0xb7c282f915ae272d r12 0x3000000008 r13 0xffff800015a069b0 r14 0x100 r15 0x1 rip 0xffffffff81877898 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800015a06990 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=143083 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800014fd0780,0xffffffff822e6ed0 process=0xffff8000ffff6010 user=0xffff800015a01000, vmspace=0xfffffd803f00b330 estcpu=36, cpticks=9, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 77457 119793 1 0 3 0x100083 ttyin getty 44498 474752 0 0 3 0x14200 bored sosplice 62283 425592 15405 0 2 0x482 syz-executor.1 50105 501741 15405 0 2 0x2 syz-executor.0 15405 484360 67903 0 3 0x82 thrsleep syz-fuzzer 15405 69213 67903 0 2 0x4000482 syz-fuzzer 15405 409640 67903 0 3 0x4000082 kqread syz-fuzzer 15405 411539 67903 0 3 0x4000082 thrsleep syz-fuzzer 15405 488766 67903 0 3 0x4000082 thrsleep syz-fuzzer 15405 499231 67903 0 3 0x4000082 thrsleep syz-fuzzer 15405 145802 67903 0 3 0x4000082 thrsleep syz-fuzzer 67903 226831 46000 0 3 0x10008a pause ksh 46000 104331 52462 0 3 0x92 select sshd 52462 30326 1 0 3 0x80 select sshd 62302 244099 20930 73 2 0x100090 syslogd 20930 208193 1 0 3 0x100082 netio syslogd 81667 97761 1 77 3 0x100090 poll dhclient 71670 354295 1 0 3 0x80 poll dhclient 79263 227813 0 0 2 0x14200 zerothread 39501 278323 0 0 3 0x14200 aiodoned aiodoned 70320 82172 0 0 3 0x14200 syncer update 7803 324554 0 0 3 0x14200 cleaner cleaner 95339 313704 0 0 3 0x14200 reaper reaper 42095 240269 0 0 3 0x14200 pgdaemon pagedaemon 31220 71230 0 0 3 0x14200 bored crynlk 40113 241474 0 0 3 0x14200 bored crypto 37482 131479 0 0 3 0x40014200 acpi0 acpi0 58435 345972 0 0 3 0x14200 bored softnet 7918 333514 0 0 3 0x14200 bored systqmp 1019 355282 0 0 3 0x14200 bored systq 17508 200112 0 0 3 0x40014200 bored softclock 26850 382253 0 0 3 0x40014200 idle0 28868 216397 0 0 3 0x14200 bored smr 1 231475 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 9576 6521K 7037K 78643K 31507 0 0 pcb 13 8K 8K 78643K 615 0 0 rtable 116 12K 12K 78643K 1273 0 0 ifaddr 76 18K 20K 78643K 603 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 435 0 0 iov 0 0K 28K 78643K 1010 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 77K 78643K 8473 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 98 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 818 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 7544 0 0 sigio 0 0K 0K 78643K 136 0 0 proc 42 30K 54K 78643K 1067 0 0 subproc 32 2K 2K 78643K 38 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 664 0 0 in_multi 33 2K 2K 78643K 247 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 0 0K 0K 78643K 16 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 899 0 0 pfkey data 0 0K 4K 78643K 4 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 87 20K 36K 78643K 18453 0 0 UVM aobj 130 4K 4K 78643K 150 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 300 0 0 NDP 18 0K 0K 78643K 162 0 0 temp 213 2728K 3368K 78643K 26189 0 0 kqueue 0 0K 0K 78643K 53 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 10 0 4 1 0 1 1 0 8 0 rtpcb 80 336 0 334 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 2641 0 2631 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 523 0 523 1 1 0 1 0 8 0 tcpcb 544 1116 0 1112 1 0 1 1 0 8 0 inpcb 280 3121 0 3114 6 4 2 2 0 8 1 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 48 4 0 4 1 1 0 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 28 0 28 9 9 0 1 0 8 0 swfcl 56 3 0 0 1 0 1 1 0 8 0 ppxss 1128 115 0 115 23 22 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 191 0 3 12 0 12 12 0 8 0 art_table 32 192 0 3 2 0 2 2 0 8 0 art_node 16 48 0 8 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 8 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 816 0 806 1 0 1 1 0 8 0 shmpl 112 148 0 20 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13834 0 12421 46 0 46 46 0 8 0 ffsino 240 13834 0 12421 84 0 84 84 0 8 0 nchpl 144 24598 0 22960 62 0 62 62 0 8 0 uvmvnodes 72 7116 0 0 130 0 130 130 0 8 0 vnodes 200 7116 0 0 375 0 375 375 0 8 0 namei 1024 78347 0 78346 3 2 1 1 0 8 0 scsiplug 64 17 0 17 8 8 0 1 0 8 0 scxspl 192 78366 0 78366 40 39 1 6 0 8 1 plimitpl 152 664 0 657 1 0 1 1 0 8 0 sigapl 432 7718 0 7705 2 0 2 2 0 8 0 futexpl 56 127434 0 127434 3 2 1 1 0 8 1 knotepl 112 1417 0 1398 1 0 1 1 0 8 0 kqueuepl 104 1855 0 1853 1 0 1 1 0 8 0 pipepl 112 4452 0 4433 11 10 1 2 0 8 0 fdescpl 424 7719 0 7705 2 0 2 2 0 8 0 filepl 120 47295 0 47200 8 4 4 5 0 8 0 lockfpl 104 2814 0 2814 5 4 1 1 0 8 1 lockfspl 48 978 0 978 5 4 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 110 0 100 1 0 1 1 0 8 0 ucredpl 96 10058 0 10051 1 0 1 1 0 8 0 zombiepl 144 7706 0 7705 2 1 1 1 0 8 0 processpl 864 7734 0 7705 4 0 4 4 0 8 0 procpl 632 17411 0 17376 4 0 4 4 0 8 0 sosppl 128 73 0 73 21 20 1 1 0 8 1 sockpl 384 6198 0 6179 8 5 3 4 0 8 1 mcl64k 65536 1708 0 1708 147 146 1 33 0 8 1 mcl16k 16384 18 0 18 12 11 1 1 0 8 1 mcl12k 12288 135 0 135 17 16 1 1 0 8 1 mcl9k 9216 109 0 109 22 22 0 1 0 8 0 mcl8k 8192 116 0 116 21 20 1 1 0 8 1 mcl4k 4096 352 0 352 5 4 1 1 0 8 1 mcl2k2 2112 41 0 41 19 19 0 1 0 8 0 mcl2k 2048 66585 0 66539 17 10 7 11 0 8 0 mtagpl 80 226 0 101 4 1 3 3 0 8 0 mbufpl 256 141700 0 141360 99 76 23 33 0 8 0 bufpl 256 29212 0 21448 486 0 486 486 0 8 0 anonpl 16 680340 0 668272 223 157 66 68 0 62 12 amapchunkpl 152 33082 0 32974 105 99 6 18 0 158 0 amappl16 192 42026 0 41361 209 164 45 46 0 8 11 amappl15 184 4 0 4 4 4 0 1 0 8 0 amappl14 176 49 0 45 1 0 1 1 0 8 0 amappl13 168 10 0 8 1 0 1 1 0 8 0 amappl12 160 3799 0 3793 1 0 1 1 0 8 0 amappl11 152 54 0 43 1 0 1 1 0 8 0 amappl10 144 3795 0 3794 2 1 1 1 0 8 0 amappl9 136 555 0 552 1 0 1 1 0 8 0 amappl8 128 134 0 115 1 0 1 1 0 8 0 amappl7 120 3753 0 3750 1 0 1 1 0 8 0 amappl6 112 58 0 52 1 0 1 1 0 8 0 amappl5 104 3974 0 3962 1 0 1 1 0 8 0 amappl4 96 4222 0 4194 2 1 1 2 0 8 0 amappl3 88 4207 0 4196 1 0 1 1 0 8 0 amappl2 80 61033 0 60967 4 2 2 3 0 8 0 amappl1 72 143032 0 142616 24 15 9 19 0 8 0 amappl 80 17737 0 17700 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 149 0 20 3 0 3 3 0 8 0 uaddrrnd 24 7719 0 7705 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7719 0 7705 1 0 1 1 0 8 0 vmmpekpl 168 41612 0 41589 2 0 2 2 0 8 0 vmmpepl 168 903001 0 901281 223 134 89 95 0 357 12 vmsppl 272 7718 0 7705 2 1 1 2 0 8 0 pdppl 4096 15445 0 15410 6 1 5 6 0 8 0 pvpl 32 2012092 0 1996958 530 369 161 241 0 265 35 pmappl 200 7718 0 7705 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 901 0 273 18 0 18 18 0 8 0