panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff800014a14878,ffff800014a14878,49ed8430cab45dc3) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda7d0,ffff800014a14920,ffff800014a148e0) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803cb28ca8,ffff8000ffff52d0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff800014952360,fffffd803cb28ca8,179) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff5c30,ffff800014a14ee8,ffff800014a14fb3) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff5c30,ffff800014a15028,ffff800014a15090) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a15100) at syscall+0x511 Xsyscall(6,0,8,0,2,31aa69a1010) 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(ffff800014a14878,ffff800014a14878,49ed8430cab45dc3) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda7d0,ffff800014a14920,ffff800014a148e0) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803cb28ca8,ffff8000ffff52d0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff800014952360,fffffd803cb28ca8,179) at unveil_add_vnode+0x23c sys/kern/kern_unveil.c:471 unveil_add(ffff8000ffff5c30,ffff800014a14ee8,ffff800014a14fb3) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000ffff5c30,ffff800014a15028,ffff800014a15090) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a15100) at syscall+0x511 Xsyscall(6,0,8,0,2,31aa69a1010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, count: -10 ddb> show registers rdi 0xffffffff81a73677 db_enter+0x17 rsi 0x365c __ALIGN_SIZE+0x265c rbp 0xffff800014a14690 rbx 0xffff800014a14740 rdx 0x365d __ALIGN_SIZE+0x265d rcx 0xffff800002395000 rax 0xffff800002395000 r8 0xffff800014a14650 r9 0x1 r10 0xffff800004196240 r11 0xe82aed4a1cbc0bbf r12 0x3000000008 r13 0xffff800014a146a0 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a14680 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=328754 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff52d0,0xffff800014a08e38 process=0xffff800014952360 user=0xffff800014a10000, vmspace=0xfffffd803f014318 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 94892 89209 83333 0 2 0 syz-executor.0 *94892 328754 83333 0 7 0x4000000 syz-executor.0 445 437226 73364 0 2 0 syz-executor.1 445 134217 73364 0 3 0x4000080 fsleep syz-executor.1 445 325245 73364 0 3 0x4000080 fsleep syz-executor.1 83333 276245 83556 0 2 0x482 syz-executor.0 73364 164796 83556 0 2 0x482 syz-executor.1 94158 102208 0 0 3 0x14200 bored sosplice 83556 131112 5074 0 3 0x82 kqread syz-fuzzer 83556 284692 5074 0 3 0x4000082 thrsleep syz-fuzzer 83556 309664 5074 0 3 0x4000082 thrsleep syz-fuzzer 83556 285126 5074 0 3 0x4000082 thrsleep syz-fuzzer 83556 291523 5074 0 3 0x4000082 thrsleep syz-fuzzer 83556 84606 5074 0 3 0x4000082 thrsleep syz-fuzzer 83556 484182 5074 0 3 0x4000082 thrsleep syz-fuzzer 83556 395680 5074 0 3 0x4000082 thrsleep syz-fuzzer 5074 378482 51546 0 3 0x10008a pause ksh 51546 123757 91117 0 3 0x92 select sshd 22329 221201 1 0 3 0x100083 ttyin getty 91117 179831 1 0 3 0x80 select sshd 92060 386251 76973 73 2 0x100090 syslogd 76973 427801 1 0 3 0x100082 netio syslogd 10475 225184 1 77 3 0x100090 poll dhclient 53169 15497 1 0 3 0x80 poll dhclient 90211 439202 0 0 2 0x14200 zerothread 62399 385698 0 0 3 0x14200 aiodoned aiodoned 21125 18511 0 0 3 0x14200 syncer update 64120 449048 0 0 3 0x14200 cleaner cleaner 6900 54480 0 0 3 0x14200 reaper reaper 83659 201462 0 0 3 0x14200 pgdaemon pagedaemon 70530 418119 0 0 3 0x14200 bored crynlk 77398 492094 0 0 3 0x14200 bored crypto 27284 387692 0 0 3 0x40014200 acpi0 acpi0 1981 272682 0 0 3 0x14200 bored softnet 34023 422702 0 0 3 0x14200 bored systqmp 40855 490944 0 0 3 0x14200 bored systq 98044 400792 0 0 3 0x40014200 bored softclock 55322 161048 0 0 3 0x40014200 idle0 60815 383357 0 0 3 0x14200 bored smr 1 233383 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 9502 6340K 6851K 78643K 13393 0 0 pcb 25 9K 10K 78643K 575 0 0 rtable 108 3K 4K 78643K 734 0 0 ifaddr 59 13K 14K 78643K 199 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 23 0 0 iov 0 0K 24K 78643K 152 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1193 75K 76K 78643K 2333 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 114 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 1579 0 0 sigio 0 0K 0K 78643K 11 0 0 proc 43 46K 62K 78643K 726 0 0 subproc 64 65538K 69634K 78643K 340 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 110 0 0 in_multi 33 2K 2K 78643K 154 0 0 ether_multi 1 0K 0K 78643K 11 0 0 mrt 0 0K 0K 78643K 11 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 390 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 80 20K 24K 78643K 4519 0 0 UVM aobj 32 2K 2K 78643K 42 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 75 0 0 NDP 12 0K 0K 78643K 64 0 0 temp 170 2709K 2835K 78643K 10720 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 22 0 16 1 0 1 1 0 8 0 inpcbpl 280 538 0 531 1 0 1 1 0 8 0 plimitpl 152 107 0 100 1 0 1 1 0 8 0 rtentry 112 133 0 89 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 190 0 186 1 0 1 1 0 8 0 nd6 48 30 0 24 1 0 1 1 0 8 0 ppxss 1128 21 0 21 3 3 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 549 0 358 12 0 12 12 0 8 0 art_table 32 550 0 358 2 0 2 2 0 8 0 art_node 16 132 0 92 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 1 0 1 1 0 8 0 semapl 112 112 0 102 1 0 1 1 0 8 0 shmpl 112 40 0 10 2 1 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3884 0 2437 47 0 47 47 0 8 0 ffsino 240 3884 0 2437 86 0 86 86 0 8 0 nchpl 144 5821 0 4166 62 0 62 62 0 8 0 uvmvnodes 72 4659 0 0 85 0 85 85 0 8 0 vnodes 200 4659 0 0 246 0 246 246 0 8 0 namei 1024 16057 0 16056 2 1 1 1 0 8 0 scsiplug 64 8 0 8 3 3 0 1 0 8 0 scxspl 192 39973 0 39973 9 8 1 6 0 8 1 sigapl 432 1725 0 1711 2 0 2 2 0 8 0 futexpl 56 12871 0 12869 1 0 1 1 0 8 0 knotepl 112 479 0 459 1 0 1 1 0 8 0 kqueuepl 104 286 0 282 1 0 1 1 0 8 0 pipepl 112 354 0 335 2 1 1 1 0 8 0 fdescpl 424 1726 0 1711 2 0 2 2 0 8 0 filepl 120 6695 0 6594 4 0 4 4 0 8 0 lockfpl 104 316 0 316 4 3 1 1 0 8 1 lockfspl 48 123 0 123 4 3 1 1 0 8 1 sessionpl 112 25 0 15 1 0 1 1 0 8 0 pgrppl 48 29 0 19 1 0 1 1 0 8 0 ucredpl 96 1135 0 1128 1 0 1 1 0 8 0 zombiepl 144 1711 0 1711 2 1 1 1 0 8 1 processpl 840 1741 0 1711 4 0 4 4 0 8 0 procpl 600 3498 0 3458 4 0 4 4 0 8 0 sosppl 128 32 0 32 5 4 1 1 0 8 1 sockpl 384 1033 0 1014 7 4 3 3 0 8 1 mcl64k 65536 2116 0 2116 59 46 13 33 0 8 13 mcl12k 12288 7 0 7 1 1 0 1 0 8 0 mcl9k 9216 21 0 21 2 2 0 1 0 8 0 mcl8k 8192 14 0 14 6 5 1 1 0 8 1 mcl4k 4096 57 0 57 6 5 1 1 0 8 1 mcl2k2 2112 8 0 8 3 2 1 1 0 8 1 mcl2k 2048 52330 0 52286 23 13 10 10 0 8 3 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 103595 0 103517 44 36 8 22 0 8 0 bufpl 256 33272 0 30165 199 0 199 199 0 8 0 anonpl 16 208626 0 199283 74 21 53 53 0 62 2 amapchunkpl 152 7934 0 7844 9 4 5 6 0 158 1 amappl16 192 11503 0 10995 62 28 34 38 0 8 8 amappl15 184 211 0 210 1 0 1 1 0 8 0 amappl14 176 79 0 77 2 1 1 1 0 8 0 amappl13 168 18 0 18 2 2 0 1 0 8 0 amappl12 160 1095 0 1091 1 0 1 1 0 8 0 amappl11 152 68 0 53 1 0 1 1 0 8 0 amappl10 144 226 0 224 1 0 1 1 0 8 0 amappl9 136 643 0 640 1 0 1 1 0 8 0 amappl8 128 187 0 173 1 0 1 1 0 8 0 amappl7 120 198 0 192 1 0 1 1 0 8 0 amappl6 112 56 0 47 1 0 1 1 0 8 0 amappl5 104 1303 0 1292 1 0 1 1 0 8 0 amappl4 96 1354 0 1327 2 1 1 2 0 8 0 amappl3 88 700 0 692 1 0 1 1 0 8 0 amappl2 80 13846 0 13780 2 0 2 2 0 8 0 amappl1 72 39471 0 39039 24 15 9 19 0 8 0 amappl 72 3865 0 3829 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 41 0 10 1 0 1 1 0 8 0 uaddrrnd 24 1726 0 1711 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1726 0 1711 1 0 1 1 0 8 0 vmmpekpl 168 13048 0 13029 2 0 2 2 0 8 0 vmmpepl 168 186213 0 184679 115 41 74 84 0 357 7 vmsppl 264 1725 0 1711 2 1 1 2 0 8 0 pdppl 4096 3458 0 3422 6 1 5 6 0 8 0 pvpl 32 554835 0 542446 192 52 140 140 0 265 24 pmappl 200 1725 0 1711 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 450 0 109 11 0 11 11 0 8 0