panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149d7c28,ffff8000149d7c28,a4dfb1fa945815d4) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda7d0,ffff8000149d7cd0,ffff8000149d7c90) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd8032860a58,ffff8000ffff59d8) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff7078,fffffd8032860a58,326) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff8008,ffff8000149d8298,ffff8000149d8363) at unveil_add+0x46d unveil_add_traversed_vnodes sys/kern/kern_unveil.c:496 [inline] unveil_add(ffff8000ffff8008,ffff8000149d8298,ffff8000149d8363) at unveil_add+0x46d sys/kern/kern_unveil.c:632 sys_unveil(ffff8000ffff8008,ffff8000149d83d8,ffff8000149d8440) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149d84b0) at syscall+0x511 Xsyscall(6,0,8,0,2,ec6211ff010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, 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(ffff8000149d7c28,ffff8000149d7c28,a4dfb1fa945815d4) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda7d0,ffff8000149d7cd0,ffff8000149d7c90) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd8032860a58,ffff8000ffff59d8) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff7078,fffffd8032860a58,326) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff8008,ffff8000149d8298,ffff8000149d8363) at unveil_add+0x46d unveil_add_traversed_vnodes sys/kern/kern_unveil.c:496 [inline] unveil_add(ffff8000ffff8008,ffff8000149d8298,ffff8000149d8363) at unveil_add+0x46d sys/kern/kern_unveil.c:632 sys_unveil(ffff8000ffff8008,ffff8000149d83d8,ffff8000149d8440) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149d84b0) at syscall+0x511 Xsyscall(6,0,8,0,2,ec6211ff010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, count: -10 ddb> show registers rdi 0xffffffff81a73677 db_enter+0x17 rsi 0x3e3a __ALIGN_SIZE+0x2e3a rbp 0xffff8000149d7a40 rbx 0xffff8000149d7af0 rdx 0x3e3b __ALIGN_SIZE+0x2e3b rcx 0xffff800001995000 rax 0xffff800001995000 r8 0xffff8000149d7a00 r9 0x1 r10 0xffff800000022880 r11 0x296c1fa49aecc97b r12 0x3000000008 r13 0xffff8000149d7a50 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149d7a30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=424420 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff59d8,0xffff8000fffef798 process=0xffff8000ffff7078 user=0xffff8000149d3000, vmspace=0xfffffd803f014d68 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20663 258513 18137 0 2 0 syz-executor.1 20663 2847 18137 0 2 0x4000000 syz-executor.1 78998 359831 67439 0 3 0x80 nanosleep syz-executor.0 *78998 424420 67439 0 7 0x4000000 syz-executor.0 78998 336981 67439 0 3 0x4000080 fsleep syz-executor.0 67439 86641 78135 0 3 0x82 nanosleep syz-executor.0 34201 23088 0 0 3 0x14200 bored sosplice 18137 277737 78135 0 3 0x82 nanosleep syz-executor.1 78135 211297 89029 0 3 0x82 thrsleep syz-fuzzer 78135 208603 89029 0 3 0x4000082 nanosleep syz-fuzzer 78135 432306 89029 0 3 0x4000082 thrsleep syz-fuzzer 78135 262060 89029 0 3 0x4000082 thrsleep syz-fuzzer 78135 409943 89029 0 3 0x4000082 kqread syz-fuzzer 78135 135067 89029 0 3 0x4000082 thrsleep syz-fuzzer 78135 79909 89029 0 3 0x4000082 thrsleep syz-fuzzer 78135 181764 89029 0 3 0x4000082 thrsleep syz-fuzzer 89029 284429 18792 0 3 0x10008a pause ksh 18792 155071 96290 0 3 0x92 select sshd 54204 356489 1 0 3 0x100083 ttyin getty 96290 342846 1 0 3 0x80 select sshd 98892 43085 29937 73 2 0x100090 syslogd 29937 435331 1 0 3 0x100082 netio syslogd 47825 404402 1 77 3 0x100090 poll dhclient 71194 153731 1 0 3 0x80 poll dhclient 94025 281642 0 0 2 0x14200 zerothread 47368 433648 0 0 3 0x14200 aiodoned aiodoned 19611 411894 0 0 3 0x14200 syncer update 93937 131188 0 0 3 0x14200 cleaner cleaner 29169 217221 0 0 3 0x14200 reaper reaper 50747 157501 0 0 3 0x14200 pgdaemon pagedaemon 84154 43894 0 0 3 0x14200 bored crynlk 35435 340263 0 0 3 0x14200 bored crypto 7422 244072 0 0 3 0x40014200 acpi0 acpi0 39587 218698 0 0 3 0x14200 bored softnet 17903 201224 0 0 3 0x14200 bored systqmp 85240 302946 0 0 3 0x14200 bored systq 71051 231221 0 0 3 0x40014200 bored softclock 12498 341568 0 0 3 0x40014200 idle0 88218 52268 0 0 3 0x14200 bored smr 1 368856 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 9494 6982K 7371K 78643K 11490 0 0 pcb 23 9K 10K 78643K 325 0 0 rtable 108 3K 4K 78643K 405 0 0 ifaddr 54 12K 12K 78643K 109 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 38 0 0 iov 0 0K 14K 78643K 62 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1195 75K 76K 78643K 1572 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 9 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 55 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 474 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 43 46K 62K 78643K 467 0 0 subproc 64 65538K 69634K 78643K 170 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 37 0 0 in_multi 33 2K 2K 78643K 83 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 48 212K 212K 78643K 48 0 0 exec 0 0K 1K 78643K 259 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 79 20K 24K 78643K 1922 0 0 UVM aobj 24 2K 2K 78643K 30 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 9 0 0 NDP 11 0K 0K 78643K 33 0 0 temp 155 2709K 3339K 78643K 6923 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 12 0 6 1 0 1 1 0 8 0 inpcbpl 280 190 0 183 1 0 1 1 0 8 0 plimitpl 152 32 0 25 1 0 1 1 0 8 0 rtentry 112 78 0 34 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 76 0 72 1 0 1 1 0 8 0 nd6 48 15 0 9 1 0 1 1 0 8 0 ppxss 1128 8 0 8 2 2 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 327 0 135 12 0 12 12 0 8 0 art_table 32 328 0 135 2 0 2 2 0 8 0 art_node 16 77 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 5 1 0 1 1 0 8 0 semapl 112 53 0 43 1 0 1 1 0 8 0 shmpl 112 28 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2100 0 677 46 0 46 46 0 8 0 ffsino 240 2100 0 677 84 0 84 84 0 8 0 nchpl 144 2906 0 1260 61 0 61 61 0 8 0 uvmvnodes 72 2401 0 0 44 0 44 44 0 8 0 vnodes 200 2401 0 0 127 0 127 127 0 8 0 namei 1024 8468 0 8467 2 1 1 1 0 8 0 scxspl 192 18891 0 18891 10 9 1 6 0 8 1 sigapl 432 635 0 621 2 0 2 2 0 8 0 futexpl 56 7114 0 7113 1 0 1 1 0 8 0 knotepl 112 189 0 170 1 0 1 1 0 8 0 kqueuepl 104 127 0 125 1 0 1 1 0 8 0 pipepl 112 458 0 437 3 2 1 2 0 8 0 fdescpl 424 636 0 621 2 0 2 2 0 8 0 filepl 120 3629 0 3533 4 0 4 4 0 8 1 lockfpl 104 125 0 125 2 1 1 1 0 8 1 lockfspl 48 46 0 46 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 507 0 500 1 0 1 1 0 8 0 zombiepl 144 621 0 621 2 1 1 1 0 8 1 processpl 840 651 0 621 4 0 4 4 0 8 0 procpl 600 1172 0 1132 4 0 4 4 0 8 0 sosppl 128 3 0 3 2 1 1 1 0 8 1 sockpl 384 480 0 463 3 0 3 3 0 8 1 mcl64k 65536 273 0 273 33 32 1 33 0 8 1 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 8 0 8 3 2 1 1 0 8 1 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl8k 8192 11 0 11 3 2 1 1 0 8 1 mcl4k 4096 34 0 34 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 58109 0 58069 12 6 6 10 0 8 0 mtagpl 80 4 0 4 2 1 1 1 0 8 1 mbufpl 256 97034 0 96957 22 14 8 21 0 8 1 bufpl 256 20966 0 17859 199 1 198 198 0 8 0 anonpl 16 80915 0 70868 72 16 56 59 0 62 8 amapchunkpl 152 3332 0 3227 13 8 5 12 0 158 0 amappl16 192 3491 0 2905 57 20 37 42 0 8 7 amappl15 184 10 0 9 1 0 1 1 0 8 0 amappl14 176 134 0 130 2 1 1 1 0 8 0 amappl13 168 14 0 13 2 1 1 1 0 8 0 amappl12 160 81 0 81 3 3 0 1 0 8 0 amappl11 152 49 0 35 1 0 1 1 0 8 0 amappl10 144 184 0 184 2 2 0 1 0 8 0 amappl9 136 715 0 710 1 0 1 1 0 8 0 amappl8 128 286 0 268 1 0 1 1 0 8 0 amappl7 120 153 0 148 1 0 1 1 0 8 0 amappl6 112 50 0 44 1 0 1 1 0 8 0 amappl5 104 245 0 233 1 0 1 1 0 8 0 amappl4 96 828 0 799 2 1 1 2 0 8 0 amappl3 88 127 0 120 1 0 1 1 0 8 0 amappl2 80 4269 0 4208 2 0 2 2 0 8 0 amappl1 72 21043 0 20609 24 15 9 19 0 8 0 amappl 72 1448 0 1411 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 29 0 6 1 0 1 1 0 8 0 uaddrrnd 24 636 0 621 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 636 0 621 1 0 1 1 0 8 0 vmmpekpl 168 8358 0 8340 2 0 2 2 0 8 0 vmmpepl 168 77462 0 75854 107 23 84 87 0 357 14 vmsppl 264 635 0 621 2 1 1 2 0 8 0 pdppl 4096 1278 0 1242 6 1 5 6 0 8 0 pvpl 32 264863 0 251760 164 20 144 146 0 265 30 pmappl 200 635 0 621 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 384 0 62 11 0 11 11 0 8 0