panic: vput: v_writecount != 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 417362 9145 0 0x14000 0x200 0 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(fffffd807125bd80) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd8068f12438,ffff800020b6e788) at vn_closefile+0x15b sys/kern/vfs_vnops.c:583 fdrop(fffffd8068f12438,ffff800020b6e788) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd8068f12438,ffff800020b6e788) at closef+0x11d sys/kern/kern_descrip.c:1253 fdfree(ffff800020b6e788) at fdfree+0xf8 sys/kern/kern_descrip.c:1185 exit1(ffff800020b6e788,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020b6e788,ffff800020beb0d0,ffff800020beb140) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020beb1b0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020beb1b0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,1,0,1,0,7f7ffffd74b4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7480, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic vput: v_writecount != 0 ddb{1}> 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(fffffd807125bd80) at vput+0x187 sys/kern/vfs_subr.c:759 vn_closefile(fffffd8068f12438,ffff800020b6e788) at vn_closefile+0x15b sys/kern/vfs_vnops.c:583 fdrop(fffffd8068f12438,ffff800020b6e788) at fdrop+0xc9 sys/kern/kern_descrip.c:1269 closef(fffffd8068f12438,ffff800020b6e788) at closef+0x11d sys/kern/kern_descrip.c:1253 fdfree(ffff800020b6e788) at fdfree+0xf8 sys/kern/kern_descrip.c:1185 exit1(ffff800020b6e788,0,1) at exit1+0x32f sys/kern/kern_exit.c:196 sys_exit(ffff800020b6e788,ffff800020beb0d0,ffff800020beb140) at sys_exit+0x17 sys/kern/kern_exit.c:94 syscall(ffff800020beb1b0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020beb1b0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,1,0,1,0,7f7ffffd74b4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd7480, count: -11 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020beadc0 rbx 0xffff800020beae70 rdx 0xffff800020b6e788 rcx 0 rax 0 r8 0xffffffff81b74c73 kprintf+0x173 r9 0x1 r10 0x25 r11 0x971b3a2df9c35751 r12 0x3000000008 r13 0xffff800020beadd0 r14 0x100 r15 0x1 rip 0xffffffff819bf398 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020beadb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=32791 stat=onproc flags process=1008 proc=2000 pri=32, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020b6e510,0xffffffff8239ad38 process=0xffff800020aebc08 user=0xffff800020be6000, vmspace=0xfffffd807f00bb80 estcpu=30, cpticks=9, pctcpu=0.0 user=0, sys=3, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 91448 502947 27592 0 3 0x82 nanosleep syz-executor.0 53003 239845 1 0 3 0x100083 ttyin getty 55852 135215 0 0 3 0x14200 bored sosplice 21937 339864 27592 0 3 0x2 biowait syz-executor.1 27592 400006 22296 0 3 0x82 thrsleep syz-fuzzer 27592 295579 22296 0 3 0x4000082 nanosleep syz-fuzzer 27592 388618 22296 0 3 0x4000082 thrsleep syz-fuzzer 27592 104613 22296 0 3 0x4000082 nanosleep syz-fuzzer 27592 509720 22296 0 3 0x4000082 thrsleep syz-fuzzer 27592 428175 22296 0 3 0x4000082 thrsleep syz-fuzzer 27592 321048 22296 0 3 0x4000082 thrsleep syz-fuzzer 27592 111624 22296 0 3 0x4000082 thrsleep syz-fuzzer 27592 100700 22296 0 3 0x4000082 kqread syz-fuzzer 27592 298310 22296 0 3 0x4000082 thrsleep syz-fuzzer 22296 398257 60623 0 3 0x10008a pause ksh 60623 52243 7252 0 3 0x92 select sshd 7252 209168 1 0 3 0x80 select sshd 51500 69394 73477 74 3 0x100092 bpf pflogd 73477 391480 1 0 3 0x80 netio pflogd 45992 139086 72230 73 3 0x100090 kqread syslogd 72230 125690 1 0 3 0x100082 netio syslogd 71794 209571 1 77 3 0x100090 poll dhclient 42002 227674 1 0 3 0x80 poll dhclient 60055 15388 0 0 3 0x14200 pgzero zerothread 94964 38904 0 0 3 0x14200 aiodoned aiodoned 69566 247496 0 0 3 0x14200 syncer update 45130 44706 0 0 3 0x14200 cleaner cleaner 9145 417362 0 0 7 0x14200 reaper 15260 86054 0 0 3 0x14200 pgdaemon pagedaemon 5027 368419 0 0 3 0x14200 bored crynlk 62292 136745 0 0 3 0x14200 bored crypto 36743 215743 0 0 3 0x40014200 acpi0 acpi0 33749 199255 0 0 3 0x40014200 idle1 22397 15270 0 0 3 0x14200 bored softnet 42844 468856 0 0 3 0x14200 bored systqmp 4655 97015 0 0 3 0x14200 bored systq 92617 194221 0 0 3 0x40014200 bored softclock 26598 348481 0 0 3 0x40014200 idle0 48450 381360 0 0 3 0x14200 bored smr 1 41432 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21937 (syz-executor.1) thread 0xffff800020b28ee8 (339864) exclusive rrwlock inode r = 0 (0xfffffd806e1061b0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x46d sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:556 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ufs_lookup+0x1575 sys/ufs/ufs/ufs_lookup.c:487 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x7a5 sys/kern/vfs_lookup.c:567 #11 namei+0x61c sys/kern/vfs_lookup.c:248 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1768 #13 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #13 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806b127f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x46d sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:556 #5 vfs_lookup+0xec sys/kern/vfs_lookup.c:418 #6 namei+0x61c sys/kern/vfs_lookup.c:248 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1768 #8 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x552 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9548 6432K 6950K 78643K 13791 0 0 pcb 13 8K 8K 78643K 101 0 0 rtable 113 4K 4K 78643K 413 0 0 ifaddr 69 15K 15K 78643K 147 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1511 0 0 iov 0 0K 32K 78643K 179 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 2329 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 13 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 176 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1311 0 0 sigio 0 0K 0K 78643K 18 0 0 proc 54 51K 83K 78643K 616 0 0 subproc 32 2K 2K 78643K 51 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 142 0 0 in_multi 33 2K 2K 78643K 96 0 0 ether_multi 1 0K 0K 78643K 8 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 298 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 103 21K 30K 78643K 5281 0 0 UVM aobj 59 4K 4K 78643K 62 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 60 0 0 NDP 15 0K 0K 78643K 40 0 0 temp 194 2748K 2814K 78643K 7341 0 0 kqueue 0 0K 0K 78643K 15 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 9 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 68 0 66 1 0 1 1 0 8 0 rtentry 112 59 0 14 2 0 2 2 0 8 0 unpcb 120 456 0 444 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 7374 0 7374 1 1 0 1 0 8 0 tcpcb 544 232 0 228 1 0 1 1 0 8 0 inpcb 280 644 0 637 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 pkpcb 40 8 0 8 2 2 0 1 0 8 0 ppxss 1128 18 0 18 7 6 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 38 0 21 1 0 1 1 0 8 0 pfstkey 112 38 0 21 1 0 1 1 0 8 0 pfstate 328 38 0 21 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 232 0 44 13 1 12 12 0 8 0 art_table 32 233 0 44 2 0 2 2 0 8 0 art_node 16 56 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 27 0 17 1 0 1 1 0 8 0 semapl 112 172 0 162 1 0 1 1 0 8 0 shmpl 112 60 0 3 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3427 0 2010 47 0 47 47 0 8 0 ffsino 272 3427 0 2010 96 0 96 96 0 8 0 nchpl 144 5521 0 3884 62 0 62 62 0 8 0 uvmvnodes 72 4256 0 0 78 0 78 78 0 8 0 vnodes 200 4256 0 0 224 0 224 224 0 8 0 namei 1024 16591 0 16591 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 16654 0 16653 16 13 3 6 0 8 2 plimitpl 152 120 0 112 1 0 1 1 0 8 0 sigapl 432 1509 0 1494 3 1 2 3 0 8 0 futexpl 56 15475 0 15475 1 0 1 1 0 8 1 knotepl 112 280 0 261 1 0 1 1 0 8 0 kqueuepl 104 287 0 285 1 0 1 1 0 8 0 pipepl 112 936 0 917 3 2 1 2 0 8 0 fdescpl 488 1510 0 1494 3 0 3 3 0 8 0 filepl 152 8719 0 8619 8 3 5 6 0 8 0 lockfpl 104 552 0 552 2 1 1 1 0 8 1 lockfspl 48 187 0 187 2 1 1 1 0 8 1 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 30 0 19 1 0 1 1 0 8 0 ucredpl 96 1494 0 1485 1 0 1 1 0 8 0 zombiepl 144 1495 0 1494 2 1 1 1 0 8 0 processpl 896 1526 0 1494 4 0 4 4 0 8 0 procpl 632 4425 0 4383 5 0 5 5 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 15 0 15 5 5 0 1 0 8 0 sockpl 384 1192 0 1171 5 2 3 4 0 8 0 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 182 0 0 21 0 21 21 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 237 0 0 12 0 12 12 0 8 0 bufpl 256 9137 0 2108 440 0 440 440 0 8 0 anonpl 16 156488 0 144439 91 40 51 66 0 125 0 amapchunkpl 152 8719 0 8609 17 10 7 10 0 158 0 amappl16 192 7709 0 7044 81 46 35 46 0 8 0 amappl15 184 182 0 182 1 1 0 1 0 8 0 amappl14 176 241 0 235 1 0 1 1 0 8 0 amappl13 168 622 0 620 1 0 1 1 0 8 0 amappl12 160 478 0 474 1 0 1 1 0 8 0 amappl11 152 59 0 44 1 0 1 1 0 8 0 amappl10 144 84 0 80 1 0 1 1 0 8 0 amappl9 136 603 0 600 1 0 1 1 0 8 0 amappl8 128 169 0 149 1 0 1 1 0 8 0 amappl7 120 37 0 33 1 0 1 1 0 8 0 amappl6 112 59 0 52 1 0 1 1 0 8 0 amappl5 104 637 0 621 1 0 1 1 0 8 0 amappl4 96 1600 0 1567 2 1 1 2 0 8 0 amappl3 88 593 0 582 1 0 1 1 0 8 0 amappl2 80 11734 0 11660 3 1 2 3 0 8 0 amappl1 72 42449 0 42003 25 14 11 20 0 8 0 amappl 80 4696 0 4657 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 61 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1510 0 1494 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1510 0 1494 1 0 1 1 0 8 0 vmmpekpl 168 16184 0 16152 2 0 2 2 0 8 0 vmmpepl 168 190195 0 188392 158 73 85 100 0 357 2 vmsppl 368 1509 0 1494 2 0 2 2 0 8 0 pdppl 4096 3027 0 2988 7 1 6 6 0 8 0 pvpl 32 440032 0 424809 219 78 141 165 0 265 13 pmappl 232 1509 0 1494 2 1 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 608 0 6 18 0 18 18 0 8 0