panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *187615 57051 0 0x8000000 0x4000000 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(fffffd806c370bf8,8,ffff80002a4d5970) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c370bf8,ffff80002a4d5970) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8079a1adb0,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037643330) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc3a,ffff800037643418) 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(fffffd8079a1a7c8,ffff800037643868,ffff800037643898) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037643838) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037643838) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037643838,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a4d5970,ffffff9c,20000100,0,0,ffff8000376439e0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037643a90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 end trace frame: 0xffff800037643b10, 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(fffffd806c370bf8,8,ffff80002a4d5970) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c370bf8,ffff80002a4d5970) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8079a1adb0,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037643330) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc3a,ffff800037643418) 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(fffffd8079a1a7c8,ffff800037643868,ffff800037643898) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037643838) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037643838) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037643838,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a4d5970,ffffff9c,20000100,0,0,ffff8000376439e0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037643a90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4c4050f9b60, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000376430b0 rbx 0x100 rdx 0xffff8000011847c0 rcx 0 rax 0xffff80002a4d5970 r8 0x101010101010101 r9 0x8080808080808080 r10 0x133d6d8c3c7a92c r11 0x26f383b6b97061df r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82c9cec5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000376430a0 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=187615 pid=57051 tcnt=2 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=0xffff80002a4d4cc8,0xffff80002a4d4a50 process=0xffff800034210ed8 user=0xffff80003763e000, vmspace=0xfffffd806c23a010 estcpu=0, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 61052 90866 3400 0 3 0x8000080 fsleep syz-executor 61052 229196 3400 0 2 0xc000000 syz-executor 57051 71193 37355 0 3 0x8000080 fsleep syz-executor *57051 187615 37355 0 7 0xc000000 syz-executor 25914 23706 20072 0 3 0x8000080 fsleep syz-executor 25914 342173 20072 0 3 0xc000080 kqsel syz-executor 25914 72701 20072 0 3 0xc000080 fsleep syz-executor 35729 412512 4344 0 3 0x8000080 fsleep syz-executor 35729 228557 4344 0 3 0xc000080 msgwait syz-executor 52094 497893 9119 0 3 0x8000080 nanoslp syz-executor 52094 515095 9119 0 3 0xc000080 sbwait syz-executor 52094 342254 9119 0 3 0xc000080 fsleep syz-executor 52094 123318 9119 0 3 0xc000080 fsleep syz-executor 35163 170294 85722 0 2 0x8000002 syz-executor 3400 205309 85722 0 3 0x8000082 nanoslp syz-executor 37355 16216 85722 0 3 0x8000082 nanoslp syz-executor 4344 31831 85722 0 3 0x8000082 nanoslp syz-executor 9119 379583 85722 0 3 0x8000082 nanoslp syz-executor 20072 418980 85722 0 3 0x8000082 nanoslp syz-executor 42809 461198 85722 0 3 0x8000002 biowait syz-executor 53493 495206 85722 0 2 0x8000082 syz-executor 85722 364543 82718 0 3 0x8000082 kqread syz-executor 82718 192411 22884 0 3 0x810008a sigsusp ksh 22884 402714 13689 0 3 0x18000098 kqread sshd-session 13689 480120 52425 0 3 0x18000092 kqread sshd-session 73138 282768 1 0 3 0x18100083 ttyin getty 52425 358583 1 0 3 0x18000088 kqread sshd 44102 334604 67955 73 3 0x19100090 kqread syslogd 67955 433909 1 0 3 0x18100082 sbwait syslogd 62677 128226 1 0 3 0x18100080 kqread resolvd 49708 82865 97414 77 3 0x18100092 kqread dhcpleased 20104 249211 97414 77 3 0x18100092 kqread dhcpleased 97414 439642 1 0 3 0x18000080 kqread dhcpleased 54465 340775 0 0 3 0x14200 bored smr 24728 407976 0 0 2 0x14200 zerothread 19743 277653 0 0 3 0x14200 aiodoned aiodoned 26022 186134 0 0 3 0x14200 syncer update 11401 467463 0 0 3 0x14200 cleaner cleaner 51456 431989 0 0 3 0x14200 reaper reaper 78755 503229 0 0 3 0x14200 pgdaemon pagedaemon 70407 132906 0 0 3 0x14200 bored viomb 61596 386446 0 0 3 0x40014200 acpi0 acpi0 41697 359026 0 0 3 0x14200 bored softnet3 87636 117964 0 0 3 0x14200 bored softnet2 52261 449446 0 0 3 0x14200 bored softnet1 23117 54028 0 0 3 0x14200 bored softnet0 43135 511530 0 0 3 0x14200 bored systqmp 55547 152543 0 0 3 0x14200 bored systq 85655 124439 0 0 3 0x40014200 tmoslp softclock 89302 441111 0 0 3 0x40014200 idle0 1 196011 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 10170 10082K 10470K 166960K 11512 0 pcb 19 14K 16K 166960K 105 0 rtable 234 6K 6K 166960K 351 0 pf 29 8K 8K 166960K 29 0 ifaddr 43 11K 11K 166960K 45 0 ifgroup 50 2K 2K 166960K 50 0 counters 30 17K 17K 166960K 30 0 ioctlops 0 0K 4K 166960K 41 0 iov 0 0K 2K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1370 86K 86K 166960K 1420 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 14 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 15 53K 93K 166960K 179 0 sigio 0 0K 0K 166960K 1 0 proc 57 59K 108K 166960K 474 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 1 0K 0K 166960K 6 0 in_multi 101 7K 7K 166960K 101 0 ether_multi 2 0K 0K 166960K 2 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 349 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 206 72K 73K 166960K 3118 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 36 72K 96K 166960K 1192 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 3 0 NDP 11 0K 2K 166960K 27 0 temp 38 6794K 6858K 166960K 3826 0 kqueue 14 22K 26K 166960K 30 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 38 0 35 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 82 0 59 2 0 2 2 0 8 1 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 808 28 0 20 2 0 2 2 0 8 1 arp 88 18 0 0 1 0 1 1 0 8 0 inpcb 352 186 0 171 8 0 8 8 0 8 6 nd6 104 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 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 451 0 0 29 0 29 29 0 8 0 art_table 32 452 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1624 0 126 94 0 94 94 0 8 0 ffsino 240 1625 0 126 89 0 89 89 0 8 0 nchpl 144 1893 0 221 63 0 63 63 0 8 0 uvmvnodes 80 1765 0 0 37 0 37 37 0 8 0 vnodes 216 1765 0 0 99 0 99 99 0 8 0 namei 1024 5704 0 5701 2 0 2 2 0 8 1 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 5270 0 5269 3 0 3 3 1 8 2 plimitpl 152 36 0 20 1 0 1 1 0 8 0 sigapl 424 456 0 412 6 0 6 6 0 8 0 futexpl 64 1156 0 1149 1 0 1 1 0 8 0 knotepl 120 4120 0 4068 2 0 2 2 0 8 0 kqueuepl 184 137 0 125 4 0 4 4 0 8 3 pipepl 288 143 0 116 3 0 3 3 0 8 1 fdescpl 432 440 0 413 5 0 5 5 0 8 1 filepl 120 2046 0 1785 12 0 12 12 0 8 3 lockfpl 104 30 0 28 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 158 0 147 1 0 1 1 0 8 0 zombiepl 144 413 0 412 1 0 1 1 0 8 0 processpl 1088 456 0 412 4 0 4 4 0 8 0 procpl 648 537 0 485 6 0 6 6 0 8 1 sockpl 504 308 0 267 13 0 13 13 0 8 7 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 7 0 7 1 0 1 1 0 8 1 mcl4k 4096 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 5016 0 4921 24 4 20 24 0 8 6 mtagpl 96 8 0 7 1 0 1 1 0 8 0 mbufpl 256 6933 0 6743 13 0 13 13 0 8 0 bufpl 280 2204 0 89 152 0 152 152 0 8 0 anonpl 24 145215 0 142145 24 0 24 24 0 187 3 amapchunkpl 152 10217 0 9786 21 0 21 21 0 158 1 amappl16 200 3891 0 3874 5 0 5 5 0 8 3 amappl15 192 10 0 10 1 0 1 1 0 8 1 amappl14 184 106 0 96 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 0 1 1 0 8 1 amappl12 168 1056 0 1028 3 0 3 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 40 0 40 1 0 1 1 0 8 1 amappl9 144 116 0 116 1 0 1 1 0 8 1 amappl8 136 23 0 21 1 0 1 1 0 8 0 amappl7 128 96 0 86 1 0 1 1 0 8 0 amappl6 120 158 0 157 1 0 1 1 0 8 0 amappl5 112 122 0 114 1 0 1 1 0 8 0 amappl4 104 291 0 274 1 0 1 1 0 8 0 amappl3 96 2024 0 1924 3 0 3 3 0 8 0 amappl2 88 600 0 546 2 0 2 2 0 8 0 amappl1 80 7614 0 7075 14 0 14 14 0 8 2 amappl 88 2780 0 2628 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 440 0 413 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 440 0 413 1 0 1 1 0 8 0 vmmpekpl 168 5648 0 5612 2 0 2 2 0 8 0 vmmpepl 168 36226 0 34570 80 0 80 80 0 357 1 vmsppl 344 439 0 413 4 0 4 4 0 8 1 rwobjpl 24 16581 0 13969 16 0 16 16 0 8 0 pdppl 4096 887 0 826 95 28 67 81 0 8 6 pvpl 32 267833 0 259673 73 0 73 73 0 265 0 pmappl 216 439 0 413 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 379 0 32 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(fffffd806c370bf8,8,ffff80002a4d5970) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c370bf8,ffff80002a4d5970) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8079a1adb0,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037643330) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc3a,ffff800037643418) 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(fffffd8079a1a7c8,ffff800037643868,ffff800037643898) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037643838) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037643838) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037643838,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a4d5970,ffffff9c,20000100,0,0,ffff8000376439e0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037643a90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4c4050f9b60, 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(fffffd806c370bf8,8,ffff80002a4d5970) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd806c370bf8,ffff80002a4d5970) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8079a1adb0,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037643330) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fc3a,ffff800037643418) 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(fffffd8079a1a7c8,ffff800037643868,ffff800037643898) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037643838) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037643838) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037643838,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a4d5970,ffffff9c,20000100,0,0,ffff8000376439e0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037643a90) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4c4050f9b60, count: -15