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(fffffd8068a5a618,8,ffff80002a491458) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8068a5a618,ffff80002a491458) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd8068a4a950) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff800035c077a0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd8068a4a950,1,fffffd807f7d7680,ffff80002a491458) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd8079ef92e8,ffff80002a491458) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd8079ef92e8,ffff80002a491458) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a491458) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a491458,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a491458,ffff800035c07b20,ffff800035c07a70) at sys_exit+0x1a syscall(ffff800035c07b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 end trace frame: 0xffff800035c07ba0, 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> ddb> set $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(fffffd8068a5a618,8,ffff80002a491458) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8068a5a618,ffff80002a491458) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd8068a4a950) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff800035c077a0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd8068a4a950,1,fffffd807f7d7680,ffff80002a491458) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd8079ef92e8,ffff80002a491458) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd8079ef92e8,ffff80002a491458) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a491458) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a491458,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a491458,ffff800035c07b20,ffff800035c07a70) at sys_exit+0x1a syscall(ffff800035c07b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7eb3ceb29330, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800035c07560 rbx 0x100 rdx 0 rcx 0 rax 0xffff80002a491458 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7b7d25857bae4e7 r11 0x443645caa0f70a1a r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82c9cec5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800035c07550 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=204563 pid=97034 tcnt=0 stat=onproc flags process=8001008 proc=2000 runpri=17, usrpri=67, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a491458 scnt=-1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a491968,0xffff800037624030 process=0xffff80003760e458 user=0xffff800035c02000, vmspace=0xfffffd806c26a978 estcpu=17, cpticks=12, pctcpu=0.6, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 893 363209 80715 0 3 0x8000000 fltagain2 syz-executor 893 140702 80715 0 3 0xc000000 fltagain2 syz-executor 893 523203 80715 0 3 0xc000000 bqwait syz-executor 893 268607 80715 0 3 0xc000000 fdlock syz-executor 893 441054 80715 0 3 0xc000080 fsleep syz-executor 4089 67697 60238 0 3 0x8000080 nanoslp syz-executor 4089 40113 60238 0 3 0xc000080 msgwait syz-executor 4089 261382 60238 0 3 0xc000080 fsleep syz-executor 4089 299177 60238 0 3 0xc000080 fsleep syz-executor 80715 251959 58793 0 3 0x8000082 nanoslp syz-executor 66893 81997 58793 0 2 0x8000082 syz-executor 35895 255231 58793 0 3 0x8000082 nanoslp syz-executor 10255 467575 58793 0 2 0x8000002 syz-executor 60238 65089 58793 0 3 0x8000082 nanoslp syz-executor 52478 253985 58793 0 2 0x8000002 syz-executor 63145 277911 58793 0 2 0x8000082 syz-executor 14871 167912 58793 0 2 0x8000002 syz-executor 58793 478665 11324 0 3 0x8000082 kqread syz-executor 11324 79428 7003 0 3 0x810008a sigsusp ksh 7003 198079 52924 0 3 0x18000098 kqread sshd-session 52924 288611 24594 0 3 0x18000092 kqread sshd-session 29110 211115 1 0 3 0x18100083 ttyin getty 24594 417837 1 0 3 0x18000088 kqread sshd 33995 391681 9146 73 3 0x19100090 kqread syslogd 9146 314732 1 0 3 0x18100082 sbwait syslogd 21107 412160 1 0 3 0x18100080 kqread resolvd 20002 4186 60690 77 3 0x18100092 kqread dhcpleased 30611 316815 60690 77 3 0x18100092 kqread dhcpleased 60690 399945 1 0 3 0x18000080 kqread dhcpleased 36670 72463 0 0 3 0x14200 bored smr 24269 506995 0 0 2 0x14200 zerothread 6222 453659 0 0 3 0x14200 aiodoned aiodoned 1490 385551 0 0 3 0x14200 syncer update 3762 414351 0 0 3 0x14200 cleaner cleaner 48736 384065 0 0 3 0x14200 reaper reaper 89322 217254 0 0 3 0x14200 pgdaemon pagedaemon 79440 49999 0 0 3 0x14200 bored viomb 63975 446335 0 0 3 0x40014200 acpi0 acpi0 75219 275988 0 0 3 0x14200 bored softnet3 23058 78687 0 0 3 0x14200 bored softnet2 2879 143730 0 0 3 0x14200 bored softnet1 18669 391498 0 0 3 0x14200 bored softnet0 40292 85703 0 0 3 0x14200 bored systqmp 28241 16554 0 0 3 0x14200 bored systq 56119 271169 0 0 3 0x40014200 tmoslp softclock 54677 297259 0 0 3 0x40014200 idle0 1 207408 0 0 3 0x8000082 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 devbuf 10168 10082K 10502K 166960K 11409 0 pcb 18 12K 12K 166960K 33 0 rtable 241 7K 7K 166960K 367 0 pf 29 8K 9K 166960K 40 0 ifaddr 43 11K 11K 166960K 47 0 ifgroup 50 2K 2K 166960K 57 0 sysctl 2 0K 0K 166960K 2 0 counters 30 17K 17K 166960K 32 0 ioctlops 0 0K 4K 166960K 36 0 iov 0 0K 1K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1437 90K 90K 166960K 1477 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 13 45K 97K 166960K 160 0 sigio 0 0K 0K 166960K 2 0 proc 56 58K 108K 166960K 471 0 subproc 104 6K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1 0 in_multi 99 7K 7K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 2K 166960K 346 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 205 80K 81K 166960K 2955 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 34 68K 104K 166960K 1173 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 13 0K 2K 166960K 29 0 temp 43 6795K 6859K 166960K 5243 0 kqueue 13 20K 24K 166960K 24 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 39 0 36 1 0 1 1 0 8 0 rtentry 112 117 0 4 4 0 4 4 0 8 0 unpcb 144 85 0 61 2 0 2 2 0 8 0 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 13 0 8 1 0 1 1 0 8 0 arp 88 19 0 1 1 0 1 1 0 8 0 inpcb 352 89 0 76 2 0 2 2 0 8 0 nd6 104 27 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pfrktable 1344 2 0 2 1 0 1 1 0 8 1 pftag 88 4 0 4 1 0 1 1 0 8 1 pfrule 1344 3 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 475 0 2 30 0 30 30 0 8 0 art_table 32 476 0 2 4 0 4 4 0 8 0 art_node 16 116 0 13 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1588 0 84 95 0 95 95 0 8 0 ffsino 240 1588 0 84 89 0 89 89 0 8 0 nchpl 144 1810 0 129 63 0 63 63 0 8 0 uvmvnodes 80 1791 0 0 37 0 37 37 0 8 0 vnodes 216 1791 0 0 100 0 100 100 0 8 0 namei 1024 5395 0 5395 2 0 2 2 0 8 2 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 6036 0 5911 8 0 8 8 1 8 0 plimitpl 152 32 0 15 1 0 1 1 0 8 0 sigapl 424 437 0 394 7 0 7 7 0 8 2 futexpl 64 744 0 741 1 0 1 1 0 8 0 knotepl 120 3606 0 3559 2 0 2 2 0 8 0 kqueuepl 184 26 0 17 1 0 1 1 0 8 0 pipepl 288 104 0 76 3 0 3 3 0 8 0 fdescpl 432 421 0 396 5 0 5 5 0 8 1 filepl 120 1602 0 1342 10 0 10 10 0 8 1 lockfpl 104 23 0 20 1 0 1 1 0 8 0 lockfspl 48 13 0 10 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 29 0 13 1 0 1 1 0 8 0 ucredpl 104 87 0 76 1 0 1 1 0 8 0 zombiepl 144 397 0 394 1 0 1 1 0 8 0 processpl 1088 437 0 394 4 0 4 4 0 8 0 procpl 648 493 0 443 5 0 5 5 0 8 0 sockpl 504 214 0 174 6 0 6 6 0 8 0 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 8 0 8 1 0 1 1 0 8 1 mcl4k 4096 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 4907 0 4811 27 6 21 27 0 8 6 mtagpl 96 8 0 7 1 0 1 1 0 8 0 mbufpl 256 6723 0 6525 18 0 18 18 0 8 0 bufpl 280 3109 0 90 216 0 216 216 0 8 0 anonpl 24 165416 0 156995 52 0 52 52 0 187 0 amapchunkpl 152 10110 0 9571 23 0 23 23 0 158 0 amappl16 200 4705 0 4483 12 0 12 12 0 8 0 amappl15 192 11 0 11 1 0 1 1 0 8 1 amappl14 184 121 0 111 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 0 1 1 0 8 1 amappl12 168 1027 0 1002 3 0 3 3 0 8 1 amappl11 160 53 0 42 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 0 1 1 0 8 1 amappl9 144 133 0 133 1 0 1 1 0 8 1 amappl8 136 27 0 26 1 0 1 1 0 8 0 amappl7 128 95 0 85 1 0 1 1 0 8 0 amappl6 120 164 0 163 1 0 1 1 0 8 0 amappl5 112 126 0 118 1 0 1 1 0 8 0 amappl4 104 290 0 276 1 0 1 1 0 8 0 amappl3 96 1847 0 1758 3 0 3 3 0 8 0 amappl2 88 587 0 529 2 0 2 2 0 8 0 amappl1 80 7523 0 6994 14 0 14 14 0 8 2 amappl 88 2615 0 2466 4 0 4 4 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 421 0 396 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 421 0 396 1 0 1 1 0 8 0 vmmpekpl 168 5388 0 5353 2 0 2 2 0 8 0 vmmpepl 168 36030 0 34251 82 0 82 82 0 357 0 vmsppl 344 420 0 396 4 0 4 4 0 8 1 rwobjpl 24 17172 0 14330 18 0 18 18 0 8 0 pdppl 4096 849 0 792 97 20 77 83 0 8 20 pvpl 32 283198 0 270023 112 0 112 112 0 265 0 pmappl 216 420 0 396 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 383 0 26 11 0 11 11 0 8 0 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(fffffd8068a5a618,8,ffff80002a491458) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8068a5a618,ffff80002a491458) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd8068a4a950) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff800035c077a0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd8068a4a950,1,fffffd807f7d7680,ffff80002a491458) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd8079ef92e8,ffff80002a491458) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd8079ef92e8,ffff80002a491458) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a491458) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a491458,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a491458,ffff800035c07b20,ffff800035c07a70) at sys_exit+0x1a syscall(ffff800035c07b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7eb3ceb29330, count: -15 ddb> machine 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(fffffd8068a5a618,8,ffff80002a491458) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8068a5a618,ffff80002a491458) at vgonel+0xec sys/kern/vfs_subr.c:1197 vcount(fffffd8068a4a950) at vcount+0x170 sys/kern/vfs_subr.c:1298 spec_close(ffff800035c077a0) at spec_close+0xb8 sys/kern/spec_vnops.c:480 VOP_CLOSE(fffffd8068a4a950,1,fffffd807f7d7680,ffff80002a491458) at VOP_CLOSE+0x12a sys/kern/vfs_vops.c:156 vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:292 [inline] vn_closefile(fffffd8079ef92e8,ffff80002a491458) at vn_closefile+0x11d sys/kern/vfs_vnops.c:609 fdrop(fffffd8079ef92e8,ffff80002a491458) at fdrop+0x126 sys/kern/kern_descrip.c:1274 closef(fffffd8079ef92e8,ffff80002a491458) at closef+0x18d sys/kern/kern_descrip.c:1258 fdfree(ffff80002a491458) at fdfree+0x115 sys/kern/kern_descrip.c:1190 exit1(ffff80002a491458,0,0,1) at exit1+0x6db sys/kern/kern_exit.c:221 sys_exit(ffff80002a491458,ffff800035c07b20,ffff800035c07a70) at sys_exit+0x1a syscall(ffff800035c07b20) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7eb3ceb29330, count: -15