panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149c45f8,ffff8000149c45f8,d2f758f060273911) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda640,ffff8000149c46a0,ffff8000149c4660) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda640,ffff8000ffff2e28) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff6358,fffffd803efda640,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff2e28,ffff8000149c4c68,ffff8000149c4d33) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff2e28,ffff8000149c4da0,ffff8000149c4e10) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149c4e80) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffdd238,19690108ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd1c0, 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(ffff8000149c45f8,ffff8000149c45f8,d2f758f060273911) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda640,ffff8000149c46a0,ffff8000149c4660) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda640,ffff8000ffff2e28) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff6358,fffffd803efda640,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff2e28,ffff8000149c4c68,ffff8000149c4d33) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff2e28,ffff8000149c4da0,ffff8000149c4e10) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149c4e80) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffdd238,19690108ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd1c0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149c4410 rbx 0xffff8000149c44c0 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149c43d0 r9 0x1 r10 0 r11 0xcd8e8491bb5eb85a r12 0x3000000008 r13 0xffff8000149c4420 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149c4400 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=458609 stat=onproc flags process=2 proc=0 pri=17, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2978,0xffffffff822b78f0 process=0xffff8000ffff6358 user=0xffff8000149bf000, vmspace=0xfffffd803f014210 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *68535 458609 50568 0 7 0x2 ifconfig 50568 323877 14568 0 3 0x10008a pause sh 14568 401422 19372 0 3 0x82 wait syz-executor.1 46999 297907 19372 0 3 0x82 piperd syz-executor.0 93124 155539 0 0 3 0x14200 bored sosplice 19372 20210 63962 0 3 0x82 thrsleep syz-fuzzer 19372 171640 63962 0 3 0x4000082 thrsleep syz-fuzzer 19372 86060 63962 0 3 0x4000082 thrsleep syz-fuzzer 19372 218862 63962 0 3 0x4000082 thrsleep syz-fuzzer 19372 88479 63962 0 3 0x4000082 thrsleep syz-fuzzer 19372 216265 63962 0 3 0x4000082 kqread syz-fuzzer 19372 217114 63962 0 3 0x4000082 thrsleep syz-fuzzer 19372 268500 63962 0 3 0x4000082 thrsleep syz-fuzzer 19372 443576 63962 0 3 0x4000082 thrsleep syz-fuzzer 63962 33054 53773 0 3 0x10008a pause ksh 53773 245166 1635 0 3 0x92 select sshd 94676 47773 1 0 3 0x100083 ttyin getty 1635 183870 1 0 3 0x80 select sshd 41057 498893 4688 73 2 0x100090 syslogd 4688 295072 1 0 3 0x100082 netio syslogd 96946 509794 1 77 3 0x100090 poll dhclient 81292 333475 1 0 3 0x80 poll dhclient 42027 253343 0 0 3 0x14200 pgzero zerothread 53009 397836 0 0 3 0x14200 aiodoned aiodoned 99008 453767 0 0 3 0x14200 syncer update 96754 147173 0 0 3 0x14200 cleaner cleaner 75964 447899 0 0 3 0x14200 reaper reaper 20473 427846 0 0 3 0x14200 pgdaemon pagedaemon 9667 435339 0 0 3 0x14200 bored crynlk 66506 222239 0 0 3 0x14200 bored crypto 51388 195756 0 0 3 0x40014200 acpi0 acpi0 88967 443476 0 0 3 0x14200 bored softnet 19620 159722 0 0 3 0x14200 bored systqmp 92632 514199 0 0 3 0x14200 bored systq 39901 297300 0 0 3 0x40014200 bored softclock 50763 506481 0 0 3 0x40014200 idle0 89084 282150 0 0 3 0x14200 bored smr 1 111062 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 9495 6344K 6863K 78643K 12505 0 0 pcb 23 9K 11K 78643K 537 0 0 rtable 86 3K 4K 78643K 530 0 0 ifaddr 49 11K 13K 78643K 143 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 47 0 0 iov 0 0K 16K 78643K 92 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 75K 78643K 1944 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 11 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 109 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 878 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 44 46K 62K 78643K 570 0 0 subproc 66 67586K 69634K 78643K 272 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 78 0 0 in_multi 22 1K 2K 78643K 103 0 0 ether_multi 1 0K 0K 78643K 3 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 313 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 85 20K 30K 78643K 2962 0 0 UVM aobj 48 4K 4K 78643K 52 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 35 0 0 NDP 10 0K 0K 78643K 45 0 0 temp 155 2707K 2835K 78643K 8475 0 0 kqueue 0 0K 0K 78643K 10 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 16 0 12 1 0 1 1 0 8 0 inpcbpl 280 384 0 377 1 0 1 1 0 8 0 plimitpl 152 61 0 54 1 0 1 1 0 8 0 rtentry 112 100 0 67 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 142 0 138 1 0 1 1 0 8 0 nd6 48 21 0 18 1 0 1 1 0 8 0 ppxss 1128 12 0 12 4 4 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 418 0 270 12 0 12 12 0 8 0 art_table 32 419 0 270 2 0 2 2 0 8 0 art_node 16 99 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 103 0 93 1 0 1 1 0 8 0 shmpl 112 50 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2712 0 1280 47 0 47 47 0 8 0 ffsino 240 2712 0 1280 85 0 85 85 0 8 0 nchpl 144 4040 0 2390 62 0 62 62 0 8 0 uvmvnodes 72 3266 0 0 60 0 60 60 0 8 0 vnodes 200 3266 0 0 172 0 172 172 0 8 0 namei 1024 11958 0 11957 2 1 1 1 0 8 0 scsiplug 64 6 0 6 3 2 1 1 0 8 1 scxspl 192 23829 0 23829 12 11 1 6 0 8 1 sigapl 432 1030 0 1016 2 0 2 2 0 8 0 futexpl 56 13227 0 13227 1 0 1 1 0 8 1 knotepl 112 322 0 301 1 0 1 1 0 8 0 kqueuepl 104 208 0 206 1 0 1 1 0 8 0 pipepl 112 680 0 661 3 1 2 2 0 8 1 fdescpl 424 1031 0 1016 2 0 2 2 0 8 0 filepl 120 5848 0 5754 6 2 4 6 0 8 1 lockfpl 104 257 0 257 2 1 1 1 0 8 1 lockfspl 48 82 0 82 2 1 1 1 0 8 1 sessionpl 112 23 0 13 1 0 1 1 0 8 0 pgrppl 48 41 0 31 1 0 1 1 0 8 0 ucredpl 96 856 0 849 1 0 1 1 0 8 0 zombiepl 144 1016 0 1016 4 3 1 1 0 8 1 processpl 840 1046 0 1016 4 0 4 4 0 8 0 procpl 600 2068 0 2030 4 0 4 4 0 8 0 sosppl 128 13 0 13 4 4 0 1 0 8 0 sockpl 384 840 0 823 4 1 3 4 0 8 1 mcl64k 65536 293 0 293 35 5 30 33 0 8 30 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 12 0 12 6 5 1 1 0 8 1 mcl9k 9216 14 0 14 5 4 1 1 0 8 1 mcl8k 8192 21 0 21 5 4 1 1 0 8 1 mcl4k 4096 48 0 48 4 3 1 1 0 8 1 mcl2k2 2112 5 0 5 3 3 0 1 0 8 0 mcl2k 2048 58719 0 58677 17 10 7 12 0 8 0 mtagpl 80 4 0 4 2 2 0 1 0 8 0 mbufpl 256 100073 0 100012 28 13 15 22 0 8 8 bufpl 256 26077 0 22970 198 0 198 198 0 8 0 anonpl 16 123546 0 114565 80 19 61 61 0 62 16 amapchunkpl 152 5213 0 5105 20 13 7 15 0 158 2 amappl16 192 5719 0 5128 79 41 38 42 0 8 8 amappl15 184 66 0 66 1 1 0 1 0 8 0 amappl14 176 319 0 316 2 1 1 1 0 8 0 amappl13 168 12 0 10 1 0 1 1 0 8 0 amappl12 160 13 0 11 1 0 1 1 0 8 0 amappl11 152 57 0 43 1 0 1 1 0 8 0 amappl10 144 71 0 70 2 1 1 1 0 8 0 amappl9 136 1096 0 1092 1 0 1 1 0 8 0 amappl8 128 702 0 683 1 0 1 1 0 8 0 amappl7 120 52 0 48 1 0 1 1 0 8 0 amappl6 112 57 0 49 1 0 1 1 0 8 0 amappl5 104 219 0 207 1 0 1 1 0 8 0 amappl4 96 1227 0 1198 2 1 1 2 0 8 0 amappl3 88 348 0 342 1 0 1 1 0 8 0 amappl2 80 7553 0 7510 3 1 2 2 0 8 0 amappl1 72 28174 0 27741 24 15 9 19 0 8 0 amappl 72 2405 0 2369 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 51 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1031 0 1016 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1031 0 1016 1 0 1 1 0 8 0 vmmpekpl 168 11042 0 11023 3 2 1 2 0 8 0 vmmpepl 168 114933 0 113438 153 63 90 106 0 357 19 vmsppl 264 1030 0 1016 3 2 1 2 0 8 0 pdppl 4096 2068 0 2032 6 1 5 6 0 8 0 pvpl 32 388591 0 376546 243 72 171 225 0 265 58 pmappl 200 1030 0 1016 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 400 0 40 11 0 11 11 0 8 0