panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff8000149e8878,ffff8000149e8878,4796a3881617ac1) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda000,ffff8000149e8a78,ffff8000149e8ac8) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000149e8a48) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000149e8a48) at namei+0x45f sys/kern/vfs_lookup.c:224 dounlinkat(ffff800014940270,ffffff9c,20000380,8) at dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 syscall(ffff8000149e8c50) at syscall+0x511 Xsyscall(6,0,ffffffffffffffc4,0,1,8cc33137010) at Xsyscall+0x128 end of kernel end trace frame: 0x2e2, 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(ffff8000149e8878,ffff8000149e8878,4796a3881617ac1) at ufs_dirbadentry VOP_LOOKUP(fffffd803efda000,ffff8000149e8a78,ffff8000149e8ac8) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff8000149e8a48) at vfs_lookup+0x55d sys/kern/vfs_lookup.c:523 namei(ffff8000149e8a48) at namei+0x45f sys/kern/vfs_lookup.c:224 dounlinkat(ffff800014940270,ffffff9c,20000380,8) at dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 syscall(ffff8000149e8c50) at syscall+0x511 Xsyscall(6,0,ffffffffffffffc4,0,1,8cc33137010) at Xsyscall+0x128 end of kernel end trace frame: 0x2e2, count: -9 ddb> show registers rdi 0xffffffff81a73677 db_enter+0x17 rsi 0x23c0 __ALIGN_SIZE+0x13c0 rbp 0xffff8000149e8690 rbx 0xffff8000149e8740 rdx 0x23c1 __ALIGN_SIZE+0x13c1 rcx 0xffff800002b95000 rax 0xffff800002b95000 r8 0xffff8000149e8650 r9 0x1 r10 0xffff800001994780 r11 0xbed5e46586b05db r12 0x3000000008 r13 0xffff8000149e86a0 r14 0x100 r15 0x1 rip 0xffffffff81a73678 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000149e8680 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=295190 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800014941080,0xffff800014941540 process=0xffff8000ffff6358 user=0xffff8000149e3000, vmspace=0xfffffd803f014840 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3017 322645 98726 0 2 0 syz-executor.0 3017 491731 98726 0 2 0x4000000 syz-executor.0 39114 342530 95970 0 2 0 syz-executor.1 *39114 295190 95970 0 7 0x4000000 syz-executor.1 85807 514468 1 0 3 0x100083 ttyin getty 38741 44252 0 0 3 0x14200 bored sosplice 98726 381974 20935 0 3 0x82 nanosleep syz-executor.0 95970 211208 20935 0 2 0x482 syz-executor.1 20935 326218 62702 0 3 0x82 thrsleep syz-fuzzer 20935 169363 62702 0 3 0x4000082 thrsleep syz-fuzzer 20935 45115 62702 0 3 0x4000082 thrsleep syz-fuzzer 20935 410226 62702 0 3 0x4000082 kqread syz-fuzzer 20935 260385 62702 0 3 0x4000082 thrsleep syz-fuzzer 20935 219807 62702 0 3 0x4000082 thrsleep syz-fuzzer 20935 471177 62702 0 3 0x4000082 thrsleep syz-fuzzer 62702 191928 49897 0 3 0x10008a pause ksh 49897 211034 63601 0 3 0x92 select sshd 63601 107834 1 0 3 0x80 select sshd 89767 12761 85606 73 2 0x100090 syslogd 85606 223256 1 0 3 0x100082 netio syslogd 49741 447662 1 77 3 0x100090 poll dhclient 6297 34609 1 0 3 0x80 poll dhclient 45416 176053 0 0 2 0x14200 zerothread 51048 111410 0 0 3 0x14200 aiodoned aiodoned 97225 430678 0 0 3 0x14200 syncer update 46462 35114 0 0 3 0x14200 cleaner cleaner 38278 403200 0 0 3 0x14200 reaper reaper 2940 417708 0 0 3 0x14200 pgdaemon pagedaemon 43044 290771 0 0 3 0x14200 bored crynlk 90214 270365 0 0 3 0x14200 bored crypto 43222 450539 0 0 3 0x40014200 acpi0 acpi0 35401 125033 0 0 3 0x14200 bored softnet 43735 176436 0 0 3 0x14200 bored systqmp 92854 365378 0 0 3 0x14200 bored systq 80039 16969 0 0 3 0x40014200 bored softclock 85471 146305 0 0 3 0x40014200 idle0 86243 243127 0 0 2 0x14200 smr 1 398205 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 9501 6592K 6850K 78643K 12242 0 0 pcb 23 9K 10K 78643K 357 0 0 rtable 108 3K 4K 78643K 347 0 0 ifaddr 50 12K 12K 78643K 128 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 33 0 0 iov 0 0K 24K 78643K 93 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 1805 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 4 0 0 VM map 2 0K 0K 78643K 2 0 0 sem 12 0K 0K 78643K 88 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12537 0 0 file desc 6 17K 25K 78643K 659 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 42 30K 62K 78643K 353 0 0 subproc 64 65538K 69634K 78643K 82 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 93 0 0 in_multi 33 2K 2K 78643K 72 0 0 ether_multi 1 0K 0K 78643K 8 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 243 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 78 20K 29K 78643K 2346 0 0 UVM aobj 33 2K 2K 78643K 37 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 18 0 0 NDP 9 0K 0K 78643K 34 0 0 temp 139 2704K 2832K 78643K 7266 0 0 kqueue 0 0K 0K 78643K 4 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 6 0 0 1 0 1 1 0 8 0 inpcbpl 280 350 0 343 1 0 1 1 0 8 0 plimitpl 152 42 0 35 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 18 0 18 1 1 0 1 0 8 0 tcpcb 544 130 0 126 1 0 1 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 16 0 16 4 3 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semapl 112 86 0 76 1 0 1 1 0 8 0 shmpl 112 35 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2482 0 1070 46 0 46 46 0 8 0 ffsino 240 2482 0 1070 84 0 84 84 0 8 0 nchpl 144 3582 0 1954 61 0 61 61 0 8 0 uvmvnodes 72 2936 0 0 54 0 54 54 0 8 0 vnodes 200 2936 0 0 155 0 155 155 0 8 0 namei 1024 10191 0 10190 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 22575 0 22575 8 7 1 6 0 8 1 sigapl 432 830 0 816 2 0 2 2 0 8 0 futexpl 56 11233 0 11233 1 0 1 1 0 8 1 knotepl 112 165 0 146 1 0 1 1 0 8 0 kqueuepl 104 179 0 177 1 0 1 1 0 8 0 pipepl 112 494 0 475 2 1 1 1 0 8 0 fdescpl 424 831 0 816 2 0 2 2 0 8 0 filepl 120 4756 0 4661 4 0 4 4 0 8 1 lockfpl 104 183 0 183 2 1 1 1 0 8 1 lockfspl 48 67 0 67 2 1 1 1 0 8 1 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 28 0 18 1 0 1 1 0 8 0 ucredpl 96 738 0 731 1 0 1 1 0 8 0 zombiepl 144 816 0 816 2 1 1 1 0 8 1 processpl 840 846 0 816 4 0 4 4 0 8 0 procpl 600 1695 0 1657 4 0 4 4 0 8 0 sosppl 128 9 0 9 3 2 1 1 0 8 1 sockpl 384 626 0 609 3 0 3 3 0 8 1 mcl64k 65536 289 0 289 34 28 6 33 0 8 6 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl12k 12288 10 0 10 4 3 1 1 0 8 1 mcl9k 9216 9 0 9 3 3 0 1 0 8 0 mcl8k 8192 13 0 13 4 3 1 1 0 8 1 mcl4k 4096 41 0 41 3 2 1 1 0 8 1 mcl2k2 2112 6 0 6 3 2 1 1 0 8 1 mcl2k 2048 58218 0 58176 15 9 6 12 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 98538 0 98464 28 20 8 22 0 8 0 bufpl 256 23286 0 20179 198 0 198 198 0 8 0 anonpl 16 94281 0 82863 75 18 57 62 0 62 11 amapchunkpl 152 3489 0 3388 13 8 5 9 0 158 0 amappl16 192 4666 0 4032 58 23 35 44 0 8 3 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 28 0 27 2 1 1 1 0 8 0 amappl13 168 23 0 21 2 1 1 1 0 8 0 amappl12 160 6 0 5 1 0 1 1 0 8 0 amappl11 152 41 0 27 1 0 1 1 0 8 0 amappl10 144 62 0 59 2 1 1 1 0 8 0 amappl9 136 1184 0 1177 1 0 1 1 0 8 0 amappl8 128 747 0 729 1 0 1 1 0 8 0 amappl7 120 31 0 28 1 0 1 1 0 8 0 amappl6 112 54 0 47 1 0 1 1 0 8 0 amappl5 104 129 0 119 1 0 1 1 0 8 0 amappl4 96 1046 0 1016 2 1 1 2 0 8 0 amappl3 88 141 0 135 1 0 1 1 0 8 0 amappl2 80 6322 0 6260 2 0 2 2 0 8 0 amappl1 72 23658 0 23234 23 13 10 19 0 8 0 amappl 72 1928 0 1893 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 36 0 4 1 0 1 1 0 8 0 uaddrrnd 24 831 0 816 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 831 0 816 1 0 1 1 0 8 0 vmmpekpl 168 9562 0 9542 3 1 2 2 0 8 0 vmmpepl 168 94683 0 93039 110 36 74 83 0 357 2 vmsppl 264 830 0 816 2 1 1 2 0 8 0 pdppl 4096 1668 0 1632 6 1 5 6 0 8 0 pvpl 32 288343 0 273903 183 33 150 157 0 265 33 pmappl 200 830 0 816 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 395 0 67 11 0 11 11 0 8 0