panic: vclean: deadlock Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *496851 48715 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(fffffd807a0cd648,8,ffff800037622cc8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807a0cd648,ffff800037622cc8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807a0cd3c0,504,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff8000341fef90) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,14434,ffff8000341ff078) 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(fffffd807ec3f360,ffff8000341ff450,ffff8000341ff480) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000341ff420) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff8000341ff420) at namei+0x7aa sys/kern/vfs_lookup.c:250 ptmioctl(5100,40287401,ffff8000341ff740,3,ffff800037622cc8) at ptmioctl+0x4cb sys/kern/tty_pty.c:1143 VOP_IOCTL(fffffd807ae52510,40287401,ffff8000341ff740,3,fffffd807f7d7548,ffff800037622cc8) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd807ad36800,40287401,ffff8000341ff740,ffff800037622cc8) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 end trace frame: 0xffff8000341ff840, 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(fffffd807a0cd648,8,ffff800037622cc8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807a0cd648,ffff800037622cc8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807a0cd3c0,504,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff8000341fef90) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,14434,ffff8000341ff078) 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(fffffd807ec3f360,ffff8000341ff450,ffff8000341ff480) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000341ff420) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff8000341ff420) at namei+0x7aa sys/kern/vfs_lookup.c:250 ptmioctl(5100,40287401,ffff8000341ff740,3,ffff800037622cc8) at ptmioctl+0x4cb sys/kern/tty_pty.c:1143 VOP_IOCTL(fffffd807ae52510,40287401,ffff8000341ff740,3,fffffd807f7d7548,ffff800037622cc8) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd807ad36800,40287401,ffff8000341ff740,ffff800037622cc8) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff800037622cc8,ffff8000341ff920,ffff8000341ff870) at sys_ioctl+0x678 syscall(ffff8000341ff920) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfecfc383120, count: -17 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000341fed10 rbx 0x100 rdx 0xffff80000117cb80 rcx 0 rax 0xffff800037622cc8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x681a5cfa26101e0d r11 0x1bbaee3bfb3e149e r12 0 r13 0x8 r14 0 r15 0x1 rip 0xffffffff82c9cec5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000341fed00 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=496851 pid=48715 tcnt=2 stat=onproc flags process=8000000 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800037622a40,0xffffffff83531b78 process=0xffff800035c0c458 user=0xffff8000341fa000, vmspace=0xfffffd806c27b570 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 48715 186364 75220 0 2 0x8000000 syz-executor *48715 496851 75220 0 7 0xc000000 syz-executor 17730 42040 78623 60928 3 0x8000090 nanoslp syz-executor 17730 364105 78623 60928 3 0xc000090 msgwait syz-executor 17730 239603 78623 60928 3 0xc000090 kqread syz-executor 17730 521130 78623 60928 3 0xc000090 fsleep syz-executor 45570 305510 40142 0 3 0x8000080 nanoslp syz-executor 45570 109348 40142 0 3 0xc000080 kqsel syz-executor 45570 100518 40142 0 3 0xc000080 fsleep syz-executor 81913 501131 68605 0 3 0x8000080 nanoslp syz-executor 81913 491517 68605 0 3 0xc000080 msgwait syz-executor 81913 362224 68605 0 3 0xc000080 fsleep syz-executor 81913 344417 68605 0 3 0xc000080 fsleep syz-executor 92386 283007 0 0 3 0x14200 bored sosplice 40142 68496 93514 0 3 0x8000082 nanoslp syz-executor 75108 230325 0 0 3 0x14280 nfsidl nfsio 90652 411119 0 0 3 0x14280 nfsidl nfsio 9845 344243 0 0 3 0x14280 nfsidl nfsio 79364 443954 0 0 3 0x14280 nfsidl nfsio 97745 164906 0 0 3 0x14280 nfsidl nfsio 5919 309391 0 0 3 0x14280 nfsidl nfsio 49984 54123 0 0 3 0x14280 nfsidl nfsio 82564 377388 0 0 3 0x14280 nfsidl nfsio 29413 110240 0 0 3 0x14280 nfsidl nfsio 59532 267603 0 0 3 0x14280 nfsidl nfsio 65668 210151 0 0 3 0x14280 nfsidl nfsio 8542 75141 0 0 3 0x14280 nfsidl nfsio 99976 231469 0 0 3 0x14280 nfsidl nfsio 81406 503567 0 0 3 0x14280 nfsidl nfsio 89066 346928 0 0 3 0x14280 nfsidl nfsio 81817 409309 0 0 3 0x14280 nfsidl nfsio 95280 25078 0 0 3 0x14280 nfsidl nfsio 44318 98462 0 0 3 0x14280 nfsidl nfsio 4303 81117 0 0 3 0x14280 nfsidl nfsio 36221 348485 0 0 3 0x14280 nfsidl nfsio 68605 125699 93514 0 3 0x8000082 nanoslp syz-executor 34514 438345 93514 0 3 0x8000082 wait syz-executor 78623 447375 93514 0 3 0x8000082 nanoslp syz-executor 75220 220558 93514 0 3 0x8000082 nanoslp syz-executor 83343 251787 93514 0 3 0x8000082 wait syz-executor 49777 350215 93514 0 3 0x8000002 getblk syz-executor 1558 371682 93514 0 3 0x8000002 getblk syz-executor 93514 60318 65426 0 3 0x8000082 kqread syz-executor 65426 34919 38310 0 3 0x810008a sigsusp ksh 38310 471004 83021 0 3 0x18000098 kqread sshd-session 83021 410770 81005 0 3 0x18000092 kqread sshd-session 70469 362149 1 0 3 0x18100083 ttyin getty 81005 307682 1 0 3 0x18000088 kqread sshd 43380 76657 61368 73 3 0x19100010 biowait syslogd 61368 203214 1 0 3 0x18100082 sbwait syslogd 15736 21083 1 0 3 0x18100080 kqread resolvd 5547 173655 60545 77 3 0x18100092 kqread dhcpleased 41153 313450 60545 77 3 0x18100092 kqread dhcpleased 60545 496054 1 0 3 0x18000080 kqread dhcpleased 3897 291289 0 0 3 0x14200 bored smr 46420 188802 0 0 2 0x14200 zerothread 22504 401839 0 0 3 0x14200 aiodoned aiodoned 93173 172099 0 0 3 0x14200 syncer update 54265 308178 0 0 3 0x14200 cleaner cleaner 83263 312802 0 0 3 0x14200 reaper reaper 6230 203980 0 0 3 0x14200 pgdaemon pagedaemon 72819 402968 0 0 3 0x14200 bored viomb 51434 479065 0 0 3 0x40014200 acpi0 acpi0 71716 89688 0 0 3 0x14200 bored softnet3 58901 76904 0 0 3 0x14200 bored softnet2 31403 374489 0 0 3 0x14200 bored softnet1 78586 269849 0 0 3 0x14200 bored softnet0 48551 303760 0 0 3 0x14200 bored systqmp 22977 432104 0 0 3 0x14200 bored systq 69544 470612 0 0 3 0x40014200 tmoslp softclock 16444 360335 0 0 3 0x40014200 idle0 1 181714 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 10187 10220K 10562K 166960K 11884 0 pcb 18 12K 12K 166960K 48 0 rtable 217 6K 7K 166960K 429 0 pf 29 8K 12K 166960K 47 0 ifaddr 42 11K 11K 166960K 51 0 ifgroup 50 2K 2K 166960K 58 0 sysctl 1 0K 0K 166960K 1 0 counters 30 17K 17K 166960K 33 0 ioctlops 0 0K 4K 166960K 52 0 iov 0 0K 16K 166960K 12 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1496 94K 95K 166960K 1777 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 55 0 dirhash 12 2K 3K 166960K 27 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 97K 166960K 314 0 sigio 0 0K 0K 166960K 3 0 proc 58 59K 116K 166960K 507 0 subproc 104 6K 6K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 31 0 in_multi 96 7K 7K 166960K 115 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 432 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 226 72K 88K 166960K 4394 0 UVM aobj 9 2K 2K 166960K 9 0 pinsyscall 37 74K 96K 166960K 1363 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 11 0 NDP 11 0K 2K 166960K 32 0 temp 48 6797K 6861K 166960K 4811 0 kqueue 14 22K 28K 166960K 47 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 61 0 58 1 0 1 1 0 8 0 rtentry 112 135 0 35 4 0 4 4 0 8 0 unpcb 144 197 0 179 2 0 2 2 0 8 1 syncache 336 3 0 3 1 0 1 1 0 8 1 tcpcb 808 52 0 47 1 0 1 1 0 8 0 arp 88 24 0 6 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 46 0 44 1 0 1 1 0 8 0 inpcb 352 360 0 350 7 0 7 7 0 8 5 nd6 104 28 0 3 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 9 0 1 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pfanchor 1288 3 0 0 1 0 1 1 0 8 0 pftag 88 3 0 1 1 0 1 1 0 8 0 pfrule 1344 6 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 509 0 97 29 0 29 29 0 8 1 art_table 32 510 0 97 4 0 4 4 0 8 0 art_node 16 134 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 53 0 43 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 27 0 10 3 0 3 3 0 8 0 dino2pl 256 1910 0 411 95 0 95 95 0 8 0 ffsino 240 1910 0 411 89 0 89 89 0 8 0 nchpl 144 2339 0 659 63 0 63 63 0 8 0 uvmvnodes 80 2331 0 0 48 0 48 48 0 8 0 vnodes 216 2331 0 0 130 0 130 130 0 8 0 namei 1024 8186 0 8185 2 0 2 2 0 8 1 vmpool 664 3 0 3 1 0 1 1 0 8 1 kstatmem 264 28 0 6 2 0 2 2 0 8 0 scxspl 216 8254 0 8253 2 0 2 2 1 8 1 plimitpl 152 164 0 146 1 0 1 1 0 8 0 sigapl 424 613 0 548 8 0 8 8 0 8 0 futexpl 64 3846 0 3842 1 0 1 1 0 8 0 knotepl 120 9007 0 8958 9 0 9 9 0 8 7 kqueuepl 184 179 0 167 4 0 4 4 0 8 3 pipepl 288 133 0 105 3 0 3 3 0 8 0 fdescpl 432 576 0 548 5 0 5 5 0 8 1 filepl 120 3491 0 3223 15 0 15 15 0 8 4 lockfpl 104 97 0 95 1 0 1 1 0 8 0 lockfspl 48 40 0 38 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 463 0 451 1 0 1 1 0 8 0 zombiepl 144 550 0 548 1 0 1 1 0 8 0 processpl 1088 613 0 548 5 0 5 5 0 8 0 procpl 648 920 0 846 8 0 8 8 0 8 1 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 504 621 0 590 13 0 13 13 0 8 8 mcl64k 65536 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 5425 0 5329 27 7 20 27 0 8 6 mtagpl 96 12 0 6 1 0 1 1 0 8 0 mbufpl 256 8690 0 8510 25 3 22 23 0 8 8 bufpl 280 4905 0 92 344 0 344 344 0 8 0 anonpl 24 167736 0 164455 49 0 49 49 0 187 26 amapchunkpl 152 14786 0 14298 31 0 31 31 0 158 9 amappl16 200 4155 0 4130 5 0 5 5 0 8 3 amappl15 192 5 0 5 1 0 1 1 0 8 1 amappl14 184 110 0 99 1 0 1 1 0 8 0 amappl13 176 10 0 10 1 0 1 1 0 8 1 amappl12 168 1212 0 1184 3 0 3 3 0 8 1 amappl11 160 63 0 53 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 0 1 1 0 8 1 amappl9 144 132 0 132 1 0 1 1 0 8 1 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 107 0 97 1 0 1 1 0 8 0 amappl6 120 176 0 175 1 0 1 1 0 8 0 amappl5 112 129 0 120 1 0 1 1 0 8 0 amappl4 104 285 0 271 1 0 1 1 0 8 0 amappl3 96 2885 0 2776 4 0 4 4 0 8 0 amappl2 88 620 0 564 2 0 2 2 0 8 0 amappl1 80 8197 0 7655 13 0 13 13 0 8 1 amappl 88 4027 0 3856 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 579 0 551 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 579 0 551 1 0 1 1 0 8 0 vmmpekpl 168 6451 0 6401 3 0 3 3 0 8 0 vmmpepl 168 44160 0 42419 82 0 82 82 0 357 1 vmsppl 344 578 0 551 4 0 4 4 0 8 1 rwobjpl 24 19080 0 15866 20 0 20 20 0 8 0 pdppl 4096 1165 0 1102 97 30 67 83 0 8 4 pvpl 32 371909 0 362820 215 0 215 215 0 265 134 pmappl 216 578 0 551 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 397 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(fffffd807a0cd648,8,ffff800037622cc8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807a0cd648,ffff800037622cc8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807a0cd3c0,504,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff8000341fef90) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,14434,ffff8000341ff078) 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(fffffd807ec3f360,ffff8000341ff450,ffff8000341ff480) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000341ff420) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff8000341ff420) at namei+0x7aa sys/kern/vfs_lookup.c:250 ptmioctl(5100,40287401,ffff8000341ff740,3,ffff800037622cc8) at ptmioctl+0x4cb sys/kern/tty_pty.c:1143 VOP_IOCTL(fffffd807ae52510,40287401,ffff8000341ff740,3,fffffd807f7d7548,ffff800037622cc8) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd807ad36800,40287401,ffff8000341ff740,ffff800037622cc8) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff800037622cc8,ffff8000341ff920,ffff8000341ff870) at sys_ioctl+0x678 syscall(ffff8000341ff920) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfecfc383120, count: -17 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(fffffd807a0cd648,8,ffff800037622cc8) at vclean+0x482 sys/kern/vfs_subr.c:1065 vgonel(fffffd807a0cd648,ffff800037622cc8) at vgonel+0xec sys/kern/vfs_subr.c:1197 checkalias(fffffd807a0cd3c0,504,ffff800000a68000) at checkalias+0x1ab ffs_vinit(ffff800000a68000,ffff8000341fef90) at ffs_vinit+0x13d ffs_vget(ffff800000a68000,14434,ffff8000341ff078) 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(fffffd807ec3f360,ffff8000341ff450,ffff8000341ff480) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000341ff420) at vfs_lookup+0x8e1 sys/kern/vfs_lookup.c:566 namei(ffff8000341ff420) at namei+0x7aa sys/kern/vfs_lookup.c:250 ptmioctl(5100,40287401,ffff8000341ff740,3,ffff800037622cc8) at ptmioctl+0x4cb sys/kern/tty_pty.c:1143 VOP_IOCTL(fffffd807ae52510,40287401,ffff8000341ff740,3,fffffd807f7d7548,ffff800037622cc8) at VOP_IOCTL+0xa3 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd807ad36800,40287401,ffff8000341ff740,ffff800037622cc8) at vn_ioctl+0xe8 sys/kern/vfs_vnops.c:525 sys_ioctl(ffff800037622cc8,ffff8000341ff920,ffff8000341ff870) at sys_ioctl+0x678 syscall(ffff8000341ff920) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfecfc383120, count: -17