panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 71747 23503 0 0x8000002 0 0 syz-executor 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(fffffd806c51c608,8,ffff80002a4a0f48) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c51c608,ffff80002a4a0f48) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80723df898,10205b1a,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002a5bf130) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc39,ffff80002a5bf218) 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(fffffd806c51c530,ffff80002a5bf498,ffff80002a5bf4c8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a5bf468) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002a5bf468) at namei+0x7aa sys/kern/vfs_lookup.c:250 dofstatat(ffff80002a4a0f48,ffffff9c,76695084f630,76695084fa30,2) at dofstatat+0xd2 sys/kern/vfs_syscalls.c:2070 syscall(ffff80002a5bf6e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76695084fae0, count: 1 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(fffffd806c51c608,8,ffff80002a4a0f48) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c51c608,ffff80002a4a0f48) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80723df898,10205b1a,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002a5bf130) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc39,ffff80002a5bf218) 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(fffffd806c51c530,ffff80002a5bf498,ffff80002a5bf4c8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a5bf468) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002a5bf468) at namei+0x7aa sys/kern/vfs_lookup.c:250 dofstatat(ffff80002a4a0f48,ffffff9c,76695084f630,76695084fa30,2) at dofstatat+0xd2 sys/kern/vfs_syscalls.c:2070 syscall(ffff80002a5bf6e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76695084fae0, count: -14 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5beeb0 rbx 0x100 rdx 0 rcx 0 rax 0xffff80002a4a0f48 r8 0x101010101010101 r9 0x8080808080808080 r10 0x45d509f60989e99c r11 0x305c668e8e31ff1d r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82c9cec5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5beea0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=71747 pid=23503 tcnt=1 stat=onproc flags process=8000002 proc=0 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4b4cb8,0xffff80002a4a0a48 process=0xffff80002a4e4ed0 user=0xffff80002a5ba000, vmspace=0xfffffd8072586970 estcpu=0, cpticks=0, pctcpu=0.0, user=1, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 41343 522820 83210 0 2 0x8000000 syz-executor 41343 28706 83210 0 2 0xc000000 syz-executor 27572 315269 58669 0 2 0x8000000 syz-executor 27572 421258 58669 0 3 0xc000080 fsleep syz-executor 77136 467849 30617 0 2 0x8000000 syz-executor 77136 459412 30617 0 3 0xc000080 fsleep syz-executor 1541 377570 565 0 2 0x8000000 syz-executor 1541 96753 565 0 3 0xc000080 fsleep syz-executor 45719 65334 0 0 3 0x14200 bored sosplice 565 382252 34733 0 3 0x8000082 nanoslp syz-executor *23503 71747 34733 0 7 0x8000002 syz-executor 83210 409390 34733 0 3 0x8000082 nanoslp syz-executor 58669 396988 34733 0 3 0x8000082 nanoslp syz-executor 955 152219 34733 0 2 0x8000002 syz-executor 30617 355211 34733 0 3 0x8000082 nanoslp syz-executor 22056 418510 34733 0 2 0x8000002 syz-executor 65552 487726 34733 0 3 0x8000002 biowait syz-executor 34733 323335 47282 0 3 0x8000082 kqread syz-executor 47282 267796 89126 0 3 0x810008a sigsusp ksh 89126 298761 26477 0 3 0x18000098 kqread sshd-session 26477 281237 14536 0 3 0x18000092 kqread sshd-session 28429 37465 1 0 3 0x18100083 ttyin getty 14536 106342 1 0 3 0x18000088 kqread sshd 76762 172895 22219 73 3 0x19100090 kqread syslogd 22219 332959 1 0 3 0x18100082 sbwait syslogd 29704 161189 1 0 3 0x18100080 kqread resolvd 51364 465224 67896 77 3 0x18100092 kqread dhcpleased 73615 356354 67896 77 3 0x18100092 kqread dhcpleased 67896 31464 1 0 3 0x18000080 kqread dhcpleased 21980 69193 0 0 3 0x14200 bored smr 23024 227658 0 0 2 0x14200 zerothread 7955 152993 0 0 3 0x14200 aiodoned aiodoned 14280 358495 0 0 3 0x14200 syncer update 73226 56172 0 0 3 0x14200 cleaner cleaner 69629 467095 0 0 3 0x14200 reaper reaper 57263 235979 0 0 3 0x14200 pgdaemon pagedaemon 64581 245848 0 0 3 0x14200 bored viomb 34715 202815 0 0 3 0x40014200 acpi0 acpi0 26374 329473 0 0 3 0x14200 bored softnet3 33816 298907 0 0 3 0x14200 bored softnet2 13180 75400 0 0 3 0x14200 bored softnet1 48683 421084 0 0 3 0x14200 bored softnet0 95689 355744 0 0 3 0x14200 bored systqmp 98290 276053 0 0 3 0x14200 bored systq 10504 337136 0 0 3 0x40014200 tmoslp softclock 56102 237931 0 0 3 0x40014200 idle0 1 507998 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 10175 10154K 10220K 166960K 11355 0 pcb 17 12K 12K 166960K 31 0 rtable 236 6K 6K 166960K 355 0 pf 29 8K 8K 166960K 29 0 ifaddr 43 11K 11K 166960K 45 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 2 0K 0K 166960K 2 0 counters 30 17K 17K 166960K 30 0 ioctlops 0 0K 4K 166960K 32 0 iov 0 0K 4K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1368 86K 86K 166960K 1406 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 8 0K 1K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 97K 166960K 168 0 proc 57 59K 91K 166960K 472 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 11 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 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 348 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 194 71K 76K 166960K 2954 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 35 70K 98K 166960K 1191 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 11 0K 1K 166960K 27 0 temp 36 6794K 6858K 166960K 3872 0 kqueue 13 20K 24K 166960K 32 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 40 0 37 1 0 1 1 0 8 0 rtentry 112 112 0 1 4 0 4 4 0 8 0 unpcb 144 64 0 49 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 808 90 0 84 8 0 8 8 0 8 7 arp 88 18 0 0 1 0 1 1 0 8 0 inpcb 352 175 0 164 7 0 7 7 0 8 5 nd6 104 25 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 460 0 0 29 0 29 29 0 8 0 art_table 32 461 0 0 4 0 4 4 0 8 0 art_node 16 111 0 10 1 0 1 1 0 8 0 semapl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1603 0 103 94 0 94 94 0 8 0 ffsino 240 1603 0 103 89 0 89 89 0 8 0 nchpl 144 1841 0 167 63 0 63 63 0 8 0 uvmvnodes 80 1732 0 0 36 0 36 36 0 8 0 vnodes 216 1732 0 0 97 0 97 97 0 8 0 namei 1024 5578 0 5576 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5183 0 5182 3 0 3 3 1 8 2 plimitpl 152 33 0 17 1 0 1 1 0 8 0 sigapl 424 449 0 406 7 0 7 7 0 8 1 futexpl 64 930 0 927 1 0 1 1 0 8 0 knotepl 120 3633 0 3586 5 0 5 5 0 8 3 kqueuepl 184 30 0 19 1 0 1 1 0 8 0 pipepl 288 110 0 83 3 0 3 3 0 8 1 fdescpl 432 432 0 406 5 0 5 5 0 8 1 filepl 120 1758 0 1512 10 0 10 10 0 8 2 lockfpl 104 22 0 20 1 0 1 1 0 8 0 lockfspl 48 12 0 10 1 0 1 1 0 8 0 sessionpl 144 21 0 13 1 0 1 1 0 8 0 pgrppl 48 30 0 14 1 0 1 1 0 8 0 ucredpl 104 131 0 120 1 0 1 1 0 8 0 zombiepl 144 406 0 406 1 0 1 1 0 8 1 processpl 1088 449 0 406 4 0 4 4 0 8 0 procpl 648 500 0 453 5 0 5 5 0 8 0 sockpl 504 282 0 253 13 0 13 13 0 8 8 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 4911 0 4814 31 10 21 31 0 8 8 mtagpl 96 10 0 10 1 0 1 1 0 8 1 mbufpl 256 6733 0 6540 16 0 16 16 0 8 3 bufpl 280 2197 0 90 151 0 151 151 0 8 0 anonpl 24 121333 0 118412 23 0 23 23 0 187 3 amapchunkpl 152 9318 0 8929 21 0 21 21 0 158 2 amappl16 200 2905 0 2892 5 0 5 5 0 8 4 amappl15 192 10 0 10 1 0 1 1 0 8 1 amappl14 184 107 0 97 1 0 1 1 0 8 0 amappl13 176 34 0 34 1 0 1 1 0 8 1 amappl12 168 1049 0 1023 3 0 3 3 0 8 1 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 0 1 1 0 8 1 amappl9 144 143 0 143 1 0 1 1 0 8 1 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 99 0 89 1 0 1 1 0 8 0 amappl6 120 159 0 158 1 0 1 1 0 8 0 amappl5 112 118 0 110 1 0 1 1 0 8 0 amappl4 104 284 0 269 1 0 1 1 0 8 0 amappl3 96 1835 0 1747 3 0 3 3 0 8 0 amappl2 88 587 0 532 2 0 2 2 0 8 0 amappl1 80 7556 0 7036 14 0 14 14 0 8 2 amappl 88 2614 0 2474 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 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 432 0 406 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 432 0 406 1 0 1 1 0 8 0 vmmpekpl 168 5478 0 5441 2 0 2 2 0 8 0 vmmpepl 168 34379 0 32812 79 0 79 79 0 357 3 vmsppl 344 431 0 406 4 0 4 4 0 8 1 rwobjpl 24 15292 0 12751 16 0 16 16 0 8 0 pdppl 4096 871 0 812 97 30 67 83 0 8 8 pvpl 32 241356 0 233600 73 0 73 73 0 265 1 pmappl 216 431 0 406 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 395 0 40 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(fffffd806c51c608,8,ffff80002a4a0f48) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c51c608,ffff80002a4a0f48) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80723df898,10205b1a,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002a5bf130) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc39,ffff80002a5bf218) 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(fffffd806c51c530,ffff80002a5bf498,ffff80002a5bf4c8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a5bf468) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002a5bf468) at namei+0x7aa sys/kern/vfs_lookup.c:250 dofstatat(ffff80002a4a0f48,ffffff9c,76695084f630,76695084fa30,2) at dofstatat+0xd2 sys/kern/vfs_syscalls.c:2070 syscall(ffff80002a5bf6e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76695084fae0, count: -14 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(fffffd806c51c608,8,ffff80002a4a0f48) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c51c608,ffff80002a4a0f48) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd80723df898,10205b1a,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002a5bf130) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc39,ffff80002a5bf218) 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(fffffd806c51c530,ffff80002a5bf498,ffff80002a5bf4c8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a5bf468) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002a5bf468) at namei+0x7aa sys/kern/vfs_lookup.c:250 dofstatat(ffff80002a4a0f48,ffffff9c,76695084f630,76695084fa30,2) at dofstatat+0xd2 sys/kern/vfs_syscalls.c:2070 syscall(ffff80002a5bf6e0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76695084fae0, count: -14