panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149f9a08,ffff8000149f9a08,e6b046f79b7af35f) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda578,ffff8000149f9ab0,ffff8000149f9a70) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda578,ffff8000ffff99d0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff69e8,fffffd803efda578,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff99d0,ffff8000149fa078,ffff8000149fa143) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff99d0,ffff8000149fa1b0,ffff8000149fa220) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149fa290) at syscall+0x511 Xsyscall(6,72,1,72,7f7fffff87a8,92d92908ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8730, count: 5 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 bad dir ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149f9a08,ffff8000149f9a08,e6b046f79b7af35f) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda578,ffff8000149f9ab0,ffff8000149f9a70) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda578,ffff8000ffff99d0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff69e8,fffffd803efda578,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff99d0,ffff8000149fa078,ffff8000149fa143) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff99d0,ffff8000149fa1b0,ffff8000149fa220) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149fa290) at syscall+0x511 Xsyscall(6,72,1,72,7f7fffff87a8,92d92908ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff8730, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149f9820 rbx 0xffff8000149f98d0 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149f97e0 r9 0x1 r10 0 r11 0x101ea674a19b02d1 r12 0x3000000008 r13 0xffff8000149f9830 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149f9810 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=91793 stat=onproc flags process=2 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff92c8,0xffffffff822b78f0 process=0xffff8000ffff69e8 user=0xffff8000149f5000, vmspace=0xfffffd803f014420 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *91452 91793 2238 0 7 0x2 ifconfig 2238 437025 50074 0 3 0x10008a pause sh 50074 286368 87899 0 3 0x82 wait syz-executor.0 1110 380351 0 0 3 0x14200 bored sosplice 40211 199934 87899 0 3 0x82 piperd syz-executor.1 87899 190795 2590 0 3 0x82 thrsleep syz-fuzzer 87899 485901 2590 0 3 0x4000082 thrsleep syz-fuzzer 87899 237759 2590 0 3 0x4000082 thrsleep syz-fuzzer 87899 225474 2590 0 3 0x4000082 thrsleep syz-fuzzer 87899 100026 2590 0 3 0x4000082 thrsleep syz-fuzzer 87899 267159 2590 0 3 0x4000082 thrsleep syz-fuzzer 87899 258123 2590 0 3 0x4000082 thrsleep syz-fuzzer 87899 182112 2590 0 3 0x4000082 kqread syz-fuzzer 2590 321210 34419 0 3 0x10008a pause ksh 34419 290439 25096 0 3 0x92 select sshd 82514 415592 1 0 3 0x100083 ttyin getty 25096 494422 1 0 3 0x80 select sshd 99367 43626 12953 73 2 0x100090 syslogd 12953 236202 1 0 3 0x100082 netio syslogd 99076 500183 1 77 3 0x100090 poll dhclient 19293 489713 1 0 3 0x80 poll dhclient 43980 186722 0 0 3 0x14200 pgzero zerothread 26795 302422 0 0 3 0x14200 aiodoned aiodoned 71095 219248 0 0 3 0x14200 syncer update 15081 112231 0 0 3 0x14200 cleaner cleaner 39152 247595 0 0 3 0x14200 reaper reaper 83608 133686 0 0 3 0x14200 pgdaemon pagedaemon 19489 399876 0 0 3 0x14200 bored crynlk 33644 22535 0 0 3 0x14200 bored crypto 6996 45909 0 0 3 0x40014200 acpi0 acpi0 90960 292872 0 0 3 0x14200 bored softnet 49641 435830 0 0 3 0x14200 bored systqmp 34222 214865 0 0 3 0x14200 bored systq 31555 354053 0 0 3 0x40014200 bored softclock 25796 325266 0 0 3 0x40014200 idle0 67902 302775 0 0 3 0x14200 bored smr 1 360219 0 0 3 0x82 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 Kern Lim devbuf 9462 6326K 6831K 78643K 11745 0 0 pcb 23 9K 10K 78643K 171 0 0 rtable 86 3K 4K 78643K 334 0 0 ifaddr 40 10K 12K 78643K 116 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 15 0 0 iov 0 0K 24K 78643K 37 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 1614 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 19 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 44 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 614 0 0 sigio 0 0K 0K 78643K 19 0 0 proc 44 46K 62K 78643K 332 0 0 subproc 66 67586K 69634K 78643K 107 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 65 0 0 in_multi 22 1K 2K 78643K 54 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 229 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 79 20K 20K 78643K 2187 0 0 UVM aobj 43 2K 2K 78643K 43 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 5 0 0 NDP 7 0K 0K 78643K 30 0 0 temp 108 2699K 2828K 78643K 6958 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 6 0 2 1 0 1 1 0 8 0 inpcbpl 280 235 0 228 1 0 1 1 0 8 0 plimitpl 152 41 0 34 1 0 1 1 0 8 0 rtentry 112 45 0 12 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 96 0 92 1 0 1 1 0 8 0 nd6 48 6 0 3 1 0 1 1 0 8 0 ppxss 1128 18 0 18 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 44 12 0 12 12 0 8 1 art_table 32 189 0 44 2 0 2 2 0 8 0 art_node 16 44 0 14 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 42 0 32 1 0 1 1 0 8 0 shmpl 112 41 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2333 0 919 46 0 46 46 0 8 0 ffsino 240 2333 0 919 84 0 84 84 0 8 0 nchpl 144 3220 0 1590 61 0 61 61 0 8 0 uvmvnodes 72 2639 0 0 48 0 48 48 0 8 0 vnodes 200 2639 0 0 139 0 139 139 0 8 0 namei 1024 7959 0 7958 2 1 1 1 0 8 0 scxspl 192 21083 0 21083 8 7 1 6 0 8 1 sigapl 432 781 0 767 2 0 2 2 0 8 0 futexpl 56 5363 0 5363 1 0 1 1 0 8 1 knotepl 112 165 0 144 1 0 1 1 0 8 0 kqueuepl 104 83 0 81 1 0 1 1 0 8 0 pipepl 112 286 0 267 2 1 1 1 0 8 0 fdescpl 424 782 0 767 2 0 2 2 0 8 0 filepl 120 2932 0 2838 4 0 4 4 0 8 1 lockfpl 104 120 0 120 3 2 1 1 0 8 1 lockfspl 48 45 0 45 3 2 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 425 0 418 1 0 1 1 0 8 0 zombiepl 144 767 0 767 2 1 1 1 0 8 1 processpl 840 797 0 767 4 0 4 4 0 8 0 procpl 600 1518 0 1481 4 0 4 4 0 8 1 sosppl 128 21 0 21 1 1 0 1 0 8 0 sockpl 384 377 0 360 4 1 3 3 0 8 1 mcl64k 65536 15 0 15 1 0 1 1 0 8 1 mcl12k 12288 18 0 18 2 2 0 1 0 8 0 mcl9k 9216 8 0 8 2 1 1 1 0 8 1 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 25 0 25 2 1 1 1 0 8 1 mcl2k 2048 53261 0 53224 14 8 6 10 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 93891 0 93848 12 5 7 10 0 8 1 bufpl 256 22892 0 19779 198 0 198 198 0 8 0 anonpl 16 84372 0 76098 58 4 54 56 0 62 13 amapchunkpl 152 3000 0 2886 6 1 5 6 0 158 0 amappl16 192 4208 0 3684 39 6 33 39 0 8 6 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 315 0 310 2 1 1 1 0 8 0 amappl13 168 8 0 7 1 0 1 1 0 8 0 amappl12 160 15 0 13 1 0 1 1 0 8 0 amappl11 152 41 0 27 1 0 1 1 0 8 0 amappl10 144 63 0 61 2 1 1 1 0 8 0 amappl9 136 857 0 853 1 0 1 1 0 8 0 amappl8 128 424 0 409 1 0 1 1 0 8 0 amappl7 120 32 0 27 1 0 1 1 0 8 0 amappl6 112 54 0 45 1 0 1 1 0 8 0 amappl5 104 127 0 117 1 0 1 1 0 8 0 amappl4 96 966 0 942 2 1 1 2 0 8 0 amappl3 88 142 0 135 1 0 1 1 0 8 0 amappl2 80 5846 0 5803 2 0 2 2 0 8 1 amappl1 72 22273 0 21836 24 14 10 19 0 8 0 amappl 72 1753 0 1720 1 0 1 1 0 75 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 42 0 0 1 0 1 1 0 8 0 uaddrrnd 24 782 0 767 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 782 0 767 1 0 1 1 0 8 0 vmmpekpl 168 8317 0 8301 1 0 1 1 0 8 0 vmmpepl 168 87823 0 86403 112 29 83 83 0 357 19 vmsppl 264 781 0 767 2 1 1 2 0 8 0 pdppl 4096 1570 0 1534 6 1 5 6 0 8 0 pvpl 32 265505 0 254260 146 8 138 140 0 265 34 pmappl 200 781 0 767 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 340 0 19 10 0 10 10 0 8 0