panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff800020c2b558,ffff800020c2b558,152fb50ca628f90a) at ufs_dirbadentry VOP_LOOKUP(fffffd807efbd578,ffff800020c2b600,ffff800020c2b5c0) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd807efbd578,ffff800020b38270) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode() at unveil_add_vnode+0x221 sys/kern/kern_unveil.c:471 unveil_add(ffff800020b38270,ffff800020c2bbc8,ffff800020c2bc93) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff800020b38270,ffff800020c2bd00,ffff800020c2bd70) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800020c2bde0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2bde0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,72,1,72,7f7ffffe75e8,da09fc08ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe7570, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic bad dir ddb{0}> 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(ffff800020c2b558,ffff800020c2b558,152fb50ca628f90a) at ufs_dirbadentry VOP_LOOKUP(fffffd807efbd578,ffff800020c2b600,ffff800020c2b5c0) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd807efbd578,ffff800020b38270) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode() at unveil_add_vnode+0x221 sys/kern/kern_unveil.c:471 unveil_add(ffff800020b38270,ffff800020c2bbc8,ffff800020c2bc93) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff800020b38270,ffff800020c2bd00,ffff800020c2bd70) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800020c2bde0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c2bde0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,72,1,72,7f7ffffe75e8,da09fc08ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe7570, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020c2b370 rbx 0xffff800020c2b420 rdx 0xffff800020b38270 rcx 0 rax 0 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xc22a0917b1043f1b r12 0x3000000008 r13 0xffff800020c2b380 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c2b360 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (ifconfig) pid=324854 stat=onproc flags process=2 proc=0 pri=17, usrpri=75, nice=20 forw=0xffffffffffffffff, list=0xffff800020b392d8,0xffffffff82341258 process=0xffff800020b8c018 user=0xffff800020c26000, vmspace=0xfffffd807effe870 estcpu=25, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *51274 324854 14258 0 7 0x2 ifconfig 14258 171955 65141 0 3 0x10008a pause sh 65141 336653 99916 0 3 0x82 wait syz-executor.1 37416 381668 0 0 3 0x14200 bored sosplice 62579 505479 99916 0 3 0x82 piperd syz-executor.0 99916 192700 68199 0 3 0x82 thrsleep syz-fuzzer 99916 99196 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 361869 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 337180 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 283063 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 138904 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 313038 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 203467 68199 0 3 0x4000082 thrsleep syz-fuzzer 99916 377192 68199 0 3 0x4000082 kqread syz-fuzzer 99916 318448 68199 0 3 0x4000082 thrsleep syz-fuzzer 68199 180326 46541 0 3 0x10008a pause ksh 46541 466515 50341 0 3 0x92 select sshd 60341 298212 1 0 3 0x100083 ttyin getty 50341 50893 1 0 3 0x80 select sshd 74111 310295 76507 74 7 0x100012 pflogd 76507 431283 1 0 3 0x80 netio pflogd 63072 313057 3591 73 2 0x100090 syslogd 3591 112379 1 0 3 0x100082 netio syslogd 73138 301682 1 77 3 0x100090 poll dhclient 47367 510366 1 0 3 0x80 poll dhclient 41994 468906 0 0 3 0x14200 pgzero zerothread 37250 319346 0 0 3 0x14200 aiodoned aiodoned 10063 286444 0 0 3 0x14200 syncer update 25652 373796 0 0 3 0x14200 cleaner cleaner 67418 479226 0 0 3 0x14200 reaper reaper 67387 61221 0 0 3 0x14200 pgdaemon pagedaemon 59301 343177 0 0 3 0x14200 bored crynlk 29672 207181 0 0 3 0x14200 bored crypto 58928 301161 0 0 3 0x40014200 acpi0 acpi0 52548 317385 0 0 3 0x40014200 idle1 43228 254251 0 0 3 0x14200 bored softnet 68544 22527 0 0 3 0x14200 bored systqmp 74465 379203 0 0 3 0x14200 bored systq 1525 454454 0 0 3 0x40014200 bored softclock 8721 15559 0 0 3 0x40014200 idle0 36809 489263 0 0 3 0x14200 bored smr 1 489005 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 51274 (ifconfig) thread 0xffff800020b38270 (324854) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82390318) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x38c sys/kern/sched_bsd.c:439 #3 sleep_finish+0x110 sys/kern/kern_synch.c:303 #4 sleep_finish_all+0x34 sleep_finish_timeout sys/kern/kern_synch.c:327 [inline] #4 sleep_finish_all+0x34 sys/kern/kern_synch.c:157 #5 tsleep+0x195 sys/kern/kern_synch.c:149 #6 biowait+0xa1 sys/kern/vfs_bio.c:1228 #7 ffs_bufatoff+0x14f sys/ufs/ffs/ffs_subr.c:71 #8 ufs_lookup+0x48d sys/ufs/ufs/ufs_lookup.c:258 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 #11 unveil_add_vnode+0x221 sys/kern/kern_unveil.c:471 #12 unveil_add+0x273 sys/kern/kern_unveil.c:597 #13 sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 #14 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #14 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #15 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807ed144d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rw_enter+0x414 sys/kern/kern_rwlock.c:278 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:407 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vget+0x1c3 sys/kern/vfs_subr.c:672 #6 unveil_find_cover+0x10d sys/kern/kern_unveil.c:286 #7 unveil_add_vnode+0x221 sys/kern/kern_unveil.c:471 #8 unveil_add+0x273 sys/kern/kern_unveil.c:597 #9 sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 #10 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #10 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #11 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9460 6385K 6775K 78643K 10720 0 0 pcb 25 9K 10K 78643K 97 0 0 rtable 83 2K 3K 78643K 207 0 0 ifaddr 32 9K 10K 78643K 39 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1473 0 0 iov 0 0K 12K 78643K 14 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 75K 78643K 1290 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 4 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 24 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 25K 78643K 123 0 0 proc 55 70K 91K 78643K 371 0 0 subproc 66 67586K 69634K 78643K 102 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 6 0 0 in_multi 22 1K 2K 78643K 34 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 225 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 81 20K 29K 78643K 1245 0 0 UVM aobj 7 2K 2K 78643K 8 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 4 0 0 NDP 5 0K 0K 78643K 10 0 0 temp 81 2716K 2780K 78643K 5841 0 0 kqueue 0 0K 0K 78643K 1 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> 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 71 0 64 1 0 1 1 0 8 0 plimitpl 152 18 0 10 1 0 1 1 0 8 0 plcache 128 20 0 0 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 tcpqe 32 13 0 13 1 1 0 1 0 8 0 tcpcb 544 18 0 14 1 0 1 1 0 8 0 nd6 48 6 0 3 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 11 0 3 1 0 1 1 0 8 0 pfstkey 112 11 0 3 1 0 1 1 0 8 0 pfstate 328 11 0 3 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 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 1 0 1 1 0 1 1 0 8 1 semapl 112 18 0 8 1 0 1 1 0 8 0 shmpl 112 6 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1592 0 173 46 0 46 46 0 8 0 ffsino 272 1592 0 173 95 0 95 95 0 8 0 nchpl 144 1951 0 315 61 0 61 61 0 8 0 uvmvnodes 72 1695 0 0 31 0 31 31 0 8 0 vnodes 200 1695 0 0 90 0 90 90 0 8 0 namei 1024 5227 0 5226 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 11749 0 11749 7 6 1 6 0 8 1 sigapl 432 319 0 303 3 1 2 3 0 8 0 futexpl 56 1172 0 1172 1 0 1 1 0 8 1 knotepl 112 84 0 63 1 0 1 1 0 8 0 kqueuepl 104 12 0 10 1 0 1 1 0 8 0 pipepl 112 196 0 177 2 1 1 1 0 8 0 fdescpl 488 320 0 303 4 1 3 3 0 8 0 filepl 152 1650 0 1551 5 0 5 5 0 8 1 lockfpl 104 36 0 36 2 1 1 1 0 8 1 lockfspl 48 12 0 12 2 1 1 1 0 8 1 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 19 0 8 1 0 1 1 0 8 0 ucredpl 96 161 0 152 1 0 1 1 0 8 0 zombiepl 144 303 0 303 2 1 1 1 0 8 1 processpl 840 336 0 303 4 0 4 4 0 8 0 procpl 600 533 0 491 4 0 4 4 0 8 0 srpgc 64 6 0 6 1 0 1 1 0 8 1 sosppl 128 4 0 4 1 0 1 1 0 8 1 sockpl 384 149 0 130 3 0 3 3 0 8 1 mcl64k 65536 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 130 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 196 0 0 11 0 11 11 0 8 0 bufpl 256 18240 0 12025 390 0 390 390 0 8 0 anonpl 16 47295 0 38510 59 5 54 57 0 125 11 amapchunkpl 152 1729 0 1626 9 0 9 9 0 158 4 amappl16 192 1395 0 825 39 4 35 39 0 8 5 amappl15 184 49 0 49 1 0 1 1 0 8 1 amappl14 176 76 0 70 2 1 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 20 0 16 1 0 1 1 0 8 0 amappl11 152 48 0 29 1 0 1 1 0 8 0 amappl10 144 77 0 70 1 0 1 1 0 8 0 amappl9 136 603 0 599 1 0 1 1 0 8 0 amappl8 128 145 0 130 1 0 1 1 0 8 0 amappl7 120 41 0 35 1 0 1 1 0 8 0 amappl6 112 55 0 50 1 0 1 1 0 8 0 amappl5 104 119 0 103 1 0 1 1 0 8 0 amappl4 96 564 0 534 2 1 1 2 0 8 0 amappl3 88 116 0 111 1 0 1 1 0 8 0 amappl2 80 1538 0 1492 2 0 2 2 0 8 0 amappl1 72 16802 0 16340 25 15 10 20 0 8 0 amappl 72 796 0 760 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 7 0 1 1 0 1 1 0 8 0 uaddrrnd 24 320 0 303 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 320 0 303 1 0 1 1 0 8 0 vmmpekpl 168 6593 0 6570 2 0 2 2 0 8 0 vmmpepl 168 43056 0 41515 122 18 104 110 0 357 31 vmsppl 360 319 0 303 2 0 2 2 0 8 0 pdppl 4096 648 0 606 7 1 6 6 0 8 0 pvpl 32 159434 0 147475 148 7 141 144 0 265 28 pmappl 232 319 0 303 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 543 0 5 16 0 16 16 0 8 0