panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff800014a27ea8,ffff800014a27ea8,c60bb39b9f7b73fe) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda000,ffff800014a27f50,ffff800014a27f10) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803ca8ae00,ffff8000149e39e0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff800014953710,fffffd803c898ec0,12d) at unveil_add_vnode+0x2eb sys/kern/kern_unveil.c:480 unveil_add(ffff8000149e2bd0,ffff800014a28518,ffff800014a285e3) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000149e2bd0,ffff800014a28658,ffff800014a286c0) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a28730) at syscall+0x511 Xsyscall(6,0,8,0,2,f097c6f0010) 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(ffff800014a27ea8,ffff800014a27ea8,c60bb39b9f7b73fe) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda000,ffff800014a27f50,ffff800014a27f10) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 unveil_find_cover(fffffd803ca8ae00,ffff8000149e39e0) at unveil_find_cover+0x139 sys/kern/kern_unveil.c:290 unveil_add_vnode(ffff800014953710,fffffd803c898ec0,12d) at unveil_add_vnode+0x2eb sys/kern/kern_unveil.c:480 unveil_add(ffff8000149e2bd0,ffff800014a28518,ffff800014a285e3) at unveil_add+0x273 sys/kern/kern_unveil.c:597 sys_unveil(ffff8000149e2bd0,ffff800014a28658,ffff800014a286c0) at sys_unveil+0x405 sys/kern/vfs_syscalls.c:937 syscall(ffff800014a28730) at syscall+0x511 Xsyscall(6,0,8,0,2,f097c6f0010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, count: -10 ddb> show registers rdi 0xffffffff81a73677 db_enter+0x17 rsi 0x4260 __ALIGN_SIZE+0x3260 rbp 0xffff800014a27cc0 rbx 0xffff800014a27d70 rdx 0x4261 __ALIGN_SIZE+0x3261 rcx 0xffff800001194000 rax 0xffff800001194000 r8 0xffff800014a27c80 r9 0x1 r10 0xffff80000098e840 r11 0xe1b04eba57d799b0 r12 0x3000000008 r13 0xffff800014a27cd0 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014a27cb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=246168 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff8000149e39e0,0xffffffff822b78f0 process=0xffff800014953710 user=0xffff800014a23000, vmspace=0xfffffd803f014a50 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=1 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 38901 418924 46382 0 2 0 syz-executor.1 *38901 246168 46382 0 7 0x4000000 syz-executor.1 46382 522123 63990 0 2 0x482 syz-executor.1 34877 1535 63990 0 2 0x482 syz-executor.0 9200 522758 1 0 3 0x100083 ttyin getty 99383 158942 0 0 3 0x14200 bored sosplice 63990 494151 83530 0 3 0x82 thrsleep syz-fuzzer 63990 306065 83530 0 3 0x4000082 nanosleep syz-fuzzer 63990 78887 83530 0 3 0x4000082 thrsleep syz-fuzzer 63990 309578 83530 0 3 0x4000082 thrsleep syz-fuzzer 63990 372356 83530 0 3 0x4000082 kqread syz-fuzzer 63990 134612 83530 0 3 0x4000082 thrsleep syz-fuzzer 63990 91337 83530 0 3 0x4000082 thrsleep syz-fuzzer 63990 484890 83530 0 3 0x4000082 thrsleep syz-fuzzer 83530 85063 96441 0 3 0x10008a pause ksh 96441 150753 43332 0 3 0x92 select sshd 43332 263130 1 0 3 0x80 select sshd 50074 67786 78091 73 2 0x100090 syslogd 78091 485635 1 0 3 0x100082 netio syslogd 76220 464885 1 77 3 0x100090 poll dhclient 54097 150919 1 0 3 0x80 poll dhclient 46814 380420 0 0 2 0x14200 zerothread 67928 408863 0 0 3 0x14200 aiodoned aiodoned 35543 506683 0 0 3 0x14200 syncer update 31841 403815 0 0 3 0x14200 cleaner cleaner 26689 174346 0 0 3 0x14200 reaper reaper 42732 453020 0 0 3 0x14200 pgdaemon pagedaemon 5221 405800 0 0 3 0x14200 bored crynlk 83977 219010 0 0 3 0x14200 bored crypto 2350 425004 0 0 3 0x40014200 acpi0 acpi0 75944 165638 0 0 3 0x14200 bored softnet 34266 78452 0 0 3 0x14200 bored systqmp 70594 350000 0 0 3 0x14200 bored systq 61331 460016 0 0 3 0x40014200 bored softclock 57864 239130 0 0 3 0x40014200 idle0 52521 79805 0 0 3 0x14200 bored smr 1 202788 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 9526 6481K 14672K 78643K 16264 0 0 pcb 23 9K 10K 78643K 1121 0 0 rtable 111 4K 4K 78643K 1025 0 0 ifaddr 58 14K 15K 78643K 292 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 99 0 0 iov 0 0K 24K 78643K 271 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 76K 78643K 3562 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 41 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 355 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 5 13K 25K 78643K 2592 0 0 sigio 0 0K 0K 78643K 43 0 0 proc 44 46K 62K 78643K 1009 0 0 subproc 64 65538K 69634K 78643K 457 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 216 0 0 in_multi 33 2K 2K 78643K 239 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 467 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 83 20K 38K 78643K 7050 0 0 UVM aobj 130 7K 7K 78643K 140 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 74 0 0 NDP 12 0K 0K 78643K 92 0 0 temp 170 2711K 2839K 78643K 14215 0 0 kqueue 0 0K 0K 78643K 17 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 28 0 22 1 0 1 1 0 8 0 inpcbpl 280 995 0 988 1 0 1 1 0 8 0 plimitpl 152 129 0 122 1 0 1 1 0 8 0 rtentry 112 166 0 122 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 5 0 5 1 1 0 1 0 8 0 tcpcb 544 354 0 350 1 0 1 1 0 8 0 nd6 48 39 0 33 1 0 1 1 0 8 0 ppxss 1128 30 0 30 9 8 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 684 0 490 14 1 13 13 0 8 0 art_table 32 685 0 490 2 0 2 2 0 8 0 art_node 16 165 0 125 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 1 1 0 1 1 0 8 0 semapl 112 353 0 343 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5664 0 4183 48 0 48 48 0 8 0 ffsino 240 5664 0 4183 88 0 88 88 0 8 0 nchpl 144 9302 0 7621 63 0 63 63 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 200 5926 0 0 312 0 312 312 0 8 0 namei 1024 29386 0 29385 2 1 1 1 0 8 0 scsiplug 64 4 0 4 3 2 1 1 0 8 1 scxspl 192 49859 0 49859 14 13 1 7 0 8 1 sigapl 432 2732 0 2719 2 0 2 2 0 8 0 futexpl 56 39204 0 39204 1 0 1 1 0 8 1 knotepl 112 721 0 702 1 0 1 1 0 8 0 kqueuepl 104 539 0 537 1 0 1 1 0 8 0 pipepl 112 1462 0 1443 4 3 1 2 0 8 0 fdescpl 424 2733 0 2719 2 0 2 2 0 8 0 filepl 120 15272 0 15177 5 1 4 5 0 8 0 lockfpl 104 818 0 818 2 1 1 1 0 8 1 lockfspl 48 270 0 270 2 1 1 1 0 8 1 sessionpl 112 31 0 21 1 0 1 1 0 8 0 pgrppl 48 41 0 31 1 0 1 1 0 8 0 ucredpl 96 2481 0 2474 1 0 1 1 0 8 0 zombiepl 144 2719 0 2718 2 1 1 1 0 8 0 processpl 840 2748 0 2718 4 0 4 4 0 8 0 procpl 600 5820 0 5782 4 0 4 4 0 8 0 sosppl 128 29 0 29 9 8 1 1 0 8 1 sockpl 384 1961 0 1944 4 1 3 4 0 8 1 mcl64k 65536 842 0 842 68 67 1 33 0 8 1 mcl16k 16384 7 0 7 5 5 0 1 0 8 0 mcl12k 12288 47 0 47 5 4 1 1 0 8 1 mcl9k 9216 32 0 32 10 10 0 1 0 8 0 mcl8k 8192 35 0 35 8 8 0 1 0 8 0 mcl4k 4096 128 0 128 2 1 1 1 0 8 1 mcl2k2 2112 14 0 14 6 6 0 1 0 8 0 mcl2k 2048 61036 0 60991 20 13 7 11 0 8 1 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 113457 0 113371 50 42 8 22 0 8 0 bufpl 256 40794 0 37687 198 0 198 198 0 8 0 anonpl 16 278561 0 269193 127 70 57 62 0 62 11 amapchunkpl 152 13065 0 12962 30 24 6 15 0 158 1 amappl16 192 15023 0 14413 111 70 41 43 0 8 8 amappl15 184 293 0 293 1 1 0 1 0 8 0 amappl14 176 884 0 883 2 1 1 1 0 8 0 amappl13 168 324 0 323 5 4 1 1 0 8 0 amappl12 160 232 0 231 2 1 1 1 0 8 0 amappl11 152 426 0 411 1 0 1 1 0 8 0 amappl10 144 96 0 94 2 1 1 1 0 8 0 amappl9 136 820 0 816 1 0 1 1 0 8 0 amappl8 128 365 0 347 1 0 1 1 0 8 0 amappl7 120 78 0 70 1 0 1 1 0 8 0 amappl6 112 400 0 390 1 0 1 1 0 8 0 amappl5 104 450 0 440 1 0 1 1 0 8 0 amappl4 96 2642 0 2612 2 1 1 2 0 8 0 amappl3 88 1016 0 1010 1 0 1 1 0 8 0 amappl2 80 22699 0 22645 2 0 2 2 0 8 0 amappl1 72 58489 0 58079 24 14 10 19 0 8 0 amappl 72 6270 0 6235 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 2733 0 2719 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2733 0 2719 1 0 1 1 0 8 0 vmmpekpl 168 21763 0 21742 2 0 2 2 0 8 0 vmmpepl 168 280844 0 279304 178 88 90 94 0 357 18 vmsppl 264 2732 0 2719 3 2 1 2 0 8 0 pdppl 4096 5472 0 5438 6 1 5 6 0 8 0 pvpl 32 825258 0 812800 302 156 146 252 0 265 32 pmappl 200 2732 0 2719 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 468 0 141 12 1 11 11 0 8 0