panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149e7b18,ffff8000149e7b18,8efcf21b914c1a8b) at ufs_dirbadentry VOP_LOOKUP(fffffd803efd9708,ffff8000149e7bc0,ffff8000149e7b80) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803379d3a8,ffff8000ffff4718) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff73c0,fffffd803379d3a8,2fb) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff59d8,ffff8000149e8188,ffff8000149e8253) at unveil_add+0x46d unveil_add_traversed_vnodes sys/kern/kern_unveil.c:496 [inline] unveil_add(ffff8000ffff59d8,ffff8000149e8188,ffff8000149e8253) at unveil_add+0x46d sys/kern/kern_unveil.c:632 sys_unveil(ffff8000ffff59d8,ffff8000149e82c8,ffff8000149e8330) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149e83a0) at syscall+0x511 Xsyscall(6,0,8,0,2,8d2e3a9e010) 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(ffff8000149e7b18,ffff8000149e7b18,8efcf21b914c1a8b) at ufs_dirbadentry VOP_LOOKUP(fffffd803efd9708,ffff8000149e7bc0,ffff8000149e7b80) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803379d3a8,ffff8000ffff4718) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff8000ffff73c0,fffffd803379d3a8,2fb) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff59d8,ffff8000149e8188,ffff8000149e8253) at unveil_add+0x46d unveil_add_traversed_vnodes sys/kern/kern_unveil.c:496 [inline] unveil_add(ffff8000ffff59d8,ffff8000149e8188,ffff8000149e8253) at unveil_add+0x46d sys/kern/kern_unveil.c:632 sys_unveil(ffff8000ffff59d8,ffff8000149e82c8,ffff8000149e8330) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff8000149e83a0) at syscall+0x511 Xsyscall(6,0,8,0,2,8d2e3a9e010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, count: -10 ddb> show registers rdi 0xffffffff811f14c7 db_enter+0x17 rsi 0x3594 __ALIGN_SIZE+0x2594 rbp 0xffff8000149e7930 rbx 0xffff8000149e79e0 rdx 0x3595 __ALIGN_SIZE+0x2595 rcx 0xffff800001a0d000 rax 0xffff800001a0d000 r8 0xffff8000149e78f0 r9 0x1 r10 0xffff800000022a40 r11 0xb55f678de3c59fc0 r12 0x3000000008 r13 0xffff8000149e7940 r14 0x100 r15 0x1 rip 0xffffffff811f14c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149e7920 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=474180 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=56, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff4718,0xffffffff822af360 process=0xffff8000ffff73c0 user=0xffff8000149e3000, vmspace=0xfffffd803f013948 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 12181 336159 42490 0 2 0 syz-executor.0 *12181 474180 42490 0 7 0x4000000 syz-executor.0 42490 157095 1330 0 3 0x82 nanosleep syz-executor.0 98651 238655 1 0 3 0x100083 ttyin getty 96368 122661 0 0 3 0x14200 bored sosplice 86243 487688 1330 0 3 0x82 nanosleep syz-executor.1 1330 150632 30072 0 3 0x82 thrsleep syz-fuzzer 1330 432216 30072 0 3 0x4000082 thrsleep syz-fuzzer 1330 19352 30072 0 3 0x4000082 thrsleep syz-fuzzer 1330 454800 30072 0 3 0x4000082 thrsleep syz-fuzzer 1330 485463 30072 0 3 0x4000082 thrsleep syz-fuzzer 1330 38150 30072 0 3 0x4000082 kqread syz-fuzzer 1330 247083 30072 0 3 0x4000082 thrsleep syz-fuzzer 30072 79187 19675 0 3 0x10008a pause ksh 19675 445613 95232 0 3 0x92 select sshd 95232 98486 1 0 3 0x80 select sshd 16390 85202 23709 73 2 0x100090 syslogd 23709 501085 1 0 3 0x100082 netio syslogd 78856 17366 1 77 3 0x100090 poll dhclient 51813 275636 1 0 3 0x80 poll dhclient 70920 167934 0 0 2 0x14200 zerothread 7837 321579 0 0 3 0x14200 aiodoned aiodoned 24760 139975 0 0 3 0x14200 syncer update 75360 53154 0 0 3 0x14200 cleaner cleaner 84859 207127 0 0 3 0x14200 reaper reaper 57418 286030 0 0 3 0x14200 pgdaemon pagedaemon 77365 283537 0 0 3 0x14200 bored crynlk 87798 427301 0 0 3 0x14200 bored crypto 6913 365657 0 0 3 0x40014200 acpi0 acpi0 93901 69077 0 0 3 0x14200 bored softnet 61144 40542 0 0 3 0x14200 bored systqmp 85280 313106 0 0 3 0x14200 bored systq 33865 369341 0 0 3 0x40014200 bored softclock 77162 156204 0 0 3 0x40014200 idle0 13864 87360 0 0 3 0x14200 bored smr 1 87682 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 9478 6450K 6711K 78643K 11385 0 0 pcb 23 9K 10K 78643K 211 0 0 rtable 108 3K 4K 78643K 304 0 0 ifaddr 45 11K 12K 78643K 85 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 38 0 0 iov 0 0K 16K 78643K 50 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 76K 78643K 1498 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 40 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 338 0 0 sigio 0 0K 0K 78643K 1 0 0 proc 43 46K 62K 78643K 374 0 0 subproc 64 65538K 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 39 0 0 in_multi 33 2K 2K 78643K 50 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 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 221 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 77 20K 20K 78643K 1605 0 0 UVM aobj 13 2K 2K 78643K 13 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 29 0 0 NDP 8 0K 0K 78643K 24 0 0 temp 138 2705K 2833K 78643K 6338 0 0 kqueue 0 0K 0K 78643K 6 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 8 0 2 1 0 1 1 0 8 0 inpcbpl 280 173 0 166 1 0 1 1 0 8 0 plimitpl 152 25 0 18 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 64 0 60 1 0 1 1 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 8 0 8 2 1 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 232 0 44 12 0 12 12 0 8 0 art_table 32 233 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 2 1 0 1 1 0 8 0 semapl 112 38 0 28 1 0 1 1 0 8 0 shmpl 112 11 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1905 0 490 46 0 46 46 0 8 0 ffsino 240 1905 0 490 84 0 84 84 0 8 0 nchpl 144 2546 0 910 61 0 61 61 0 8 0 uvmvnodes 72 2161 0 0 40 0 40 40 0 8 0 vnodes 200 2161 0 0 114 0 114 114 0 8 0 namei 1024 6913 0 6912 2 1 1 1 0 8 0 scxspl 192 15184 0 15184 11 9 2 6 0 8 2 sigapl 432 506 0 493 2 0 2 2 0 8 0 futexpl 56 5136 0 5136 1 0 1 1 0 8 1 knotepl 112 112 0 93 1 0 1 1 0 8 0 kqueuepl 104 58 0 56 1 0 1 1 0 8 0 pipepl 112 326 0 307 2 1 1 1 0 8 0 fdescpl 424 507 0 493 2 0 2 2 0 8 0 filepl 120 2789 0 2694 4 0 4 4 0 8 1 lockfpl 104 77 0 77 2 1 1 1 0 8 1 lockfspl 48 31 0 31 2 1 1 1 0 8 1 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 344 0 337 1 0 1 1 0 8 0 zombiepl 144 493 0 492 2 1 1 1 0 8 0 processpl 840 522 0 492 4 0 4 4 0 8 0 procpl 600 921 0 884 4 0 4 4 0 8 1 sosppl 128 1 0 1 1 1 0 1 0 8 0 sockpl 384 354 0 337 3 0 3 3 0 8 1 mcl64k 65536 11 0 11 1 0 1 1 0 8 1 mcl16k 16384 2 0 2 1 1 0 1 0 8 0 mcl12k 12288 7 0 7 1 0 1 1 0 8 1 mcl9k 9216 3 0 3 1 1 0 1 0 8 0 mcl8k 8192 4 0 4 2 1 1 1 0 8 1 mcl4k 4096 28 0 28 3 2 1 1 0 8 1 mcl2k 2048 57642 0 57606 14 8 6 11 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 95622 0 95556 11 3 8 9 0 8 2 bufpl 256 19223 0 16116 198 0 198 198 0 8 0 anonpl 16 59889 0 49989 57 2 55 55 0 62 10 amapchunkpl 152 2462 0 2362 6 1 5 6 0 158 0 amappl16 192 2301 0 1696 43 3 40 43 0 8 8 amappl15 184 115 0 111 1 0 1 1 0 8 0 amappl14 176 37 0 33 2 1 1 1 0 8 0 amappl13 168 85 0 85 2 2 0 1 0 8 0 amappl12 160 162 0 160 1 0 1 1 0 8 0 amappl11 152 43 0 29 1 0 1 1 0 8 0 amappl10 144 75 0 69 2 1 1 1 0 8 0 amappl9 136 488 0 485 1 0 1 1 0 8 0 amappl8 128 138 0 122 1 0 1 1 0 8 0 amappl7 120 37 0 33 1 0 1 1 0 8 0 amappl6 112 54 0 48 1 0 1 1 0 8 0 amappl5 104 449 0 438 1 0 1 1 0 8 0 amappl4 96 561 0 531 2 1 1 2 0 8 0 amappl3 88 277 0 272 1 0 1 1 0 8 0 amappl2 80 3395 0 3342 2 0 2 2 0 8 0 amappl1 72 18564 0 18157 24 15 9 19 0 8 0 amappl 72 1184 0 1150 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 12 0 0 1 0 1 1 0 8 0 uaddrrnd 24 507 0 493 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 507 0 493 1 0 1 1 0 8 0 vmmpekpl 168 7613 0 7595 2 0 2 2 0 8 0 vmmpepl 168 61712 0 60182 106 19 87 89 0 357 14 vmsppl 264 506 0 493 2 1 1 2 0 8 0 pdppl 4096 1020 0 986 6 1 5 6 0 8 0 pvpl 32 201055 0 188189 146 4 142 142 0 265 29 pmappl 200 506 0 493 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 341 0 19 10 0 10 10 0 8 0