panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *402153 55724 60928 0x8000010 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(fffffd807811c1b0,8,ffff80002d9e2f58) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807811c1b0,ffff80002d9e2f58) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807811c438,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002f20b210) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,199f7,ffff80002f20b2f8) 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(fffffd807811c288,ffff80002f20b748,ffff80002f20b778) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002f20b718) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002f20b718) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff80002f20b718,201,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002d9e2f58,ffffff9c,20000280,200,0,ffff80002f20b8c0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff80002f20b970) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 end trace frame: 0xffff80002f20b9f0, 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(fffffd807811c1b0,8,ffff80002d9e2f58) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807811c1b0,ffff80002d9e2f58) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807811c438,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002f20b210) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,199f7,ffff80002f20b2f8) 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(fffffd807811c288,ffff80002f20b748,ffff80002f20b778) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002f20b718) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002f20b718) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff80002f20b718,201,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002d9e2f58,ffffff9c,20000280,200,0,ffff80002f20b8c0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff80002f20b970) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94a984b7250, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002f20af90 rbx 0x100 rdx 0 rcx 0 rax 0xffff80002d9e2f58 r8 0x101010101010101 r9 0x8080808080808080 r10 0xdeb4881f87e85415 r11 0x6bbb4a951023490c r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82c9cec5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002f20af80 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=402153 pid=55724 tcnt=4 stat=onproc flags process=8000010 proc=4000000 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a5bc528,0xffff80002d9e2a58 process=0xffff80002a4e6650 user=0xffff80002f206000, vmspace=0xfffffd806c231d88 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 55724 95574 30129 60928 2 0x8000010 syz-executor *55724 402153 30129 60928 7 0xc000010 syz-executor 55724 80166 30129 60928 3 0xc000010 inode syz-executor 55724 4638 30129 60928 3 0xc000010 inode syz-executor 25486 317864 69179 0 2 0xc000004 syz-executor 25486 165156 69179 0 3 0xc000080 fsleep syz-executor 25486 267213 69179 0 3 0xc000080 fsleep syz-executor 56473 116964 65128 0 2 0x8000000 syz-executor 56473 176134 65128 0 2 0xc000000 syz-executor 92117 367994 27053 0 3 0x8000080 nanoslp syz-executor 92117 449980 27053 0 3 0xc000080 kqread syz-executor 92117 417388 27053 0 3 0xc000080 fsleep syz-executor 30129 76644 1067 0 3 0x8000082 nanoslp syz-executor 65128 5467 1067 0 3 0x8000082 nanoslp syz-executor 19482 383649 1067 0 3 0x8000082 piperd syz-executor 51668 413914 1067 0 2 0x8000002 syz-executor 69985 388024 1067 0 2 0x8000082 syz-executor 23522 356000 1067 0 3 0x8000002 biowait syz-executor 69179 57836 1067 0 3 0x8000082 nanoslp syz-executor 27053 80584 1067 0 3 0x8000082 nanoslp syz-executor 11539 144766 1 0 3 0x18100083 ttyin getty 72981 81868 0 0 3 0x14200 bored sosplice 1067 362215 53887 0 2 0x8000002 syz-executor 53887 292977 17051 0 3 0x810008a sigsusp ksh 17051 427567 50766 0 3 0x18000098 kqread sshd-session 50766 271727 91810 0 3 0x18000092 kqread sshd-session 91810 301592 1 0 3 0x18000088 kqread sshd 97100 260697 95245 73 2 0x19100010 syslogd 95245 44687 1 0 3 0x18100082 sbwait syslogd 8354 158786 1 0 3 0x18100080 kqread resolvd 9922 96162 74414 77 3 0x18100092 kqread dhcpleased 49913 492505 74414 77 3 0x18100092 kqread dhcpleased 74414 495553 1 0 3 0x18000080 kqread dhcpleased 64500 76331 0 0 3 0x14200 bored smr 89604 505194 0 0 2 0x14200 zerothread 30193 235618 0 0 3 0x14200 aiodoned aiodoned 24637 17230 0 0 3 0x14200 syncer update 6680 206408 0 0 3 0x14200 cleaner cleaner 85371 260352 0 0 3 0x14200 reaper reaper 64136 334231 0 0 3 0x14200 pgdaemon pagedaemon 54305 165595 0 0 3 0x14200 bored viomb 92394 12362 0 0 3 0x40014200 acpi0 acpi0 64568 221789 0 0 3 0x14200 bored softnet3 8717 359377 0 0 3 0x14200 bored softnet2 20669 275501 0 0 3 0x14200 bored softnet1 37138 504736 0 0 3 0x14200 bored softnet0 26114 126806 0 0 3 0x14200 bored systqmp 98906 10658 0 0 3 0x14200 bored systq 39536 429360 0 0 3 0x40014200 tmoslp softclock 12708 315968 0 0 3 0x40014200 idle0 1 211569 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 10198 10099K 10475K 166960K 12738 0 pcb 17 15K 16K 166960K 329 0 rtable 219 9K 9K 166960K 1552 0 pf 31 9K 13K 166960K 197 0 ifaddr 42 11K 11K 166960K 199 0 ifgroup 50 2K 2K 166960K 226 0 sysctl 2 0K 2K 166960K 6 0 counters 30 17K 17K 166960K 74 0 ioctlops 0 0K 4K 166960K 197 0 iov 0 0K 18K 166960K 64 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1393 88K 88K 166960K 2616 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 0K 0K 166960K 137 0 dirhash 12 2K 3K 166960K 45 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 93K 166960K 1416 0 sigio 0 0K 0K 166960K 87 0 proc 61 67K 100K 166960K 1496 0 subproc 104 6K 6K 166960K 546 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 2 0K 0K 166960K 275 0 in_multi 96 7K 7K 166960K 512 0 ether_multi 1 0K 0K 166960K 4 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 211 943K 943K 166960K 211 0 exec 0 0K 1K 166960K 963 0 pfkey data 0 0K 0K 166960K 5 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 202 72K 91K 166960K 12656 0 UVM aobj 56 6K 6K 166960K 60 0 pinsyscall 35 70K 94K 166960K 3317 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 40 0 NDP 11 0K 2K 166960K 140 0 temp 76 6808K 6888K 166960K 42198 0 kqueue 14 22K 30K 166960K 147 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 195 0 192 1 0 1 1 0 8 0 rtentry 112 510 0 412 4 0 4 4 0 8 1 unpcb 144 1660 0 1645 6 0 6 6 0 8 5 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 455 0 385 8 0 8 8 0 8 1 arp 88 93 0 75 1 0 1 1 0 8 0 ipq 40 3 0 2 1 0 1 1 0 8 0 ipqe 40 49 0 48 1 0 1 1 0 8 0 inpcb 352 1792 0 1719 17 8 9 16 0 8 2 nd6 104 129 0 104 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 0 1 1 0 8 1 kcovpl 48 42 0 34 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 11 0 10 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1344 43 0 41 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2035 0 1611 32 5 27 29 0 8 0 art_table 32 2036 0 1611 4 0 4 4 0 8 0 art_node 16 508 0 420 1 0 1 1 0 8 0 sysvmsgpl 40 56 0 45 1 0 1 1 0 8 0 semapl 112 135 0 125 1 0 1 1 0 8 0 shmpl 112 57 0 4 2 0 2 2 0 8 0 dirhash 1024 39 0 22 3 0 3 3 0 8 0 dino2pl 256 3236 0 1669 99 0 99 99 0 8 0 ffsino 240 3236 0 1669 93 0 93 93 0 8 0 nchpl 144 4657 0 2923 65 0 65 65 0 8 0 uvmvnodes 80 4226 0 0 87 0 87 87 0 8 0 vnodes 216 4226 0 0 235 0 235 235 0 8 0 namei 1024 21202 0 21199 2 0 2 2 0 8 1 vcpupl 3904 7 0 0 1 0 1 1 0 8 0 vmpool 664 9 0 2 1 0 1 1 0 8 0 kstatmem 264 110 0 88 2 0 2 2 0 8 0 scxspl 216 21785 0 21784 8 0 8 8 1 8 7 plimitpl 152 490 0 473 1 0 1 1 0 8 0 sigapl 424 1628 0 1584 6 0 6 6 0 8 0 futexpl 64 17490 0 17487 1 0 1 1 0 8 0 knotepl 120 33459 0 33411 12 3 9 12 0 8 7 kqueuepl 184 453 0 443 4 0 4 4 0 8 3 pipepl 288 469 0 442 7 0 7 7 0 8 4 fdescpl 432 1610 0 1584 5 0 5 5 0 8 1 filepl 120 12465 0 12156 13 0 13 13 0 8 3 lockfpl 104 279 0 276 1 0 1 1 0 8 0 lockfspl 48 116 0 113 1 0 1 1 0 8 0 sessionpl 144 56 0 48 1 0 1 1 0 8 0 pgrppl 48 123 0 107 1 0 1 1 0 8 0 ucredpl 104 1973 0 1960 1 0 1 1 0 8 0 zombiepl 144 1585 0 1584 1 0 1 1 0 8 0 processpl 1088 1628 0 1584 4 0 4 4 0 8 0 procpl 648 2878 0 2826 6 0 6 6 0 8 0 sosppl 168 4 0 4 1 0 1 1 0 8 1 sockpl 504 3674 0 3583 43 31 12 25 0 8 0 mcl64k 65536 20 0 20 1 0 1 1 0 8 1 mcl16k 16384 7 0 7 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 35 0 35 1 0 1 1 0 8 1 mcl4k 4096 89 0 89 1 0 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 8335 0 8235 31 11 20 31 0 8 6 mtagpl 96 87 0 50 2 0 2 2 0 8 1 mbufpl 256 21907 0 21633 96 74 22 62 0 8 4 bufpl 280 9837 0 3094 482 0 482 482 0 8 0 anonpl 24 300382 0 297310 50 0 50 50 0 187 20 amapchunkpl 152 41639 0 41246 32 0 32 32 0 158 12 amappl16 200 7157 0 7130 28 16 12 15 0 8 8 amappl15 192 19 0 18 1 0 1 1 0 8 0 amappl14 184 180 0 170 1 0 1 1 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 2784 0 2758 3 0 3 3 0 8 1 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 0 1 1 0 8 1 amappl9 144 140 0 139 1 0 1 1 0 8 0 amappl8 136 24 0 23 1 0 1 1 0 8 0 amappl7 128 181 0 170 1 0 1 1 0 8 0 amappl6 120 502 0 501 1 0 1 1 0 8 0 amappl5 112 263 0 255 1 0 1 1 0 8 0 amappl4 104 389 0 374 1 0 1 1 0 8 0 amappl3 96 8016 0 7924 4 0 4 4 0 8 0 amappl2 88 1076 0 1018 2 0 2 2 0 8 0 amappl1 80 13415 0 12895 13 0 13 13 0 8 1 amappl 88 11998 0 11857 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 59 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1619 0 1586 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1619 0 1586 1 0 1 1 0 8 0 vmmpekpl 168 14610 0 14558 3 0 3 3 0 8 0 vmmpepl 168 105812 0 104216 90 0 90 90 0 357 13 vmsppl 344 1618 0 1586 4 0 4 4 0 8 0 rwobjpl 24 37032 0 31920 32 0 32 32 0 8 0 pdppl 4096 3245 0 3179 149 77 72 81 0 8 6 pvpl 32 817251 0 808822 226 0 226 226 0 265 133 pmappl 216 1618 0 1586 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 576 0 198 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(ffffffff830a8629) at panic+0x1cf sys/kern/subr_prf.c:198 vclean(fffffd807811c1b0,8,ffff80002d9e2f58) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807811c1b0,ffff80002d9e2f58) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807811c438,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002f20b210) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,199f7,ffff80002f20b2f8) 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(fffffd807811c288,ffff80002f20b748,ffff80002f20b778) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002f20b718) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002f20b718) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff80002f20b718,201,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002d9e2f58,ffffff9c,20000280,200,0,ffff80002f20b8c0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff80002f20b970) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94a984b7250, 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(fffffd807811c1b0,8,ffff80002d9e2f58) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807811c1b0,ffff80002d9e2f58) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807811c438,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff80002f20b210) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,199f7,ffff80002f20b2f8) 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(fffffd807811c288,ffff80002f20b748,ffff80002f20b778) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002f20b718) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff80002f20b718) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff80002f20b718,201,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff80002d9e2f58,ffffff9c,20000280,200,0,ffff80002f20b8c0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff80002f20b970) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x94a984b7250, count: -15