panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff800014a29d28,ffff800014a29d28,9cfda573e0ded934) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda898,ffff800014a29dd0,ffff800014a29d90) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda898,ffff800014941788) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff6d30,fffffd803efda898,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff800014941788,ffff800014a2a398,ffff800014a2a463) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff800014941788,ffff800014a2a4d0,ffff800014a2a540) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a2a5b0) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffc7398,16c078408ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7320, 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(ffff800014a29d28,ffff800014a29d28,9cfda573e0ded934) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda898,ffff800014a29dd0,ffff800014a29d90) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda898,ffff800014941788) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff6d30,fffffd803efda898,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff800014941788,ffff800014a2a398,ffff800014a2a463) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff800014941788,ffff800014a2a4d0,ffff800014a2a540) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a2a5b0) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffc7398,16c078408ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc7320, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014a29b40 rbx 0xffff800014a29bf0 rdx 0x2 rcx 0 rax 0 r8 0xffff800014a29b00 r9 0x1 r10 0 r11 0x1afd77c89dffbdeb r12 0x3000000008 r13 0xffff800014a29b50 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a29b30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=305665 stat=onproc flags process=2 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000149419e0,0xffffffff822b78f0 process=0xffff8000ffff6d30 user=0xffff800014a25000, vmspace=0xfffffd803f014b58 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND * 3642 305665 99216 0 7 0x2 ifconfig 99216 68590 13466 0 3 0x10008a pause sh 13466 102050 11708 0 3 0x82 wait syz-executor.0 98647 33207 36165 0 2 0 syz-executor.1 98647 330408 36165 0 2 0x4000000 syz-executor.1 98647 355138 36165 0 3 0x4000000 physio syz-executor.1 98647 130420 36165 0 2 0x4000000 syz-executor.1 51935 79501 0 0 3 0x14200 bored sosplice 36165 147691 11708 0 3 0x82 nanosleep syz-executor.1 11708 33287 19181 0 3 0x82 thrsleep syz-fuzzer 11708 280257 19181 0 3 0x4000082 thrsleep syz-fuzzer 11708 5585 19181 0 3 0x4000082 thrsleep syz-fuzzer 11708 439240 19181 0 3 0x4000082 thrsleep syz-fuzzer 11708 174149 19181 0 3 0x4000082 thrsleep syz-fuzzer 11708 131275 19181 0 3 0x4000082 kqread syz-fuzzer 11708 452946 19181 0 3 0x4000082 thrsleep syz-fuzzer 11708 363640 19181 0 3 0x4000082 thrsleep syz-fuzzer 19181 504832 9024 0 3 0x10008a pause ksh 9024 465742 87203 0 3 0x92 select sshd 29755 112002 1 0 3 0x100083 ttyin getty 87203 431062 1 0 3 0x80 select sshd 37279 208527 61973 73 2 0x100090 syslogd 61973 211104 1 0 3 0x100082 netio syslogd 75055 404169 1 77 3 0x100090 poll dhclient 30695 233110 1 0 3 0x80 poll dhclient 84171 145868 0 0 3 0x14200 pgzero zerothread 87231 122898 0 0 3 0x14200 aiodoned aiodoned 67654 187397 0 0 3 0x14200 syncer update 33557 462323 0 0 3 0x14200 cleaner cleaner 30730 209952 0 0 3 0x14200 reaper reaper 75403 77938 0 0 3 0x14200 pgdaemon pagedaemon 92085 408173 0 0 3 0x14200 bored crynlk 86784 507900 0 0 3 0x14200 bored crypto 11717 325005 0 0 3 0x40014200 acpi0 acpi0 27398 77455 0 0 3 0x14200 bored softnet 44822 318169 0 0 3 0x14200 bored systqmp 66896 400495 0 0 3 0x14200 bored systq 53380 512450 0 0 3 0x40014200 bored softclock 20000 486958 0 0 3 0x40014200 idle0 58718 471572 0 0 3 0x14200 bored smr 1 504978 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 9511 6350K 6740K 78643K 12116 0 0 pcb 25 9K 10K 78643K 317 0 0 rtable 86 3K 4K 78643K 398 0 0 ifaddr 55 12K 13K 78643K 118 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 43 0 0 iov 0 0K 16K 78643K 86 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 1781 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 10 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 94 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 7 21K 25K 78643K 703 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 44 46K 62K 78643K 422 0 0 subproc 66 67586K 69634K 78643K 170 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 58 0 0 in_multi 22 1K 2K 78643K 71 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 259 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 94 21K 29K 78643K 2421 0 0 UVM aobj 41 2K 2K 78643K 44 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 24 0 0 NDP 12 0K 0K 78643K 35 0 0 temp 161 2709K 2837K 78643K 7575 0 0 kqueue 0 0K 0K 78643K 12 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 10 0 6 1 0 1 1 0 8 0 inpcbpl 280 262 0 255 2 1 1 2 0 8 0 plimitpl 152 43 0 36 1 0 1 1 0 8 0 rtentry 112 67 0 34 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 86 0 86 1 1 0 1 0 8 0 tcpcb 544 92 0 88 1 0 1 1 0 8 0 nd6 48 12 0 9 1 0 1 1 0 8 0 ppxss 1128 8 0 8 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 276 0 132 12 0 12 12 0 8 1 art_table 32 277 0 132 2 0 2 2 0 8 0 art_node 16 66 0 36 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 2 1 0 1 1 0 8 0 semapl 112 92 0 82 1 0 1 1 0 8 0 shmpl 112 42 0 3 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2466 0 1044 46 0 46 46 0 8 0 ffsino 240 2466 0 1044 84 0 84 84 0 8 0 nchpl 144 3604 0 1962 61 0 61 61 0 8 0 uvmvnodes 72 2901 0 0 53 0 53 53 0 8 0 vnodes 200 2901 0 0 153 0 153 153 0 8 0 namei 1024 10391 0 10390 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 20841 0 20840 9 8 1 6 0 8 0 sigapl 432 864 0 849 2 0 2 2 0 8 0 futexpl 56 10458 0 10458 1 0 1 1 0 8 1 knotepl 112 275 0 254 1 0 1 1 0 8 0 kqueuepl 104 147 0 145 1 0 1 1 0 8 0 pipepl 112 522 0 503 2 1 1 1 0 8 0 fdescpl 424 865 0 849 2 0 2 2 0 8 0 filepl 120 4580 0 4479 4 0 4 4 0 8 0 lockfpl 104 214 0 213 2 1 1 1 0 8 0 lockfspl 48 72 0 71 2 1 1 1 0 8 0 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 671 0 664 1 0 1 1 0 8 0 zombiepl 144 849 0 849 2 1 1 1 0 8 1 processpl 840 880 0 849 4 0 4 4 0 8 0 procpl 600 1659 0 1618 4 0 4 4 0 8 0 sosppl 128 9 0 9 2 2 0 1 0 8 0 sockpl 384 544 0 525 3 0 3 3 0 8 1 mcl64k 65536 25 0 25 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 7 0 7 4 3 1 1 0 8 1 mcl9k 9216 8 0 8 3 2 1 1 0 8 1 mcl8k 8192 13 0 13 5 4 1 1 0 8 1 mcl4k 4096 32 0 32 2 1 1 1 0 8 1 mcl2k2 2112 5 0 5 2 2 0 1 0 8 0 mcl2k 2048 58896 0 58852 15 8 7 11 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 99286 0 99221 14 5 9 10 0 8 1 bufpl 256 22636 0 19526 198 0 198 198 0 8 0 anonpl 16 101188 0 88852 68 6 62 62 0 62 12 amapchunkpl 152 3799 0 3649 11 4 7 11 0 158 0 amappl16 192 4588 0 3795 65 25 40 42 0 8 0 amappl15 184 625 0 625 1 0 1 1 0 8 1 amappl14 176 87 0 84 2 1 1 1 0 8 0 amappl13 168 14 0 14 2 2 0 1 0 8 0 amappl12 160 8 0 7 1 0 1 1 0 8 0 amappl11 152 271 0 255 1 0 1 1 0 8 0 amappl10 144 69 0 66 2 1 1 1 0 8 0 amappl9 136 605 0 602 1 0 1 1 0 8 0 amappl8 128 195 0 179 1 0 1 1 0 8 0 amappl7 120 44 0 36 1 0 1 1 0 8 0 amappl6 112 280 0 269 1 0 1 1 0 8 0 amappl5 104 209 0 197 1 0 1 1 0 8 0 amappl4 96 1036 0 1012 2 1 1 2 0 8 0 amappl3 88 132 0 126 1 0 1 1 0 8 0 amappl2 80 6501 0 6449 2 0 2 2 0 8 0 amappl1 72 24162 0 23704 24 15 9 19 0 8 0 amappl 72 1957 0 1910 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 43 0 3 1 0 1 1 0 8 0 uaddrrnd 24 865 0 849 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 865 0 849 1 0 1 1 0 8 0 vmmpekpl 168 9583 0 9566 2 0 2 2 0 8 0 vmmpepl 168 96702 0 94907 131 31 100 100 0 357 21 vmsppl 264 864 0 849 2 1 1 2 0 8 0 pdppl 4096 1736 0 1698 6 1 5 6 0 8 0 pvpl 32 295282 0 279839 162 9 153 153 0 265 28 pmappl 200 864 0 849 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 348 0 24 10 0 10 10 0 8 0