panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149e1ec8,ffff8000149e1ec8,e32936898d1b8672) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda320,ffff8000149e1f70,ffff8000149e1f30) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda320,ffff800014940978) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff6d30,fffffd803efda320,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff800014940978,ffff8000149e2538,ffff8000149e2603) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff800014940978,ffff8000149e2670,ffff8000149e26e0) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149e2750) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffebee8,72a1f408ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffebe70, 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(ffff8000149e1ec8,ffff8000149e1ec8,e32936898d1b8672) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda320,ffff8000149e1f70,ffff8000149e1f30) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda320,ffff800014940978) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff6d30,fffffd803efda320,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff800014940978,ffff8000149e2538,ffff8000149e2603) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff800014940978,ffff8000149e2670,ffff8000149e26e0) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149e2750) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffebee8,72a1f408ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffebe70, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149e1ce0 rbx 0xffff8000149e1d90 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149e1ca0 r9 0x1 r10 0 r11 0x64da20afc9dc47d3 r12 0x3000000008 r13 0xffff8000149e1cf0 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149e1cd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=111733 stat=onproc flags process=2 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800014941788,0xffffffff822b78f0 process=0xffff8000ffff6d30 user=0xffff8000149dd000, vmspace=0xfffffd803f014210 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *32873 111733 59001 0 7 0x2 ifconfig 59001 321527 74247 0 3 0x10008a pause sh 74247 184876 77910 0 3 0x82 wait syz-executor.0 16378 159115 77910 0 3 0x82 piperd syz-executor.1 97268 370175 1 0 3 0x100083 ttyin getty 5206 497490 0 0 3 0x14200 bored sosplice 77910 417160 27861 0 3 0x82 kqread syz-fuzzer 77910 492624 27861 0 3 0x4000082 thrsleep syz-fuzzer 77910 294008 27861 0 3 0x4000082 thrsleep syz-fuzzer 77910 427898 27861 0 3 0x4000082 thrsleep syz-fuzzer 77910 499097 27861 0 3 0x4000082 thrsleep syz-fuzzer 77910 235698 27861 0 3 0x4000082 thrsleep syz-fuzzer 77910 278122 27861 0 3 0x4000082 thrsleep syz-fuzzer 77910 270049 27861 0 3 0x4000082 thrsleep syz-fuzzer 27861 19463 86630 0 3 0x10008a pause ksh 86630 467004 89914 0 3 0x92 select sshd 89914 116004 1 0 3 0x80 select sshd 48241 36572 33679 73 2 0x100010 syslogd 33679 138002 1 0 3 0x100082 netio syslogd 41092 64073 1 77 3 0x100090 poll dhclient 75492 522857 1 0 3 0x80 poll dhclient 81365 19306 0 0 3 0x14200 pgzero zerothread 59325 310876 0 0 3 0x14200 aiodoned aiodoned 55747 81044 0 0 3 0x14200 syncer update 7087 404719 0 0 3 0x14200 cleaner cleaner 83676 384859 0 0 3 0x14200 reaper reaper 94064 513944 0 0 3 0x14200 pgdaemon pagedaemon 48456 116623 0 0 3 0x14200 bored crynlk 38743 46864 0 0 3 0x14200 bored crypto 56417 468780 0 0 3 0x40014200 acpi0 acpi0 13853 194007 0 0 3 0x14200 bored softnet 3470 385563 0 0 3 0x14200 bored systqmp 4657 405460 0 0 3 0x14200 bored systq 54512 131967 0 0 3 0x40014200 bored softclock 19760 32231 0 0 3 0x40014200 idle0 98764 495152 0 0 3 0x14200 bored smr 1 114553 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 9519 6353K 6983K 78643K 13579 0 0 pcb 23 9K 10K 78643K 520 0 0 rtable 86 3K 4K 78643K 591 0 0 ifaddr 58 13K 15K 78643K 176 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 52 0 0 iov 0 0K 24K 78643K 175 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1213 76K 76K 78643K 2259 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 142 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 1159 0 0 sigio 0 0K 0K 78643K 34 0 0 proc 44 46K 62K 78643K 620 0 0 subproc 66 67586K 69634K 78643K 273 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 144 0 0 in_multi 22 1K 2K 78643K 122 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 0 0K 0K 78643K 4 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 344 0 0 pfkey data 0 0K 0K 78643K 2 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 83 20K 29K 78643K 3635 0 0 UVM aobj 51 2K 3K 78643K 59 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 13 0K 0K 78643K 54 0 0 temp 177 2711K 2839K 78643K 9411 0 0 kqueue 0 0K 0K 78643K 6 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 502 0 495 1 0 1 1 0 8 0 plimitpl 152 79 0 72 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 170 0 166 1 0 1 1 0 8 0 nd6 48 21 0 18 1 0 1 1 0 8 0 ppxss 1128 18 0 18 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 13 0 13 13 0 8 1 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 12 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 134 0 124 1 0 1 1 0 8 0 shmpl 112 57 0 8 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3130 0 1689 47 0 47 47 0 8 0 ffsino 240 3130 0 1689 85 0 85 85 0 8 0 nchpl 144 4853 0 3206 62 0 62 62 0 8 0 uvmvnodes 72 3947 0 0 72 0 72 72 0 8 0 vnodes 200 3947 0 0 208 0 208 208 0 8 0 namei 1024 15155 0 15154 2 1 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 29298 0 29298 12 11 1 6 0 8 1 sigapl 432 1312 0 1298 2 0 2 2 0 8 0 futexpl 56 18432 0 18432 1 0 1 1 0 8 1 knotepl 112 389 0 368 1 0 1 1 0 8 0 kqueuepl 104 273 0 271 1 0 1 1 0 8 0 pipepl 112 874 0 855 3 2 1 2 0 8 0 fdescpl 424 1313 0 1298 2 0 2 2 0 8 0 filepl 120 7617 0 7523 4 0 4 4 0 8 1 lockfpl 104 513 0 513 2 1 1 1 0 8 1 lockfspl 48 159 0 159 2 1 1 1 0 8 1 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 30 0 20 1 0 1 1 0 8 0 ucredpl 96 1252 0 1245 1 0 1 1 0 8 0 zombiepl 144 1298 0 1298 2 1 1 1 0 8 1 processpl 840 1328 0 1298 4 0 4 4 0 8 0 procpl 600 2736 0 2699 4 0 4 4 0 8 0 sosppl 128 14 0 14 4 4 0 1 0 8 0 sockpl 384 950 0 933 3 0 3 3 0 8 1 mcl64k 65536 529 0 529 35 35 0 33 0 8 0 mcl16k 16384 4 0 4 3 3 0 1 0 8 0 mcl12k 12288 20 0 20 6 5 1 1 0 8 1 mcl9k 9216 17 0 17 6 6 0 1 0 8 0 mcl8k 8192 18 0 18 6 6 0 1 0 8 0 mcl4k 4096 58 0 58 2 1 1 1 0 8 1 mcl2k2 2112 7 0 7 4 4 0 1 0 8 0 mcl2k 2048 59401 0 59358 18 12 6 12 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 103240 0 103181 35 28 7 22 0 8 0 bufpl 256 27180 0 24073 198 0 198 198 0 8 0 anonpl 16 135528 0 126760 89 28 61 61 0 62 15 amapchunkpl 152 6370 0 6254 21 15 6 10 0 158 0 amappl16 192 6898 0 6303 71 32 39 43 0 8 8 amappl15 184 9 0 8 2 1 1 1 0 8 0 amappl14 176 367 0 362 2 1 1 1 0 8 0 amappl13 168 183 0 183 4 3 1 1 0 8 1 amappl12 160 171 0 170 2 1 1 1 0 8 0 amappl11 152 55 0 41 1 0 1 1 0 8 0 amappl10 144 235 0 234 2 1 1 1 0 8 0 amappl9 136 629 0 625 1 0 1 1 0 8 0 amappl8 128 190 0 171 1 0 1 1 0 8 0 amappl7 120 210 0 201 1 0 1 1 0 8 0 amappl6 112 60 0 51 1 0 1 1 0 8 0 amappl5 104 329 0 318 1 0 1 1 0 8 0 amappl4 96 1155 0 1126 2 1 1 2 0 8 0 amappl3 88 918 0 910 1 0 1 1 0 8 0 amappl2 80 10245 0 10204 2 0 2 2 0 8 0 amappl1 72 33776 0 33346 24 15 9 19 0 8 0 amappl 72 3066 0 3031 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 58 0 8 1 0 1 1 0 8 0 uaddrrnd 24 1313 0 1298 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1313 0 1298 1 0 1 1 0 8 0 vmmpekpl 168 13070 0 13046 2 0 2 2 0 8 0 vmmpepl 168 142012 0 140520 145 56 89 89 0 357 18 vmsppl 264 1312 0 1298 2 1 1 2 0 8 0 pdppl 4096 2632 0 2596 6 1 5 6 0 8 0 pvpl 32 390791 0 379009 205 50 155 155 0 265 40 pmappl 200 1312 0 1298 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 410 0 89 11 0 11 11 0 8 0