panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *463634 10704 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(fffffd8078c743a8,8,ffff80002a45aa28) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8078c743a8,ffff80002a45aa28) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8078c74120,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037662b00) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fca8,ffff800037662be8) 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(fffffd805c4187e0,ffff800037663038,ffff800037663068) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037663008) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037663008) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037663008,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a45aa28,ffffff9c,20000200,0,0,ffff8000376631b0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037663260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 end trace frame: 0xffff8000376632e0, 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(fffffd8078c743a8,8,ffff80002a45aa28) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8078c743a8,ffff80002a45aa28) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8078c74120,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037662b00) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fca8,ffff800037662be8) 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(fffffd805c4187e0,ffff800037663038,ffff800037663068) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037663008) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037663008) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037663008,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a45aa28,ffffff9c,20000200,0,0,ffff8000376631b0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037663260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x188449a9cd0, count: -15 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037662880 rbx 0x100 rdx 0xffff80000118e640 rcx 0 rax 0xffff80002a45aa28 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa4226ce553eeed71 r11 0x23df61d199b62946 r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82c9cec5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800037662870 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=463634 pid=10704 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=0xffff800037608028,0xffffffff83531b78 process=0xffff800037611758 user=0xffff80003765e000, vmspace=0xfffffd80691acd88 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 10704 54084 55435 0 2 0x8000000 syz-executor *10704 463634 55435 0 7 0xc000000 syz-executor 22806 264539 58609 0 2 0x8000000 syz-executor 22806 238703 58609 0 3 0xc000000 biowait syz-executor 7768 272612 36621 0 3 0x8000080 nanoslp syz-executor 7768 208407 36621 0 3 0xc000080 ttyretype syz-executor 7768 374838 36621 0 3 0xc000080 fsleep syz-executor 7205 143407 91323 60928 2 0x8000010 syz-executor 7205 464312 91323 60928 3 0xc000090 fsleep syz-executor 15966 147690 12816 0 2 0x8000000 syz-executor 15966 183708 12816 0 3 0xc000000 biowait syz-executor 87343 33452 9197 0 3 0x8000080 nanoslp syz-executor 87343 357550 9197 0 3 0xc000080 kqread syz-executor 87343 305348 9197 0 3 0xc000080 fsleep syz-executor 58609 227726 50278 0 3 0x8000082 nanoslp syz-executor 14008 362621 50278 0 2 0x8000002 syz-executor 9197 180326 50278 0 3 0x8000082 nanoslp syz-executor 36621 471511 50278 0 3 0x8000082 nanoslp syz-executor 55435 434992 50278 0 3 0x8000082 nanoslp syz-executor 12816 137756 50278 0 3 0x8000082 nanoslp syz-executor 13552 441007 50278 0 3 0x8000002 biowait syz-executor 91323 461027 50278 0 3 0x8000082 nanoslp syz-executor 55575 448517 1 0 3 0x18100083 ttyin getty 84508 109587 0 0 3 0x14200 acct acct 29451 310735 0 0 3 0x14280 nfsidl nfsio 79670 424186 0 0 3 0x14280 nfsidl nfsio 15806 300605 0 0 3 0x14280 nfsidl nfsio 49648 16805 0 0 3 0x14280 nfsidl nfsio 93236 325461 0 0 3 0x14280 nfsidl nfsio 28168 395587 0 0 3 0x14280 nfsidl nfsio 88291 376382 0 0 3 0x14280 nfsidl nfsio 8355 172308 0 0 3 0x14280 nfsidl nfsio 75050 250448 0 0 3 0x14280 nfsidl nfsio 87508 124561 0 0 3 0x14280 nfsidl nfsio 90279 263925 0 0 3 0x14280 nfsidl nfsio 90472 248295 0 0 3 0x14280 nfsidl nfsio 46912 13486 0 0 3 0x14280 nfsidl nfsio 41120 200599 0 0 3 0x14280 nfsidl nfsio 7787 407630 0 0 3 0x14280 nfsidl nfsio 36591 130742 0 0 3 0x14280 nfsidl nfsio 1370 332339 0 0 3 0x14280 nfsidl nfsio 35991 296455 0 0 3 0x14280 nfsidl nfsio 90132 234430 0 0 3 0x14280 nfsidl nfsio 85899 373309 0 0 3 0x14280 nfsidl nfsio 88968 479196 0 0 3 0x14200 bored sosplice 50278 353466 3238 0 3 0x8000082 kqread syz-executor 3238 194082 11520 0 3 0x810008a sigsusp ksh 11520 240048 16853 0 3 0x18000098 kqread sshd-session 16853 324944 84120 0 3 0x18000092 kqread sshd-session 84120 393665 1 0 3 0x18000088 kqread sshd 54040 75634 33587 73 3 0x19100010 ffs_fsync syslogd 33587 296003 1 0 3 0x18100082 sbwait syslogd 37960 417642 1 0 3 0x18100080 kqread resolvd 35462 271341 61641 77 3 0x18100092 kqread dhcpleased 54483 54033 61641 77 3 0x18100092 kqread dhcpleased 61641 229422 1 0 3 0x18000080 kqread dhcpleased 89921 95676 0 0 3 0x14200 bored smr 29806 228323 0 0 2 0x14200 zerothread 73764 46265 0 0 3 0x14200 aiodoned aiodoned 44109 453934 0 0 3 0x14200 syncer update 3278 203384 0 0 3 0x14200 cleaner cleaner 23037 297254 0 0 3 0x14200 reaper reaper 25107 390966 0 0 3 0x14200 pgdaemon pagedaemon 4666 36942 0 0 3 0x14200 bored viomb 67177 365096 0 0 3 0x40014200 acpi0 acpi0 97598 289433 0 0 3 0x14200 bored softnet3 35531 442864 0 0 3 0x14200 bored softnet2 59064 295375 0 0 3 0x14200 bored softnet1 55663 161545 0 0 3 0x14200 bored softnet0 85124 213599 0 0 3 0x14200 bored systqmp 57979 272407 0 0 3 0x14200 bored systq 29251 433525 0 0 3 0x40014200 tmoslp softclock 63005 476757 0 0 3 0x40014200 idle0 1 93028 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 10260 10510K 10600K 166960K 16543 0 pcb 17 18K 20K 166960K 1089 0 rtable 249 13K 14K 166960K 6175 0 pf 51 12K 15K 166960K 848 0 ifaddr 51 13K 13K 166960K 832 0 ifgroup 87 3K 3K 166960K 934 0 sysctl 3 1K 1K 166960K 5 0 counters 39 18K 18K 166960K 258 0 ioctlops 0 0K 4K 166960K 726 0 iov 0 0K 18K 166960K 241 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1557 98K 98K 166960K 6962 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 68 0 VM map 2 1K 1K 166960K 2 0 sem 21 52K 62K 166960K 123 0 dirhash 15 2K 3K 166960K 75 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 97K 166960K 5018 0 sigio 0 0K 0K 166960K 104 0 proc 58 59K 124K 166960K 5727 0 subproc 104 6K 8K 166960K 2457 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 559 0 in_multi 98 7K 7K 166960K 2175 0 ether_multi 1 0K 0K 166960K 26 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 3573 0 pfkey data 0 0K 0K 166960K 7 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 216 92K 122K 166960K 36895 0 UVM aobj 131 4K 4K 166960K 137 0 pinsyscall 37 74K 102K 166960K 10755 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 152 0 NDP 22 0K 2K 166960K 618 0 temp 77 6808K 6936K 166960K 165825 0 kqueue 14 22K 30K 166960K 351 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 755 0 752 5 2 3 3 0 8 2 rtentry 112 2176 0 2078 4 1 3 4 0 8 0 unpcb 144 3475 0 3460 11 5 6 6 0 8 5 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 9 0 9 1 1 0 1 0 8 0 tcpcb 808 2131 0 2124 31 23 8 14 0 8 6 arp 88 392 0 374 1 0 1 1 0 8 0 ipq 40 13 0 11 1 0 1 1 0 8 0 ipqe 40 233 0 231 1 0 1 1 0 8 0 inpcb 352 5835 0 5824 32 23 9 14 0 8 7 nd6 104 593 0 568 1 0 1 1 0 8 0 pkpcb 40 94 0 94 2 1 1 1 0 8 1 kcovpl 48 189 0 181 1 0 1 1 0 8 0 ppxss 1072 17 0 17 2 1 1 1 0 8 1 pffrag 232 9 0 9 1 1 0 1 0 482 0 pffrnode 88 8 0 8 1 1 0 1 0 8 0 pffrent 40 53 0 53 1 1 0 1 0 8 0 pfosfp 40 3 0 3 1 1 0 1 0 8 0 pfosfpen 112 3 0 3 1 1 0 1 0 8 0 pfrktable 1344 11 0 7 1 0 1 1 0 8 0 pfanchor 1288 5 0 1 1 0 1 1 0 8 0 pftag 88 12 0 4 1 0 1 1 0 8 0 pfqueue 264 1 0 0 1 0 1 1 0 8 0 pfrule 1344 130 0 121 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 8694 0 8252 37 8 29 29 0 8 1 art_table 32 8695 0 8252 4 0 4 4 0 8 0 art_node 16 2168 0 2080 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 2 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 115 0 96 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 60 0 40 3 0 3 3 0 8 0 dino2pl 256 6505 0 4655 116 0 116 116 0 8 0 ffsino 240 6505 0 4655 109 0 109 109 0 8 0 nchpl 144 10203 0 9413 71 33 38 71 0 8 8 uvmvnodes 80 7449 0 0 153 0 153 153 0 8 0 vnodes 216 7449 0 0 414 0 414 414 0 8 0 namei 1024 57936 0 57932 2 1 1 2 0 8 0 vcpupl 3904 7 0 1 1 0 1 1 0 8 0 vmpool 664 11 0 5 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 1 1 0 1 1 0 8 0 kstatmem 264 478 0 438 3 0 3 3 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 91986 0 91981 9 7 2 8 1 8 1 plimitpl 152 1303 0 1286 1 0 1 1 0 8 0 sigapl 424 4962 0 4896 8 0 8 8 0 8 0 futexpl 64 47429 0 47426 1 0 1 1 0 8 0 knotepl 120 102932 0 102880 23 13 10 16 0 8 8 kqueuepl 184 1282 0 1271 7 3 4 4 0 8 3 pipepl 288 1283 0 1256 7 4 3 7 0 8 0 fdescpl 432 4922 0 4894 5 1 4 5 0 8 0 filepl 120 34991 0 34740 27 11 16 18 0 8 8 lockfpl 104 1194 0 1192 2 0 2 2 0 8 1 lockfspl 48 471 0 469 1 0 1 1 0 8 0 sessionpl 144 204 0 196 1 0 1 1 0 8 0 pgrppl 48 560 0 544 1 0 1 1 0 8 0 ucredpl 104 4880 0 4868 1 0 1 1 0 8 0 zombiepl 144 4896 0 4896 1 0 1 1 0 8 1 processpl 1088 4962 0 4896 5 0 5 5 0 8 0 procpl 648 8320 0 8246 9 1 8 8 0 8 1 sosppl 168 13 0 13 1 1 0 1 0 8 0 sockpl 504 10221 0 10192 183 170 13 38 0 8 8 mcl64k 65536 33 0 33 2 1 1 1 0 8 1 mcl16k 16384 9 0 9 1 1 0 1 0 8 0 mcl12k 12288 8 0 8 2 1 1 1 0 8 1 mcl9k 9216 3 0 3 1 1 0 1 0 8 0 mcl8k 8192 90 0 90 2 1 1 1 0 8 1 mcl4k 4096 30 0 30 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 15870 0 15772 29 9 20 24 0 8 6 mtagpl 96 77 0 75 2 1 1 1 0 8 0 mbufpl 256 55024 0 54812 266 245 21 93 0 8 7 bufpl 280 15329 0 7884 533 0 533 533 0 8 0 anonpl 24 624812 0 621530 120 43 77 78 0 187 35 amapchunkpl 152 125316 0 124871 59 24 35 45 0 158 15 amappl16 200 9333 0 9315 75 66 9 15 0 8 7 amappl15 192 53 0 53 1 1 0 1 0 8 0 amappl14 184 470 0 460 1 0 1 1 0 8 0 amappl13 176 10 0 9 1 0 1 1 0 8 0 amappl12 168 8413 0 8385 3 1 2 3 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 53 0 53 1 1 0 1 0 8 0 amappl9 144 114 0 114 1 1 0 1 0 8 0 amappl8 136 31 0 29 1 0 1 1 0 8 0 amappl7 128 493 0 482 1 0 1 1 0 8 0 amappl6 120 1968 0 1966 1 0 1 1 0 8 0 amappl5 112 850 0 841 1 0 1 1 0 8 0 amappl4 104 840 0 824 1 0 1 1 0 8 0 amappl3 96 22358 0 22254 5 1 4 4 0 8 1 amappl2 88 3173 0 3114 2 0 2 2 0 8 0 amappl1 80 33104 0 32571 16 3 13 15 0 8 1 amappl 88 35058 0 34900 6 1 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 12 0 12 2 1 1 1 0 8 1 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 4933 0 4899 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4933 0 4899 1 0 1 1 0 8 0 vmmpekpl 168 39440 0 39381 4 0 4 4 0 8 0 vmmpepl 168 299671 0 297971 105 14 91 91 0 357 12 vmsppl 344 4932 0 4899 4 0 4 4 0 8 0 rwobjpl 24 87688 0 79261 53 0 53 53 0 8 0 pdppl 4096 9873 0 9804 374 299 75 83 0 8 6 pvpl 32 2337075 0 2327032 500 244 256 346 0 265 153 pmappl 216 4932 0 4899 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1175 0 766 14 0 14 14 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(fffffd8078c743a8,8,ffff80002a45aa28) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8078c743a8,ffff80002a45aa28) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8078c74120,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037662b00) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fca8,ffff800037662be8) 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(fffffd805c4187e0,ffff800037663038,ffff800037663068) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037663008) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037663008) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037663008,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a45aa28,ffffff9c,20000200,0,0,ffff8000376631b0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037663260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x188449a9cd0, 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(fffffd8078c743a8,8,ffff80002a45aa28) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd8078c743a8,ffff80002a45aa28) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd8078c74120,0,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff800037662b00) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,1fca8,ffff800037662be8) 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(fffffd805c4187e0,ffff800037663038,ffff800037663068) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff800037663008) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff800037663008) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff800037663008,1,0) at vn_open+0x13f sys/kern/vfs_vnops.c:140 doopenat(ffff80002a45aa28,ffffff9c,20000200,0,0,ffff8000376631b0) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff800037663260) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x188449a9cd0, count: -15