panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149b17d8,ffff8000149b17d8,9c91bdd9b2c6e403) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda4b0,ffff8000149b1de8,ffff8000149b1e38) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000149b1db8) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000149b1db8) at namei+0x45f sys/kern/vfs_lookup.c:224 sys_unveil(ffff8000ffff3788,ffff8000149b1ef8,ffff8000149b1f60) at sys_unveil+0x222 sys/kern/vfs_syscalls.c:914 syscall(ffff8000149b1fd0) at syscall+0x511 Xsyscall(6,0,8,0,2,f9550c73010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, count: 6 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(ffff8000149b17d8,ffff8000149b17d8,9c91bdd9b2c6e403) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda4b0,ffff8000149b1de8,ffff8000149b1e38) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000149b1db8) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000149b1db8) at namei+0x45f sys/kern/vfs_lookup.c:224 sys_unveil(ffff8000ffff3788,ffff8000149b1ef8,ffff8000149b1f60) at sys_unveil+0x222 sys/kern/vfs_syscalls.c:914 syscall(ffff8000149b1fd0) at syscall+0x511 Xsyscall(6,0,8,0,2,f9550c73010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ae, count: -9 ddb> show registers rdi 0xffffffff81a73677 db_enter+0x17 rsi 0x22e1 __ALIGN_SIZE+0x12e1 rbp 0xffff8000149b15f0 rbx 0xffff8000149b16a0 rdx 0x22e2 __ALIGN_SIZE+0x12e2 rcx 0xffff800001793000 rax 0xffff800001793000 r8 0xffff8000149b15b0 r9 0x1 r10 0xffff80000098ea40 r11 0xc005707abd8d3a2e r12 0x3000000008 r13 0xffff8000149b1600 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149b15e0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=351052 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff39e0,0xffffffff822b78f0 process=0xffff8000ffff73c0 user=0xffff8000149ad000, 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 963 227024 61902 0 2 0 syz-executor.0 * 963 351052 61902 0 7 0x4000000 syz-executor.0 75580 164345 5005 0 3 0x80 nanosleep syz-executor.1 75580 74794 5005 0 3 0x4000080 lockf syz-executor.1 75580 302058 5005 0 3 0x4000080 lockf syz-executor.1 75580 67718 5005 0 3 0x4000080 lockf syz-executor.1 75580 521644 5005 0 3 0x4000080 lockf syz-executor.1 75580 475836 5005 0 3 0x4000080 fsleep syz-executor.1 60561 201584 0 0 3 0x14200 bored sosplice 61902 389816 22415 0 3 0x82 nanosleep syz-executor.0 5005 74233 22415 0 3 0x82 nanosleep syz-executor.1 22415 493770 98676 0 3 0x82 thrsleep syz-fuzzer 22415 180711 98676 0 3 0x4000082 thrsleep syz-fuzzer 22415 388097 98676 0 3 0x4000082 kqread syz-fuzzer 22415 158860 98676 0 3 0x4000082 thrsleep syz-fuzzer 22415 57999 98676 0 3 0x4000082 thrsleep syz-fuzzer 22415 219389 98676 0 3 0x4000082 thrsleep syz-fuzzer 22415 487378 98676 0 3 0x4000082 thrsleep syz-fuzzer 22415 211517 98676 0 3 0x4000082 thrsleep syz-fuzzer 98676 118964 86284 0 3 0x10008a pause ksh 86284 75101 30555 0 3 0x92 select sshd 94456 334709 1 0 3 0x100083 ttyin getty 30555 225617 1 0 3 0x80 select sshd 79906 232640 70540 73 2 0x100090 syslogd 70540 452474 1 0 3 0x100082 netio syslogd 9987 239831 1 77 3 0x100090 poll dhclient 53365 449553 1 0 3 0x80 poll dhclient 82795 488608 0 0 2 0x14200 zerothread 37794 84149 0 0 3 0x14200 aiodoned aiodoned 91557 34459 0 0 3 0x14200 syncer update 62670 349691 0 0 3 0x14200 cleaner cleaner 59397 385331 0 0 3 0x14200 reaper reaper 12481 464113 0 0 3 0x14200 pgdaemon pagedaemon 2726 174811 0 0 3 0x14200 bored crynlk 96881 131296 0 0 3 0x14200 bored crypto 84558 100700 0 0 3 0x40014200 acpi0 acpi0 9352 459725 0 0 3 0x14200 bored softnet 5554 145456 0 0 3 0x14200 bored systqmp 42134 60669 0 0 3 0x14200 bored systq 92531 457661 0 0 3 0x40014200 bored softclock 37369 344067 0 0 3 0x40014200 idle0 56876 304536 0 0 3 0x14200 bored smr 1 514709 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 6325K 6712K 78643K 11357 0 0 pcb 23 9K 10K 78643K 217 0 0 rtable 108 3K 4K 78643K 376 0 0 ifaddr 48 11K 12K 78643K 94 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 32 0 0 iov 0 0K 24K 78643K 38 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1200 75K 76K 78643K 1502 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 1K 1K 78643K 46 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 355 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 42 38K 62K 78643K 443 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 32 0 0 in_multi 33 2K 2K 78643K 71 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 238 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 20K 78643K 1665 0 0 UVM aobj 27 2K 2K 78643K 27 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 2 0 0 NDP 9 0K 0K 78643K 29 0 0 temp 125 2704K 2832K 78643K 6508 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 185 0 177 1 0 1 1 0 8 0 plimitpl 152 26 0 19 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 7 0 7 2 2 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 324 0 132 12 0 12 12 0 8 0 art_table 32 325 0 132 2 0 2 2 0 8 0 art_node 16 77 0 37 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 1 0 1 1 0 8 0 semapl 112 44 0 34 1 0 1 1 0 8 0 shmpl 112 25 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1884 0 458 47 0 47 47 0 8 0 ffsino 240 1884 0 458 85 0 85 85 0 8 0 nchpl 144 2505 0 860 61 0 61 61 0 8 0 uvmvnodes 72 2147 0 0 40 0 40 40 0 8 0 vnodes 200 2147 0 0 113 0 113 113 0 8 0 namei 1024 6939 0 6938 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 15647 0 15647 8 7 1 6 0 8 1 sigapl 432 516 0 502 2 0 2 2 0 8 0 futexpl 56 4997 0 4996 1 0 1 1 0 8 0 knotepl 112 171 0 152 1 0 1 1 0 8 0 kqueuepl 104 76 0 74 1 0 1 1 0 8 0 pipepl 112 320 0 301 2 1 1 1 0 8 0 fdescpl 424 517 0 502 2 0 2 2 0 8 0 filepl 120 2764 0 2665 4 0 4 4 0 8 0 lockfpl 104 109 0 104 2 1 1 1 0 8 0 lockfspl 48 45 0 44 2 1 1 1 0 8 0 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 309 0 302 1 0 1 1 0 8 0 zombiepl 144 502 0 502 2 1 1 1 0 8 1 processpl 840 532 0 502 4 0 4 4 0 8 0 procpl 600 923 0 880 4 0 4 4 0 8 0 sosppl 128 3 0 3 1 0 1 1 0 8 1 sockpl 384 363 0 345 3 0 3 3 0 8 0 mcl64k 65536 5 0 5 2 2 0 1 0 8 0 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl12k 12288 3 0 3 2 2 0 1 0 8 0 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 24 0 24 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 57920 0 57887 11 6 5 9 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 95929 0 95828 12 4 8 9 0 8 0 bufpl 256 19721 0 16614 199 1 198 198 0 8 0 anonpl 16 58401 0 48922 54 1 53 53 0 62 9 amapchunkpl 152 2419 0 2323 8 3 5 6 0 158 0 amappl16 192 2316 0 1748 42 5 37 41 0 8 8 amappl14 176 87 0 85 2 1 1 1 0 8 0 amappl13 168 212 0 207 1 0 1 1 0 8 0 amappl12 160 11 0 9 1 0 1 1 0 8 0 amappl11 152 85 0 71 1 0 1 1 0 8 0 amappl10 144 66 0 65 2 1 1 1 0 8 0 amappl9 136 594 0 590 1 0 1 1 0 8 0 amappl8 128 153 0 138 1 0 1 1 0 8 0 amappl7 120 47 0 41 1 0 1 1 0 8 0 amappl6 112 88 0 80 1 0 1 1 0 8 0 amappl5 104 179 0 170 1 0 1 1 0 8 0 amappl4 96 845 0 814 2 1 1 2 0 8 0 amappl3 88 119 0 114 1 0 1 1 0 8 0 amappl2 80 3269 0 3205 2 0 2 2 0 8 0 amappl1 72 19126 0 18684 25 16 9 19 0 8 0 amappl 72 1190 0 1151 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 26 0 0 1 0 1 1 0 8 0 uaddrrnd 24 517 0 502 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 517 0 502 1 0 1 1 0 8 0 vmmpekpl 168 7591 0 7575 2 1 1 2 0 8 0 vmmpepl 168 63103 0 61507 102 18 84 85 0 357 14 vmsppl 264 516 0 502 2 1 1 2 0 8 0 pdppl 4096 1040 0 1004 6 1 5 6 0 8 0 pvpl 32 206512 0 193976 150 13 137 137 0 265 26 pmappl 200 516 0 502 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 340 0 19 10 0 10 10 0 8 0