panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149ff808,ffff8000149ff808,66129e6cf0384f4c) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda578,ffff8000149ff8b0,ffff8000149ff870) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda578,ffff8000ffff8bc0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff7708,fffffd803efda578,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff8bc0,ffff8000149ffe78,ffff8000149fff43) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff8bc0,ffff8000149fffb0,ffff800014a00020) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a00090) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffc38e8,1082c8608ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3870, 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(ffff8000149ff808,ffff8000149ff808,66129e6cf0384f4c) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda578,ffff8000149ff8b0,ffff8000149ff870) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803efda578,ffff8000ffff8bc0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff7708,fffffd803efda578,0) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff8bc0,ffff8000149ffe78,ffff8000149fff43) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff8bc0,ffff8000149fffb0,ffff800014a00020) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a00090) at syscall+0x511 Xsyscall(6,72,1,72,7f7ffffc38e8,1082c8608ac8) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc3870, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000149ff620 rbx 0xffff8000149ff6d0 rdx 0x2 rcx 0 rax 0 r8 0xffff8000149ff5e0 r9 0x1 r10 0 r11 0x1d55c1aa19efa155 r12 0x3000000008 r13 0xffff8000149ff630 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149ff610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (ifconfig) pid=263146 stat=onproc flags process=2 proc=0 pri=17, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8968,0xffffffff822b78f0 process=0xffff8000ffff7708 user=0xffff8000149fb000, vmspace=0xfffffd803f014a50 estcpu=1, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *67067 263146 31409 0 7 0x2 ifconfig 31409 346630 48307 0 3 0x10008a pause sh 48307 213197 75956 0 3 0x82 wait syz-executor.1 68710 248507 75956 0 3 0x82 piperd syz-executor.0 75956 383491 64606 0 3 0x82 thrsleep syz-fuzzer 75956 157956 64606 0 3 0x4000082 thrsleep syz-fuzzer 75956 517339 64606 0 3 0x4000082 thrsleep syz-fuzzer 75956 449433 64606 0 3 0x4000082 kqread syz-fuzzer 75956 278704 64606 0 3 0x4000082 thrsleep syz-fuzzer 75956 328283 64606 0 3 0x4000082 thrsleep syz-fuzzer 75956 478140 64606 0 3 0x4000082 thrsleep syz-fuzzer 75956 515640 64606 0 3 0x4000082 thrsleep syz-fuzzer 64606 321329 68059 0 3 0x10008a pause ksh 68059 494842 53930 0 3 0x92 select sshd 40514 204170 1 0 3 0x100083 ttyin getty 53930 229756 1 0 3 0x80 select sshd 97531 183530 75228 73 2 0x100090 syslogd 75228 469724 1 0 3 0x100082 netio syslogd 90081 489848 1 77 3 0x100090 poll dhclient 27136 300545 1 0 3 0x80 poll dhclient 17644 227295 0 0 3 0x14200 pgzero zerothread 1970 12790 0 0 3 0x14200 aiodoned aiodoned 78676 260778 0 0 3 0x14200 syncer update 45495 263323 0 0 3 0x14200 cleaner cleaner 26783 153164 0 0 3 0x14200 reaper reaper 67188 116226 0 0 3 0x14200 pgdaemon pagedaemon 61744 446377 0 0 3 0x14200 bored crynlk 8421 451647 0 0 3 0x14200 bored crypto 31508 302842 0 0 3 0x40014200 acpi0 acpi0 17187 291879 0 0 3 0x14200 bored softnet 71490 385830 0 0 3 0x14200 bored systqmp 77289 398471 0 0 3 0x14200 bored systq 61673 237263 0 0 3 0x40014200 bored softclock 17531 91086 0 0 3 0x40014200 idle0 4298 389395 0 0 3 0x14200 bored smr 1 29270 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 9461 6326K 6966K 78643K 11124 0 0 pcb 23 9K 10K 78643K 113 0 0 rtable 86 3K 4K 78643K 239 0 0 ifaddr 39 10K 11K 78643K 62 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 23 0 0 iov 0 0K 16K 78643K 24 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 76K 78643K 1407 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 6 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 1K 78643K 26 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 219 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 43 46K 62K 78643K 312 0 0 subproc 66 67586K 69634K 78643K 116 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 39 0 0 ether_multi 1 0K 0K 78643K 2 0 0 mrt 0 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 36 159K 159K 78643K 36 0 0 exec 0 0K 1K 78643K 192 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 29K 78643K 1273 0 0 UVM aobj 11 2K 2K 78643K 14 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 7 0K 0K 78643K 17 0 0 temp 104 2698K 2827K 78643K 5815 0 0 kqueue 0 0K 0K 78643K 2 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 2 1 0 1 1 0 8 0 inpcbpl 280 112 0 105 1 0 1 1 0 8 0 plimitpl 152 20 0 13 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 tcpcb 544 26 0 22 1 0 1 1 0 8 0 nd6 48 6 0 3 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 44 12 0 12 12 0 8 1 art_table 32 190 0 44 2 0 2 2 0 8 0 art_node 16 44 0 14 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semapl 112 24 0 14 1 0 1 1 0 8 0 shmpl 112 12 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1707 0 295 46 0 46 46 0 8 0 ffsino 240 1707 0 295 84 0 84 84 0 8 0 nchpl 144 2210 0 580 61 0 61 61 0 8 0 uvmvnodes 72 1910 0 0 35 0 35 35 0 8 0 vnodes 200 1910 0 0 101 0 101 101 0 8 0 namei 1024 5735 0 5734 2 1 1 1 0 8 0 scxspl 192 12442 0 12442 8 7 1 6 0 8 1 sigapl 432 386 0 372 2 0 2 2 0 8 0 futexpl 56 2956 0 2956 1 0 1 1 0 8 1 knotepl 112 85 0 64 1 0 1 1 0 8 0 kqueuepl 104 29 0 27 1 0 1 1 0 8 0 pipepl 112 218 0 199 2 1 1 1 0 8 0 fdescpl 424 387 0 372 2 0 2 2 0 8 0 filepl 120 1982 0 1888 4 0 4 4 0 8 1 lockfpl 104 61 0 61 2 1 1 1 0 8 1 lockfspl 48 24 0 24 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 217 0 210 1 0 1 1 0 8 0 zombiepl 144 372 0 372 2 1 1 1 0 8 1 processpl 840 401 0 372 4 0 4 4 0 8 0 procpl 600 635 0 599 4 0 4 4 0 8 1 sockpl 384 196 0 179 3 0 3 3 0 8 1 mcl64k 65536 6 0 6 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 5 0 5 1 0 1 1 0 8 1 mcl4k 4096 14 0 14 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 58023 0 57984 12 6 6 10 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 94929 0 94865 11 1 10 10 0 8 0 bufpl 256 18005 0 14894 198 0 198 198 0 8 0 anonpl 16 60477 0 51754 61 1 60 60 0 62 16 amapchunkpl 152 1922 0 1784 10 1 9 10 0 158 3 amappl16 192 2536 0 1963 50 13 37 42 0 8 7 amappl14 176 118 0 115 2 1 1 1 0 8 0 amappl13 168 6 0 6 1 1 0 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 38 0 24 1 0 1 1 0 8 0 amappl10 144 62 0 60 2 1 1 1 0 8 0 amappl9 136 556 0 552 1 0 1 1 0 8 0 amappl8 128 130 0 114 1 0 1 1 0 8 0 amappl7 120 37 0 31 1 0 1 1 0 8 0 amappl6 112 55 0 49 1 0 1 1 0 8 0 amappl5 104 136 0 122 1 0 1 1 0 8 0 amappl4 96 584 0 560 2 1 1 2 0 8 0 amappl3 88 120 0 114 1 0 1 1 0 8 0 amappl2 80 2284 0 2241 2 0 2 2 0 8 0 amappl1 72 16402 0 15968 25 16 9 19 0 8 0 amappl 72 877 0 841 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 13 0 3 1 0 1 1 0 8 0 uaddrrnd 24 387 0 372 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 387 0 372 1 0 1 1 0 8 0 vmmpekpl 168 6605 0 6586 2 0 2 2 0 8 0 vmmpepl 168 48968 0 47504 102 16 86 86 0 357 17 vmsppl 264 386 0 372 2 1 1 2 0 8 0 pdppl 4096 780 0 744 6 1 5 6 0 8 0 pvpl 32 175640 0 163908 155 6 149 149 0 265 37 pmappl 200 386 0 372 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 336 0 13 10 0 10 10 0 8 0