panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000148a85c8,ffff8000148a85c8,7c477e56a6c13187) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda7d0,ffff8000148a8988,ffff8000148a89d8) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000148a8958) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000148a8958) at namei+0x45f sys/kern/vfs_lookup.c:224 vn_open(ffff8000148a8958,1,0) at vn_open+0xb8 sys/kern/vfs_vnops.c:137 doopenat(ffff8000fffff770,ffffff9c,1de5002fbb,0,0,ffff8000148a8b70) at doopenat+0x28e sys/kern/vfs_syscalls.c:1045 syscall(ffff8000148a8be0) at syscall+0x511 Xsyscall(6,5,205ad73685,5,4,1fe9e80000) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec010, 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(ffff8000148a85c8,ffff8000148a85c8,7c477e56a6c13187) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda7d0,ffff8000148a8988,ffff8000148a89d8) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000148a8958) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000148a8958) at namei+0x45f sys/kern/vfs_lookup.c:224 vn_open(ffff8000148a8958,1,0) at vn_open+0xb8 sys/kern/vfs_vnops.c:137 doopenat(ffff8000fffff770,ffffff9c,1de5002fbb,0,0,ffff8000148a8b70) at doopenat+0x28e sys/kern/vfs_syscalls.c:1045 syscall(ffff8000148a8be0) at syscall+0x511 Xsyscall(6,5,205ad73685,5,4,1fe9e80000) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffec010, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000148a83e0 rbx 0xffff8000148a8490 rdx 0x2 rcx 0 rax 0 r8 0xffff8000148a83a0 r9 0x1 r10 0 r11 0xdf7f6b9e59c55c1e r12 0x3000000008 r13 0xffff8000148a83f0 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000148a83d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (init) pid=27492 stat=onproc flags process=2 proc=0 pri=17, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffffffff8228c0a8,0xffff8000fffff528 process=0xffff8000ffffda40 user=0xffff8000148a3000, vmspace=0xfffffd803f014e70 estcpu=1, cpticks=3, pctcpu=0.0 user=0, sys=3, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25230 129936 12631 0 2 0 syz-executor.0 25230 471607 12631 0 3 0x4000080 msgwait syz-executor.0 17103 394939 57155 0 2 0 syz-executor.1 17103 513210 57155 0 3 0x4000080 fsleep syz-executor.1 57155 441938 78329 0 2 0x482 syz-executor.1 12631 202936 78329 0 2 0x482 syz-executor.0 78329 163594 1606 0 3 0x82 thrsleep syz-fuzzer 78329 98722 1606 0 3 0x4000082 thrsleep syz-fuzzer 78329 218550 1606 0 3 0x4000082 thrsleep syz-fuzzer 78329 195824 1606 0 3 0x4000082 thrsleep syz-fuzzer 78329 451712 1606 0 3 0x4000082 kqread syz-fuzzer 78329 256885 1606 0 3 0x4000082 thrsleep syz-fuzzer 78329 524126 1606 0 3 0x4000082 thrsleep syz-fuzzer 1606 70003 98864 0 3 0x10008a pause ksh 98864 444603 67115 0 3 0x92 select sshd 67115 157262 1 0 3 0x80 select sshd 90167 15507 4287 73 2 0x100090 syslogd 4287 314319 1 0 3 0x100082 netio syslogd 86664 257201 1 77 3 0x100090 poll dhclient 61866 147291 1 0 3 0x80 poll dhclient 174 449635 0 0 2 0x14200 zerothread 55642 164868 0 0 3 0x14200 aiodoned aiodoned 81577 144956 0 0 3 0x14200 syncer update 90350 86460 0 0 3 0x14200 cleaner cleaner 75425 227056 0 0 3 0x14200 reaper reaper 3975 533 0 0 3 0x14200 pgdaemon pagedaemon 25589 448285 0 0 3 0x14200 bored crynlk 75999 228489 0 0 3 0x14200 bored crypto 79443 512765 0 0 3 0x40014200 acpi0 acpi0 85915 86886 0 0 3 0x14200 bored softnet 65504 67168 0 0 3 0x14200 bored systqmp 65500 374956 0 0 3 0x14200 bored systq 77975 248929 0 0 3 0x40014200 bored softclock 73441 280865 0 0 3 0x40014200 idle0 2231 400227 0 0 3 0x14200 bored smr * 1 27492 0 0 7 0x2 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 9493 6457K 6831K 78643K 11376 0 0 pcb 23 9K 10K 78643K 179 0 0 rtable 108 3K 4K 78643K 306 0 0 ifaddr 52 12K 13K 78643K 116 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 27 0 0 iov 0 0K 20K 78643K 72 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 1502 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 8 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 1K 1K 78643K 72 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 341 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 34 22K 62K 78643K 315 0 0 subproc 64 65538K 69634K 78643K 68 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 27 0 0 in_multi 33 2K 2K 78643K 46 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 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 202 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 75 20K 29K 78643K 1553 0 0 UVM aobj 20 2K 2K 78643K 20 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 10 0 0 NDP 10 0K 0K 78643K 30 0 0 temp 127 2699K 2827K 78643K 6327 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 152 0 145 1 0 1 1 0 8 0 plimitpl 152 25 0 19 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 6 0 6 1 1 0 1 0 8 0 tcpcb 544 56 0 52 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 14 0 14 3 2 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 66 0 56 1 0 1 1 0 8 0 shmpl 112 18 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1977 0 568 46 0 46 46 0 8 0 ffsino 240 1977 0 568 84 0 84 84 0 8 0 nchpl 144 2655 0 1025 61 0 61 61 0 8 0 uvmvnodes 72 2210 0 0 41 0 41 41 0 8 0 vnodes 200 2210 0 0 117 0 117 117 0 8 0 namei 1024 6909 0 6908 2 1 1 1 0 8 0 scxspl 192 15880 0 15880 11 10 1 6 0 8 1 sigapl 432 511 0 498 2 0 2 2 0 8 0 futexpl 56 5366 0 5365 1 0 1 1 0 8 0 knotepl 112 99 0 80 1 0 1 1 0 8 0 kqueuepl 104 56 0 54 1 0 1 1 0 8 0 pipepl 112 334 0 315 2 1 1 1 0 8 0 fdescpl 424 512 0 498 2 0 2 2 0 8 0 filepl 120 2697 0 2602 4 0 4 4 0 8 1 lockfpl 104 127 0 127 2 1 1 1 0 8 1 lockfspl 48 42 0 42 2 1 1 1 0 8 1 sessionpl 112 17 0 8 1 0 1 1 0 8 0 pgrppl 48 31 0 22 1 0 1 1 0 8 0 ucredpl 96 306 0 299 1 0 1 1 0 8 0 zombiepl 144 498 0 498 2 1 1 1 0 8 1 processpl 840 526 0 498 4 0 4 4 0 8 0 procpl 600 929 0 893 4 0 4 4 0 8 1 sockpl 384 296 0 279 3 0 3 3 0 8 1 mcl64k 65536 15 0 15 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 6 0 6 2 1 1 1 0 8 1 mcl9k 9216 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 20 0 20 3 2 1 1 0 8 1 mcl2k2 2112 3 0 3 2 1 1 1 0 8 1 mcl2k 2048 57428 0 57384 14 7 7 12 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 95182 0 95102 12 5 7 9 0 8 0 bufpl 256 20703 0 17596 198 0 198 198 0 8 0 anonpl 16 61136 0 50208 62 5 57 61 0 62 12 amapchunkpl 152 2265 0 2163 11 2 9 9 0 158 4 amappl16 192 2596 0 1992 46 12 34 43 0 8 3 amappl14 176 30 0 27 2 1 1 1 0 8 0 amappl13 168 14 0 13 1 0 1 1 0 8 0 amappl12 160 10 0 8 1 0 1 1 0 8 0 amappl11 152 181 0 165 1 0 1 1 0 8 0 amappl10 144 64 0 61 2 1 1 1 0 8 0 amappl9 136 718 0 711 1 0 1 1 0 8 0 amappl8 128 284 0 272 1 0 1 1 0 8 0 amappl7 120 27 0 25 1 0 1 1 0 8 0 amappl6 112 200 0 190 1 0 1 1 0 8 0 amappl5 104 137 0 127 1 0 1 1 0 8 0 amappl4 96 722 0 695 2 1 1 2 0 8 0 amappl3 88 130 0 123 1 0 1 1 0 8 0 amappl2 80 3439 0 3382 2 0 2 2 0 8 0 amappl1 72 17869 0 17482 24 15 9 19 0 8 0 amappl 72 1156 0 1121 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 19 0 0 1 0 1 1 0 8 0 uaddrrnd 24 512 0 498 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 512 0 498 1 0 1 1 0 8 0 vmmpekpl 168 7458 0 7441 1 0 1 1 0 8 0 vmmpepl 168 60204 0 58660 101 24 77 83 0 357 6 vmsppl 264 511 0 498 2 1 1 2 0 8 0 pdppl 4096 1030 0 996 6 1 5 6 0 8 0 pvpl 32 192772 0 179013 155 10 145 151 0 265 31 pmappl 200 511 0 498 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 343 0 21 10 0 10 10 0 8 0