panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *339572 51472 0 0x8000000 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff830a8854) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80682f6b00,8,ffff80002a4d51d8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80682f6b00,ffff80002a4d51d8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80682f6950,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037480890) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,65be,ffff800037480978) at ffs_vget+0x421 sys/ufs/ffs/ffs_vfsops.c:1283 ufs_lookup() at ufs_lookup+0x16bc sys/ufs/ufs/ufs_lookup.c:573 VOP_LOOKUP(fffffd80682f65f0,ffff800037480dc8,ffff800037480df8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037480d98) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037480d98) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037480d98,207,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002a4d51d8,ffffff9c,20000180,206,0,ffff800037480f40) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037480ff0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 end trace frame: 0xffff800037481070, 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(ffffffff830a8854) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80682f6b00,8,ffff80002a4d51d8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80682f6b00,ffff80002a4d51d8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80682f6950,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037480890) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,65be,ffff800037480978) at ffs_vget+0x421 sys/ufs/ffs/ffs_vfsops.c:1283 ufs_lookup() at ufs_lookup+0x16bc sys/ufs/ufs/ufs_lookup.c:573 VOP_LOOKUP(fffffd80682f65f0,ffff800037480dc8,ffff800037480df8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037480d98) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037480d98) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037480d98,207,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002a4d51d8,ffffff9c,20000180,206,0,ffff800037480f40) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037480ff0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35f4c2a6030, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037480610 rbx 0x100 rdx 0xffff800001176500 rcx 0 rax 0xffff80002a4d51d8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa8eaf816e06e34e8 r11 0x7773f2585248cb43 r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82d5fbb5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037480600 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=339572 pid=51472 tcnt=3 stat=onproc flags process=8000000 proc=4000000 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d5970,0xffffffff83512778 process=0xffff80002a4e5310 user=0xffff80003747c000, vmspace=0xfffffd807e1da970 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 15316 369766 35493 0 2 0x8000010 syz-executor 15316 251165 35493 0 3 0xc000010 biowait syz-executor 51472 407802 16051 0 2 0x8000000 syz-executor 51472 5539 16051 0 3 0xc000080 sbwait syz-executor *51472 339572 16051 0 7 0xc000000 syz-executor 70883 367175 36073 0 2 0x8000000 syz-executor 70883 122909 36073 0 3 0xc000080 fsleep syz-executor 70883 113368 36073 0 3 0xc000080 fsleep syz-executor 28766 418367 27303 60929 3 0x8000090 nanoslp syz-executor 28766 408643 27303 60929 3 0xc000090 netacc syz-executor 28766 311374 27303 60929 3 0xc000090 fsleep syz-executor 28766 480700 27303 60929 3 0xc000090 fsleep syz-executor 73495 206496 68302 0 3 0x8000080 nanoslp syz-executor 73495 306130 68302 0 3 0xc000080 kqpoll syz-executor 73495 453228 68302 0 3 0xc000080 kqpoll syz-executor 73495 273399 68302 0 3 0xc000080 fsleep syz-executor 38362 184621 91386 0 3 0x8000080 nanoslp syz-executor 38362 363556 91386 0 3 0xc000080 ttyout syz-executor 38362 64159 91386 0 3 0xc000080 ttyout syz-executor 20894 280182 0 0 3 0x14200 acct acct 35493 307226 74904 0 3 0x8000082 nanoslp syz-executor 88258 440727 74904 0 2 0x8000002 syz-executor 68302 232283 74904 0 3 0x8000082 nanoslp syz-executor 16051 88561 74904 0 3 0x8000082 nanoslp syz-executor 36073 519486 74904 0 3 0x8000082 nanoslp syz-executor 63402 360370 74904 0 3 0x8000082 nanoslp syz-executor 91386 71214 74904 0 3 0x8000082 nanoslp syz-executor 27303 4471 74904 0 3 0x8000082 nanoslp syz-executor 99575 320174 0 0 3 0x14200 bored sosplice 74904 39361 96228 0 3 0x8000082 kqread syz-executor 96228 247884 16422 0 3 0x810008a sigsusp ksh 16422 209911 87434 0 3 0x18000098 kqread sshd-session 87434 415922 79514 0 3 0x18000092 kqread sshd-session 66018 391646 1 0 3 0x18100083 ttyin getty 79514 377812 1 0 3 0x18000088 kqread sshd 98199 326394 70220 73 3 0x19100010 biowait syslogd 70220 96875 1 0 3 0x18100082 sbwait syslogd 34601 180411 1 0 3 0x18100080 kqread resolvd 97067 279124 239 77 3 0x18100092 kqread dhcpleased 75380 448370 239 77 3 0x18100092 kqread dhcpleased 239 363101 1 0 3 0x18000080 kqread dhcpleased 1720 219431 0 0 3 0x14200 bored smr 79675 204487 0 0 2 0x14200 zerothread 37238 404217 0 0 3 0x14200 aiodoned aiodoned 90057 249774 0 0 3 0x14200 syncer update 31358 383393 0 0 3 0x14200 cleaner cleaner 18563 87148 0 0 3 0x14200 reaper reaper 79013 437787 0 0 3 0x14200 pgdaemon pagedaemon 55006 442249 0 0 3 0x14200 bored viomb 91600 361151 0 0 3 0x40014200 acpi0 acpi0 41645 343059 0 0 3 0x14200 bored softnet3 81269 142701 0 0 3 0x14200 bored softnet2 95995 41271 0 0 3 0x14200 bored softnet1 87785 291882 0 0 3 0x14200 bored softnet0 13716 102477 0 0 3 0x14200 bored systqmp 97292 281586 0 0 3 0x14200 bored systq 95888 293669 0 0 3 0x40014200 tmoslp softclock 34618 231597 0 0 3 0x40014200 idle0 1 189804 0 0 3 0x8080082 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 10216 10223K 10514K 166960K 12160 0 pcb 17 14K 16K 166960K 108 0 rtable 229 7K 10K 166960K 698 0 pf 30 9K 12K 166960K 116 0 ifaddr 42 11K 11K 166960K 89 0 ifgroup 50 2K 2K 166960K 106 0 sysctl 2 0K 2K 166960K 3 0 counters 30 17K 17K 166960K 48 0 ioctlops 0 0K 4K 166960K 77 0 iov 0 0K 16K 166960K 60 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1438 90K 91K 166960K 1948 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 30 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 29 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 97K 166960K 637 0 sigio 0 0K 0K 166960K 5 0 proc 58 59K 116K 166960K 729 0 subproc 104 6K 6K 166960K 208 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 52 0 in_multi 95 7K 7K 166960K 212 0 ether_multi 1 0K 0K 166960K 5 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 508 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 233 74K 91K 166960K 6868 0 UVM aobj 20 6K 6K 166960K 21 0 pinsyscall 38 76K 100K 166960K 1868 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 20 0 NDP 11 0K 2K 166960K 61 0 temp 63 6804K 6931K 166960K 15539 0 kqueue 16 26K 28K 166960K 89 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 108 0 104 1 0 1 1 0 8 0 rtentry 112 212 0 107 4 0 4 4 0 8 0 unpcb 144 513 0 494 6 0 6 6 0 8 5 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 808 307 0 301 11 2 9 11 0 8 8 arp 88 37 0 19 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 336 928 0 918 10 1 9 10 0 8 7 nd6 104 52 0 29 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 0 1 1 0 8 1 kcovpl 48 16 0 8 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 0 1 1 0 8 1 pfrktable 1344 31 0 29 1 0 1 1 0 8 0 pfanchor 1288 2 0 1 1 0 1 1 0 8 0 pftag 88 16 0 14 1 0 1 1 0 8 0 pfrule 1344 11 0 9 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 820 0 382 29 0 29 29 0 8 0 art_table 32 821 0 382 4 0 4 4 0 8 0 art_node 16 210 0 115 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 1 0 1 1 0 8 0 semupl 112 3 0 3 1 0 1 1 0 8 1 semapl 112 25 0 15 1 0 1 1 0 8 0 shmpl 112 18 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2314 0 798 96 0 96 96 0 8 0 ffsino 240 2314 0 798 90 0 90 90 0 8 0 nchpl 144 3124 0 1434 64 0 64 64 0 8 1 uvmvnodes 80 2842 0 0 58 0 58 58 0 8 0 vnodes 216 2842 0 0 158 0 158 158 0 8 0 namei 1024 11513 0 11511 2 0 2 2 0 8 1 vcpupl 3904 1 0 0 1 0 1 1 0 8 0 vmpool 664 2 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 9 0 7 1 0 1 1 0 8 0 kstatmem 264 58 0 36 2 0 2 2 0 8 0 scxspl 216 16797 0 16795 8 0 8 8 1 8 7 plimitpl 152 227 0 209 1 0 1 1 0 8 0 sigapl 424 903 0 856 7 0 7 7 0 8 1 futexpl 64 8509 0 8504 1 0 1 1 0 8 0 knotepl 120 15816 0 15767 4 0 4 4 0 8 2 kqueuepl 184 257 0 243 4 0 4 4 0 8 3 pipepl 288 176 0 149 3 0 3 3 0 8 1 fdescpl 432 885 0 856 5 0 5 5 0 8 1 filepl 120 6302 0 6037 15 0 15 15 0 8 6 lockfpl 104 229 0 227 1 0 1 1 0 8 0 lockfspl 48 72 0 70 1 0 1 1 0 8 0 sessionpl 144 29 0 21 1 0 1 1 0 8 0 pgrppl 48 83 0 67 1 0 1 1 0 8 0 ucredpl 104 697 0 683 1 0 1 1 0 8 0 zombiepl 144 857 0 856 1 0 1 1 0 8 0 processpl 1088 903 0 856 4 0 4 4 0 8 0 procpl 648 1485 0 1425 6 0 6 6 0 8 0 sosppl 168 5 0 5 1 0 1 1 0 8 1 sockpl 504 1558 0 1525 26 14 12 21 0 8 7 mcl64k 65536 4 0 4 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 37 0 37 1 0 1 1 0 8 1 mcl4k 4096 10 0 10 1 0 1 1 0 8 1 mcl2k 2048 6297 0 6193 27 7 20 27 0 8 6 mtagpl 96 13 0 7 1 0 1 1 0 8 0 mbufpl 256 12304 0 12088 14 0 14 14 0 8 0 bufpl 280 6741 0 496 447 0 447 447 0 8 0 anonpl 24 220981 0 212793 51 0 51 51 0 187 0 amapchunkpl 152 23688 0 22910 40 0 40 40 0 158 8 amappl16 200 5391 0 5360 14 4 10 14 0 8 8 amappl15 192 11 0 11 1 0 1 1 0 8 1 amappl14 184 126 0 116 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 0 1 1 0 8 1 amappl12 168 1626 0 1597 3 0 3 3 0 8 1 amappl11 160 56 0 46 1 0 1 1 0 8 0 amappl10 152 17 0 17 1 0 1 1 0 8 1 amappl9 144 128 0 127 1 0 1 1 0 8 0 amappl8 136 21 0 20 1 0 1 1 0 8 0 amappl7 128 113 0 103 1 0 1 1 0 8 0 amappl6 120 261 0 259 1 0 1 1 0 8 0 amappl5 112 157 0 149 1 0 1 1 0 8 0 amappl4 104 304 0 288 1 0 1 1 0 8 0 amappl3 96 4580 0 4462 4 0 4 4 0 8 0 amappl2 88 717 0 660 2 0 2 2 0 8 0 amappl1 80 9410 0 8870 14 0 14 14 0 8 1 amappl 88 6443 0 6265 5 0 5 5 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 7 0 7 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 20 0 1 1 0 1 1 0 8 0 uaddrrnd 24 887 0 857 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 887 0 857 1 0 1 1 0 8 0 vmmpekpl 168 8467 0 8403 3 0 3 3 0 8 0 vmmpepl 168 62478 0 60697 90 0 90 90 0 357 9 vmsppl 344 886 0 857 4 0 4 4 0 8 1 rwobjpl 24 24177 0 20433 23 0 23 23 0 8 0 pdppl 4096 1780 0 1715 110 43 67 82 0 8 2 pvpl 32 550543 0 524149 223 0 223 223 0 265 6 pmappl 216 886 0 857 3 0 3 3 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 434 0 67 12 0 12 12 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(ffffffff830a8854) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80682f6b00,8,ffff80002a4d51d8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80682f6b00,ffff80002a4d51d8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80682f6950,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037480890) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,65be,ffff800037480978) at ffs_vget+0x421 sys/ufs/ffs/ffs_vfsops.c:1283 ufs_lookup() at ufs_lookup+0x16bc sys/ufs/ufs/ufs_lookup.c:573 VOP_LOOKUP(fffffd80682f65f0,ffff800037480dc8,ffff800037480df8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037480d98) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037480d98) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037480d98,207,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002a4d51d8,ffffff9c,20000180,206,0,ffff800037480f40) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037480ff0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35f4c2a6030, 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(ffffffff830a8854) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd80682f6b00,8,ffff80002a4d51d8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd80682f6b00,ffff80002a4d51d8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80682f6950,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037480890) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,65be,ffff800037480978) at ffs_vget+0x421 sys/ufs/ffs/ffs_vfsops.c:1283 ufs_lookup() at ufs_lookup+0x16bc sys/ufs/ufs/ufs_lookup.c:573 VOP_LOOKUP(fffffd80682f65f0,ffff800037480dc8,ffff800037480df8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037480d98) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037480d98) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037480d98,207,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002a4d51d8,ffffff9c,20000180,206,0,ffff800037480f40) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037480ff0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35f4c2a6030, count: -15