panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149dfb38,ffff8000149dfb38,fa49bca3063f25ca) at ufs_dirbadentry VOP_LOOKUP(fffffd803efdaa28,ffff8000149dfd38,ffff8000149dfd88) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000149dfd08) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000149dfd08) at namei+0x45f sys/kern/vfs_lookup.c:224 dofstatat(ffff8000ffff8bc0,ffffff9c,20000180,20000300,0) at dofstatat+0xab sys/kern/vfs_syscalls.c:1892 syscall(ffff8000149dffb0) at syscall+0x511 Xsyscall(6,0,fffffffffffffffc,0,2,a729391b010) at Xsyscall+0x128 end of kernel end trace frame: 0x38a, count: 6 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(ffff8000149dfb38,ffff8000149dfb38,fa49bca3063f25ca) at ufs_dirbadentry VOP_LOOKUP(fffffd803efdaa28,ffff8000149dfd38,ffff8000149dfd88) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000149dfd08) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000149dfd08) at namei+0x45f sys/kern/vfs_lookup.c:224 dofstatat(ffff8000ffff8bc0,ffffff9c,20000180,20000300,0) at dofstatat+0xab sys/kern/vfs_syscalls.c:1892 syscall(ffff8000149dffb0) at syscall+0x511 Xsyscall(6,0,fffffffffffffffc,0,2,a729391b010) at Xsyscall+0x128 end of kernel end trace frame: 0x38a, count: -9 ddb> show registers rdi 0xffffffff81a73677 db_enter+0x17 rsi 0x2366 __ALIGN_SIZE+0x1366 rbp 0xffff8000149df950 rbx 0xffff8000149dfa00 rdx 0x2367 __ALIGN_SIZE+0x1367 rcx 0xffff800004996000 rax 0xffff800004996000 r8 0xffff8000149df910 r9 0x1 r10 0xffff800004195600 r11 0x6f7bd1819214df5d r12 0x3000000008 r13 0xffff8000149df960 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149df940 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=488466 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8008,0xffff8000ffff92d8 process=0xffff8000ffff6358 user=0xffff8000149db000, vmspace=0xfffffd803f014948 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21792 65452 64836 0 2 0 syz-executor.1 21792 469681 64836 0 2 0x4000000 syz-executor.1 70109 216410 21416 0 2 0 syz-executor.0 *70109 488466 21416 0 7 0x4000000 syz-executor.0 21416 167246 21377 0 2 0x482 syz-executor.0 73494 218753 0 0 3 0x14200 bored sosplice 64836 496445 21377 0 2 0x482 syz-executor.1 6785 359857 1 0 3 0x100083 ttyin getty 21377 388775 54510 0 3 0x82 thrsleep syz-fuzzer 21377 76629 54510 0 3 0x4000082 thrsleep syz-fuzzer 21377 295590 54510 0 3 0x4000082 thrsleep syz-fuzzer 21377 220190 54510 0 3 0x4000082 kqread syz-fuzzer 21377 21791 54510 0 3 0x4000082 thrsleep syz-fuzzer 21377 100033 54510 0 3 0x4000082 thrsleep syz-fuzzer 21377 512205 54510 0 3 0x4000082 thrsleep syz-fuzzer 21377 501744 54510 0 3 0x4000082 thrsleep syz-fuzzer 54510 9089 1576 0 3 0x10008a pause ksh 1576 224125 80966 0 3 0x92 select sshd 80966 270820 1 0 3 0x80 select sshd 2702 28924 95225 73 2 0x100090 syslogd 95225 30389 1 0 3 0x100082 netio syslogd 45570 473752 1 77 3 0x100090 poll dhclient 13196 41232 1 0 3 0x80 poll dhclient 87714 135109 0 0 2 0x14200 zerothread 62182 451160 0 0 3 0x14200 aiodoned aiodoned 83507 48672 0 0 3 0x14200 syncer update 37156 82900 0 0 3 0x14200 cleaner cleaner 30523 83243 0 0 3 0x14200 reaper reaper 30898 485075 0 0 3 0x14200 pgdaemon pagedaemon 58224 2688 0 0 3 0x14200 bored crynlk 57085 407121 0 0 3 0x14200 bored crypto 32761 175056 0 0 3 0x40014200 acpi0 acpi0 61997 295229 0 0 3 0x14200 bored softnet 90176 26416 0 0 3 0x14200 bored systqmp 16953 482008 0 0 3 0x14200 bored systq 14260 98974 0 0 3 0x40014200 bored softclock 73492 166866 0 0 3 0x40014200 idle0 64017 244765 0 0 3 0x14200 bored smr 1 465040 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 9481 6404K 6856K 78643K 12031 0 0 pcb 23 9K 10K 78643K 299 0 0 rtable 108 3K 4K 78643K 379 0 0 ifaddr 49 12K 13K 78643K 112 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 27 0 0 iov 0 0K 12K 78643K 46 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1201 75K 76K 78643K 1702 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 7 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 76 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 575 0 0 sigio 0 0K 0K 78643K 5 0 0 proc 42 30K 62K 78643K 420 0 0 subproc 64 65538K 69634K 78643K 136 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 36 0 0 in_multi 33 2K 2K 78643K 69 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 234 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 82 20K 25K 78643K 2183 0 0 UVM aobj 31 2K 2K 78643K 31 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 12 0 0 NDP 9 0K 0K 78643K 32 0 0 temp 124 2704K 2832K 78643K 7233 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 4 1 0 1 1 0 8 0 inpcbpl 280 248 0 241 1 0 1 1 0 8 0 plimitpl 152 44 0 37 1 0 1 1 0 8 0 rtentry 112 67 0 23 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 78 0 74 1 0 1 1 0 8 0 nd6 48 12 0 6 1 0 1 1 0 8 0 ppxss 1128 11 0 11 4 3 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 279 0 88 12 0 12 12 0 8 0 art_table 32 280 0 88 2 0 2 2 0 8 0 art_node 16 66 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semapl 112 74 0 64 1 0 1 1 0 8 0 shmpl 112 29 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2214 0 799 46 0 46 46 0 8 0 ffsino 240 2214 0 799 84 0 84 84 0 8 0 nchpl 144 3149 0 1514 61 0 61 61 0 8 0 uvmvnodes 72 2636 0 0 48 0 48 48 0 8 0 vnodes 200 2636 0 0 139 0 139 139 0 8 0 namei 1024 8876 0 8875 2 1 1 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 18486 0 18486 12 11 1 6 0 8 1 sigapl 432 740 0 726 2 0 2 2 0 8 0 futexpl 56 8473 0 8473 1 0 1 1 0 8 1 knotepl 112 209 0 190 1 0 1 1 0 8 0 kqueuepl 104 127 0 125 1 0 1 1 0 8 0 pipepl 112 452 0 433 3 1 2 2 0 8 1 fdescpl 424 741 0 726 2 0 2 2 0 8 0 filepl 120 3985 0 3889 4 0 4 4 0 8 1 lockfpl 104 171 0 171 2 1 1 1 0 8 1 lockfspl 48 56 0 56 2 1 1 1 0 8 1 sessionpl 112 20 0 10 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 556 0 549 1 0 1 1 0 8 0 zombiepl 144 726 0 726 2 1 1 1 0 8 1 processpl 840 756 0 726 4 0 4 4 0 8 0 procpl 600 1438 0 1399 4 0 4 4 0 8 1 sosppl 128 5 0 5 2 1 1 1 0 8 1 sockpl 384 494 0 477 3 0 3 3 0 8 1 mcl64k 65536 262 0 262 33 26 7 32 0 8 7 mcl12k 12288 7 0 7 2 2 0 1 0 8 0 mcl9k 9216 5 0 5 3 2 1 1 0 8 1 mcl8k 8192 4 0 4 3 3 0 1 0 8 0 mcl4k 4096 32 0 32 4 3 1 1 0 8 1 mcl2k 2048 58169 0 58124 14 7 7 11 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 97413 0 97331 24 16 8 22 0 8 0 bufpl 256 22212 0 19105 198 0 198 198 0 8 0 anonpl 16 91583 0 80614 76 25 51 59 0 62 6 amapchunkpl 152 3284 0 3174 10 5 5 7 0 158 0 amappl16 192 4230 0 3635 67 33 34 42 0 8 4 amappl14 176 113 0 111 2 1 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 266 0 263 1 0 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 74 0 73 2 1 1 1 0 8 0 amappl9 136 780 0 774 1 0 1 1 0 8 0 amappl8 128 345 0 327 1 0 1 1 0 8 0 amappl7 120 39 0 34 1 0 1 1 0 8 0 amappl6 112 66 0 56 1 0 1 1 0 8 0 amappl5 104 391 0 379 1 0 1 1 0 8 0 amappl4 96 846 0 819 2 1 1 2 0 8 0 amappl3 88 232 0 226 1 0 1 1 0 8 0 amappl2 80 5306 0 5244 2 0 2 2 0 8 0 amappl1 72 22759 0 22341 24 15 9 19 0 8 0 amappl 72 1709 0 1672 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 30 0 0 1 0 1 1 0 8 0 uaddrrnd 24 741 0 726 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 741 0 726 1 0 1 1 0 8 0 vmmpekpl 168 9253 0 9234 2 0 2 2 0 8 1 vmmpepl 168 83184 0 81584 116 40 76 88 0 357 6 vmsppl 264 740 0 726 2 1 1 2 0 8 0 pdppl 4096 1488 0 1452 6 1 5 6 0 8 0 pvpl 32 261775 0 247757 164 30 134 151 0 265 19 pmappl 200 740 0 726 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 387 0 59 11 0 11 11 0 8 0