panic: vput: v_writecount != 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 409221 57582 0 0x14000 0x200 1 reaper 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(fffffd8066f13800) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd8068346268,ffff800020b5e018) at vn_closefile+0x15b sys/kern/vfs_vnops.c:583 fdrop(fffffd8068346268,ffff800020b5e018) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd8068346268,ffff800020b5e018) at closef+0x11d sys/kern/kern_descrip.c:1253 fdfree(ffff800020b5e018) at fdfree+0xf8 sys/kern/kern_descrip.c:1185 exit1(ffff800020b5e018,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020b5e018,ffff800021c0d150,ffff800021c0d1c0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800021c0d230) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021c0d230) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffe8d74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8d40, 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(fffffd8066f13800) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd8068346268,ffff800020b5e018) at vn_closefile+0x15b sys/kern/vfs_vnops.c:583 fdrop(fffffd8068346268,ffff800020b5e018) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd8068346268,ffff800020b5e018) at closef+0x11d sys/kern/kern_descrip.c:1253 fdfree(ffff800020b5e018) at fdfree+0xf8 sys/kern/kern_descrip.c:1185 exit1(ffff800020b5e018,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020b5e018,ffff800021c0d150,ffff800021c0d1c0) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800021c0d230) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021c0d230) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,1,0,1,0,7f7ffffe8d74) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe8d40, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021c0ce40 rbx 0xffff800021c0cef0 rdx 0xffff800020b5e018 rcx 0 rax 0 r8 0xffffffff81c359b3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x1bb9039767f45796 r12 0x3000000008 r13 0xffff800021c0ce50 r14 0x100 r15 0x1 rip 0xffffffff8111f318 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021c0ce30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=360257 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020b5ec70,0xffffffff8235e610 process=0xffff800020aebc08 user=0xffff800021c08000, vmspace=0xfffffd807f00c2e0 estcpu=32, cpticks=0, pctcpu=0.9 user=0, sys=3, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 89616 158508 1 0 3 0x100083 ttyin getty 72337 77223 60644 0 2 0x482 syz-executor.1 2427 377409 60644 0 2 0x482 syz-executor.0 32154 421844 0 0 3 0x14200 bored sosplice 60644 363148 43566 0 3 0x82 thrsleep syz-fuzzer 60644 161083 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 459405 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 66686 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 33967 43566 0 3 0x4000082 kqread syz-fuzzer 60644 234858 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 269125 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 77262 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 24379 43566 0 3 0x4000082 thrsleep syz-fuzzer 60644 415489 43566 0 3 0x4000082 thrsleep syz-fuzzer 43566 497925 82130 0 3 0x10008a pause ksh 82130 188919 74287 0 3 0x92 select sshd 74287 342223 1 0 3 0x80 select sshd 83067 217308 51747 74 3 0x100092 bpf pflogd 51747 497610 1 0 3 0x80 netio pflogd 54037 463739 55724 73 2 0x100090 syslogd 55724 349377 1 0 3 0x100082 netio syslogd 68310 294137 1 77 3 0x100090 poll dhclient 33779 392119 1 0 3 0x80 poll dhclient 71772 93153 0 0 2 0x14200 zerothread 14842 323052 0 0 3 0x14200 aiodoned aiodoned 58394 347513 0 0 2 0x14200 update 12097 290404 0 0 3 0x14200 cleaner cleaner 57582 409221 0 0 7 0x14200 reaper 99613 420279 0 0 3 0x14200 pgdaemon pagedaemon 46783 237490 0 0 3 0x14200 bored crynlk 66433 114738 0 0 3 0x14200 bored crypto 83827 384106 0 0 3 0x40014200 acpi0 acpi0 80550 7178 0 0 3 0x40014200 idle1 11441 182126 0 0 3 0x14200 bored softnet 84929 189160 0 0 3 0x14200 bored systqmp 7758 463584 0 0 3 0x14200 bored systq 58624 320717 0 0 3 0x40014200 bored softclock 58379 508988 0 0 3 0x40014200 idle0 72430 214349 0 0 3 0x14200 bored smr 1 289472 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 9573 6436K 7056K 78643K 16869 0 0 pcb 13 8K 8K 78643K 180 0 0 rtable 113 4K 5K 78643K 1178 0 0 ifaddr 78 16K 17K 78643K 344 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1591 0 0 iov 0 0K 24K 78643K 287 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 77K 78643K 3636 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 28 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 248 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2583 0 0 sigio 0 0K 0K 78643K 42 0 0 proc 54 51K 83K 78643K 1158 0 0 subproc 32 2K 2K 78643K 255 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 233 0 0 in_multi 33 2K 2K 78643K 248 0 0 ether_multi 1 0K 0K 78643K 5 0 0 mrt 0 0K 0K 78643K 19 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 557 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 102 21K 31K 78643K 9494 0 0 UVM aobj 107 3K 3K 78643K 118 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 101 0 0 NDP 18 0K 0K 78643K 111 0 0 temp 214 2748K 2876K 78643K 12530 0 0 kqueue 0 0K 0K 78643K 17 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 33 0 26 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 123 0 121 1 0 1 1 0 8 0 rtentry 112 198 0 153 2 0 2 2 0 8 0 unpcb 120 708 0 696 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 8796 0 8796 2 2 0 2 0 8 0 tcpcb 544 355 0 351 1 0 1 1 0 8 0 inpcb 280 1065 0 1057 2 1 1 2 0 8 0 rttmr 72 9 0 9 1 1 0 1 0 8 0 nd6 48 45 0 39 1 0 1 1 0 8 0 pkpcb 40 16 0 16 6 6 0 1 0 8 0 ppxss 1128 39 0 39 10 9 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 57 0 44 1 0 1 1 0 8 0 pfstkey 112 57 0 44 1 0 1 1 0 8 0 pfstate 328 57 0 44 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 784 0 589 19 6 13 13 0 8 0 art_table 32 785 0 589 2 0 2 2 0 8 0 art_node 16 195 0 154 1 0 1 1 0 8 0 sysvmsgpl 40 13 0 8 1 0 1 1 0 8 0 semapl 112 246 0 236 1 0 1 1 0 8 0 shmpl 112 116 0 11 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5226 0 3803 47 0 47 47 0 8 0 ffsino 272 5226 0 3803 96 0 96 96 0 8 0 nchpl 144 8873 0 7240 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 28043 0 28043 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 5 0 5 3 3 0 1 0 8 0 scxspl 192 26921 0 26921 26 22 4 6 0 8 4 plimitpl 152 223 0 215 1 0 1 1 0 8 0 sigapl 432 2747 0 2732 3 1 2 3 0 8 0 futexpl 56 28767 0 28767 2 1 1 1 0 8 1 knotepl 112 725 0 706 1 0 1 1 0 8 0 kqueuepl 104 512 0 510 1 0 1 1 0 8 0 pipepl 112 1546 0 1527 1 0 1 1 0 8 0 fdescpl 488 2748 0 2732 3 0 3 3 0 8 0 filepl 152 15414 0 15314 7 2 5 5 0 8 0 lockfpl 104 798 0 798 4 3 1 1 0 8 1 lockfspl 48 278 0 278 4 3 1 1 0 8 1 sessionpl 112 34 0 23 1 0 1 1 0 8 0 pgrppl 48 68 0 57 1 0 1 1 0 8 0 ucredpl 96 2752 0 2743 1 0 1 1 0 8 0 zombiepl 144 2733 0 2731 2 1 1 1 0 8 0 processpl 896 2764 0 2731 4 0 4 4 0 8 0 procpl 632 8101 0 8058 12 7 5 5 0 8 1 srpgc 64 31 0 31 4 4 0 1 0 8 0 sosppl 128 27 0 27 6 6 0 1 0 8 0 sockpl 384 1940 0 1919 5 2 3 3 0 8 0 mcl64k 65536 266 0 0 33 5 28 33 0 8 1 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 20 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 11 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 241 0 0 28 2 26 28 0 8 0 mtagpl 80 30 0 0 1 0 1 1 0 8 0 mbufpl 256 572 0 0 31 0 31 31 0 8 0 bufpl 256 12019 0 4990 440 0 440 440 0 8 0 anonpl 16 247866 0 236015 103 52 51 63 0 125 1 amapchunkpl 152 17701 0 17587 52 42 10 12 0 158 4 amappl16 192 13872 0 13224 78 43 35 45 0 8 2 amappl15 184 12 0 12 1 1 0 1 0 8 0 amappl14 176 130 0 125 1 0 1 1 0 8 0 amappl13 168 1051 0 1049 1 0 1 1 0 8 0 amappl12 160 128 0 127 2 1 1 1 0 8 0 amappl11 152 555 0 537 1 0 1 1 0 8 0 amappl10 144 113 0 109 1 0 1 1 0 8 0 amappl9 136 793 0 790 1 0 1 1 0 8 0 amappl8 128 298 0 274 1 0 1 1 0 8 0 amappl7 120 93 0 86 1 0 1 1 0 8 0 amappl6 112 516 0 506 1 0 1 1 0 8 0 amappl5 104 356 0 341 1 0 1 1 0 8 0 amappl4 96 3640 0 3608 2 1 1 2 0 8 0 amappl3 88 283 0 273 1 0 1 1 0 8 0 amappl2 80 20154 0 20080 3 1 2 3 0 8 0 amappl1 72 71577 0 71151 26 17 9 20 0 8 0 amappl 80 8560 0 8520 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 117 0 11 2 0 2 2 0 8 0 uaddrrnd 24 2748 0 2732 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2748 0 2732 1 0 1 1 0 8 0 vmmpekpl 168 24034 0 23998 3 1 2 2 0 8 0 vmmpepl 168 341637 0 339869 173 88 85 100 0 357 4 vmsppl 368 2747 0 2732 2 0 2 2 0 8 0 pdppl 4096 5504 0 5464 6 0 6 6 0 8 0 pvpl 32 719838 0 704767 254 113 141 161 0 265 17 pmappl 232 2747 0 2732 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 671 0 17 19 0 19 19 0 8 0