panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a8629) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80768897a8,8,ffff80002a45b6d0) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80768897a8,ffff80002a45b6d0) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd80768891c0) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff80002a5ad8c0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd80768891c0,1,fffffd807f7d7820,ffff80002a45b6d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd806cc80180,ffff80002a45b6d0) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd806cc80180,ffff80002a45b6d0) at closef+0x18d sys/kern/kern_descrip.c:1258 --db_more-- fdfree(ffff80002a45b6d0) at fdfree+0x115 sys/kern/kern_descrip.c:1190 --db_more-- exit1(ffff80002a45b6d0,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 --db_more-- sys_exit(ffff80002a45b6d0,ffff80002a5adc40,ffff80002a5adb90) at sys_exit+0x1a --db_more-- syscall(ffff80002a5adc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 --db_more-- end trace frame: 0xffff80002a5adcc0, count: 0 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> $lines = 0 ? ddb> set $maxwidth = 0 ddb> show panic *cpu0: vclean: deadlock ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a8629) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80768897a8,8,ffff80002a45b6d0) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80768897a8,ffff80002a45b6d0) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd80768891c0) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff80002a5ad8c0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd80768891c0,1,fffffd807f7d7820,ffff80002a45b6d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd806cc80180,ffff80002a45b6d0) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd806cc80180,ffff80002a45b6d0) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a45b6d0) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a45b6d0,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a45b6d0,ffff80002a5adc40,ffff80002a5adb90) at sys_exit+0x1a --db_more-- syscall(ffff80002a5adc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 --db_more-- Xsyscall() at Xsyscall+0x128 --db_more-- end of kernel --db_more-- end trace frame: 0x75cf72ee37f0, count: -15 ddb> registers No such command ddb> show proc PROC (syz-executor) tid=53609 pid=68707 tcnt=0 stat=onproc flags process=8001018 proc=2000 runpri=32, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a45b6d0 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a4d6f50,0xffff80002a4b42a8 process=0xffff80003420fdd8 user=0xffff80002a5a8000, vmspace=0xfffffd806c1e1ad8 estcpu=28, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 40923 201050 1361 0 2 0x8000000 syz-executor 40923 418336 1361 0 2 0xc000000 syz-executor 40923 311012 1361 0 3 0xc000080 kqpoll syz-executor 66959 172029 55147 0 2 0x8000000 syz-executor 66959 469354 55147 0 2 0xc000000 syz-executor 25449 438111 33458 0 2 0x8081000 syz-executor 25449 157920 33458 0 3 0xc003000 suspend syz-executor 91587 433298 0 0 3 0x14200 acct acct 55147 102906 90514 0 3 0x8000082 nanoslp syz-executor 73341 354388 90514 0 3 0x8000082 nanoslp syz-executor 81048 500973 90514 0 3 0x8000002 biowait syz-executor 67133 488387 90514 0 3 0x8000002 getblk syz-executor --db_more--  1361 334284 90514 0 3 0x8000082 nanoslp syz-executor --db_more--  44595 191799 90514 0 3 0x8000002 getblk syz-executor --db_more--  9961 436281 90514 0 3 0x8000002 getblk syz-executor --db_more--  33458 214258 90514 0 3 0x8000082 wait syz-executor --db_more--  17320 143340 0 0 3 0x14280 nfsidl nfsio 16326 220339 0 0 3 0x14280 nfsidl nfsio 79260 290863 0 0 3 0x14280 nfsidl nfsio 52019 154257 0 0 3 0x14280 nfsidl nfsio 20062 100843 0 0 3 0x14280 nfsidl nfsio 92292 258693 0 0 3 0x14280 nfsidl nfsio 96561 291648 0 0 3 0x14280 nfsidl nfsio 20315 325056 0 0 3 0x14280 nfsidl nfsio 5734 339102 0 0 3 0x14280 nfsidl nfsio 21354 307183 0 0 3 0x14280 nfsidl nfsio 52893 460186 0 0 3 0x14280 nfsidl nfsio 27658 295355 0 0 3 0x14280 nfsidl nfsio 6983 10779 0 0 3 0x14280 nfsidl nfsio 26374 260852 0 0 3 0x14280 nfsidl nfsio --db_more--  11899 61679 0 0 3 0x14280 nfsidl nfsio --db_more--  8183 241011 0 0 3 0x14280 nfsidl nfsio --db_more--  46914 296211 0 0 3 0x14280 nfsidl nfsio --db_more--  93073 232666 0 0 3 0x14280 nfsidl nfsio 85080 508987 0 0 3 0x14280 nfsidl nfsio 89477 445019 0 0 3 0x14280 nfsidl nfsio 86285 97496 0 0 3 0x14200 bored sosplice 90514 189170 59479 0 3 0x8000082 kqread syz-executor 59479 412127 13279 0 3 0x810008a sigsusp ksh 13279 70963 12476 0 3 0x18000098 kqread sshd-session 12476 101167 79997 0 3 0x18000092 kqread sshd-session 23360 279613 1 0 3 0x18100083 ttyin getty 79997 453808 1 0 3 0x18000088 kqread sshd 79093 418802 24700 73 3 0x19100010 biowait syslogd 24700 104276 1 0 3 0x18100082 sbwait syslogd 62393 308075 1 0 3 0x18100080 kqread resolvd 74869 39429 60493 77 3 0x18100092 kqread dhcpleased --db_more--  48392 413194 60493 77 3 0x18100092 kqread dhcpleased --db_more--  60493 397298 1 0 3 0x18000080 kqread dhcpleased --db_more-- ddb> ks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10217 10238K 10673K 166960K 13855 0 pcb 17 18K 20K 166960K 358 0 rtable 226 9K 9K 166960K 3212 0 pf 35 10K 13K 166960K 333 0 ifaddr 45 12K 12K 166960K 425 0 ifgroup 58 2K 2K 166960K 466 0 sysctl 3 0K 0K 166960K 3 0 counters 32 17K 17K 166960K 136 0 ioctlops 0 0K 4K 166960K 488 0 iov 0 0K 28K 166960K 112 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 --db_more--  vnodes 1494 94K 94K 166960K 3874 0 --db_more--  UFS quota 1 32K 32K 166960K 1 0 --db_more--  UFS mount 5 36K 36K 166960K 5 0 --db_more--  shm 2 1K 9K 166960K 36 0 --db_more--  VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 85 0 dirhash 15 2K 3K 166960K 36 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 93K 166960K 2319 0 sigio 0 0K 0K 166960K 29 0 proc 58 59K 108K 166960K 3015 0 subproc 104 6K 6K 166960K 1261 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 123 0 in_multi 99 7K 7K 166960K 1106 0 ether_multi 1 0K 0K 166960K 6 0 mrt 1 0K 0K 166960K 2 0 --db_more--  ISOFS mount 1 32K 32K 166960K 1 0 --db_more--  MSDOSFS mount 1 16K 16K 166960K 1 0 --db_more--  ttys 235 1049K 1049K 166960K 235 0 --db_more--  exec 0 0K 1K 166960K 1834 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 189 72K 103K 166960K 17705 0 UVM aobj 54 5K 5K 166960K 61 0 pinsyscall 35 70K 102K 166960K 5646 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 56 0 NDP 13 0K 2K 166960K 312 0 temp 75 6808K 6934K 166960K 89441 0 kqueue 14 22K 28K 166960K 154 0 SYN cache 2 16K 16K 166960K 2 0 ddb> pools No such command ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a8629) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80768897a8,8,ffff80002a45b6d0) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80768897a8,ffff80002a45b6d0) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd80768891c0) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff80002a5ad8c0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd80768891c0,1,fffffd807f7d7820,ffff80002a45b6d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd806cc80180,ffff80002a45b6d0) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd806cc80180,ffff80002a45b6d0) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a45b6d0) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a45b6d0,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a45b6d0,ffff80002a5adc40,ffff80002a5adb90) at sys_exit+0x1a --db_more-- syscall(ffff80002a5adc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 --db_more-- Xsyscall() at Xsyscall+0x128 --db_more-- ddb> hine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a8629) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80768897a8,8,ffff80002a45b6d0) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80768897a8,ffff80002a45b6d0) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd80768891c0) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff80002a5ad8c0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd80768891c0,1,fffffd807f7d7820,ffff80002a45b6d0) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd806cc80180,ffff80002a45b6d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd806cc80180,ffff80002a45b6d0) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd806cc80180,ffff80002a45b6d0) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a45b6d0) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a45b6d0,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a45b6d0,ffff80002a5adc40,ffff80002a5adb90) at sys_exit+0x1a