panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff800020c0ae78,ffff800020c0ae78,8398a4b77f6feae5) at ufs_dirbadentry VOP_LOOKUP(fffffd807efbd640,ffff800020c0b078,ffff800020c0b0c8) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff800020c0b048) at vfs_lookup+0x575 sys/kern/vfs_lookup.c:523 namei(ffff800020c0b048) at namei+0x45f sys/kern/vfs_lookup.c:224 dounlinkat(ffff800020b38270,3,20000080,8) at dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 syscall(ffff800020c0b250) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c0b250) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,7,0,3,9672838a010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ab, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic bad dir ddb{0}> 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(ffff800020c0ae78,ffff800020c0ae78,8398a4b77f6feae5) at ufs_dirbadentry VOP_LOOKUP(fffffd807efbd640,ffff800020c0b078,ffff800020c0b0c8) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff800020c0b048) at vfs_lookup+0x575 sys/kern/vfs_lookup.c:523 namei(ffff800020c0b048) at namei+0x45f sys/kern/vfs_lookup.c:224 dounlinkat(ffff800020b38270,3,20000080,8) at dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 syscall(ffff800020c0b250) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c0b250) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,7,0,3,9672838a010) at Xsyscall+0x128 end of kernel end trace frame: 0x3ab, count: -9 ddb{0}> show registers rdi 0xffffffff816ce867 db_enter+0x17 rsi 0x2640 __ALIGN_SIZE+0x1640 rbp 0xffff800020c0ac90 rbx 0xffff800020c0ad40 rdx 0x2641 __ALIGN_SIZE+0x1641 rcx 0xffff8000009be000 rax 0xffff8000009be000 r8 0xffffffff812d2ac3 kprintf+0x173 r9 0x1 r10 0x25 r11 0x74ac0ab2826ebfc3 r12 0x3000000008 r13 0xffff800020c0aca0 r14 0x100 r15 0x1 rip 0xffffffff816ce868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c0ac80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=28107 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020b392d8,0xffffffff82341258 process=0xffff800020b3a9e8 user=0xffff800020c06000, vmspace=0xfffffd807effeb40 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 45015 344378 4160 0 2 0 syz-executor.1 *45015 28107 4160 0 7 0x4000000 syz-executor.1 30154 141940 91156 0 2 0x480 syz-executor.0 30154 97201 91156 0 3 0x4000080 nanosleep syz-executor.0 30154 284178 91156 0 3 0x4000080 fsleep syz-executor.0 4160 31727 28562 0 3 0x82 nanosleep syz-executor.1 91156 229222 28562 0 2 0x482 syz-executor.0 42878 289397 1 0 3 0x100083 ttyin getty 28562 40762 71099 0 3 0x82 thrsleep syz-fuzzer 28562 33784 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 18981 71099 0 3 0x4000082 kqread syz-fuzzer 28562 245689 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 23165 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 197175 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 467638 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 382491 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 273794 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 442023 71099 0 3 0x4000082 thrsleep syz-fuzzer 28562 158453 71099 0 3 0x4000082 thrsleep syz-fuzzer 71099 473446 10988 0 3 0x10008a pause ksh 10988 98426 38891 0 3 0x92 select sshd 38891 153930 1 0 3 0x80 select sshd 79603 86624 61760 74 3 0x100092 bpf pflogd 61760 475395 1 0 3 0x80 netio pflogd 8363 374900 62324 73 7 0x100090 syslogd 62324 62093 1 0 3 0x100082 netio syslogd 33972 315528 1 77 3 0x100090 poll dhclient 70171 414565 1 0 3 0x80 poll dhclient 2616 980 0 0 3 0x14200 pgzero zerothread 27869 339926 0 0 3 0x14200 aiodoned aiodoned 19998 459290 0 0 3 0x14200 syncer update 55419 187438 0 0 3 0x14200 cleaner cleaner 11467 114884 0 0 3 0x14200 reaper reaper 92618 456797 0 0 3 0x14200 pgdaemon pagedaemon 54989 315723 0 0 3 0x14200 bored crynlk 8374 409055 0 0 3 0x14200 bored crypto 57315 98729 0 0 3 0x40014200 acpi0 acpi0 95483 361548 0 0 3 0x40014200 idle1 85011 201337 0 0 3 0x14200 bored softnet 35906 459953 0 0 3 0x14200 bored systqmp 75566 338044 0 0 3 0x14200 bored systq 68997 127296 0 0 3 0x40014200 bored softclock 82143 395060 0 0 3 0x40014200 idle0 28254 237081 0 0 3 0x14200 bored smr 1 169708 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff823695a8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 preempt+0x36 sys/kern/sched_bsd.c:332 #2 ast+0x101 mi_ast sys/sys/syscall_mi.h:171 [inline] #2 ast+0x101 sys/arch/amd64/amd64/trap.c:495 #3 Xsyscall+0x156 Process 45015 (syz-executor.1) thread 0xffff800020b38270 (28107) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82390318) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x38c sys/kern/sched_bsd.c:439 #3 sleep_finish+0x110 sys/kern/kern_synch.c:303 #4 sleep_finish_all+0x34 sleep_finish_timeout sys/kern/kern_synch.c:327 [inline] #4 sleep_finish_all+0x34 sys/kern/kern_synch.c:157 #5 tsleep+0x195 sys/kern/kern_synch.c:149 #6 biowait+0xa1 sys/kern/vfs_bio.c:1228 #7 ffs_bufatoff+0x14f sys/ufs/ffs/ffs_subr.c:71 #8 ufs_lookup+0x48d sys/ufs/ufs/ufs_lookup.c:258 #9 VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 #10 vfs_lookup+0x575 sys/kern/vfs_lookup.c:523 #11 namei+0x45f sys/kern/vfs_lookup.c:224 #12 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 #13 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #13 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807ed14f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1161 #1 rw_enter+0x414 sys/kern/kern_rwlock.c:278 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:407 #3 VOP_LOCK+0x4b sys/kern/vfs_vops.c:602 #4 vn_lock+0x6e sys/kern/vfs_vnops.c:549 #5 vfs_lookup+0xec sys/kern/vfs_lookup.c:387 #6 namei+0x45f sys/kern/vfs_lookup.c:224 #7 dounlinkat+0x99 sys/kern/vfs_syscalls.c:1673 #8 syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] #8 syscall+0x552 sys/arch/amd64/amd64/trap.c:574 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9526 6416K 14593K 78643K 12308 0 0 pcb 25 9K 11K 78643K 378 0 0 rtable 108 4K 4K 78643K 646 0 0 ifaddr 62 14K 14K 78643K 177 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1496 0 0 iov 0 0K 16K 78643K 84 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1197 75K 76K 78643K 1902 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 17 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 0K 78643K 135 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 6 17K 25K 78643K 749 0 0 sigio 0 0K 0K 78643K 4 0 0 proc 53 50K 91K 78643K 703 0 0 subproc 64 65538K 69634K 78643K 308 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 72 0 0 in_multi 33 2K 2K 78643K 130 0 0 ether_multi 1 0K 0K 78643K 4 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 342 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 91 21K 30K 78643K 3347 0 0 UVM aobj 19 2K 2K 78643K 23 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 26 0 0 NDP 13 0K 0K 78643K 56 0 0 temp 144 2723K 2850K 78643K 8714 0 0 kqueue 0 0K 0K 78643K 2 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 20 0 14 1 0 1 1 0 8 0 inpcbpl 280 322 0 315 1 0 1 1 0 8 0 plimitpl 152 45 0 37 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 122 0 78 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 111 0 107 1 0 1 1 0 8 0 nd6 48 27 0 21 1 0 1 1 0 8 0 ppxss 1128 17 0 17 4 3 1 1 0 8 1 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 19 0 9 1 0 1 1 0 8 0 pfstkey 112 19 0 9 1 0 1 1 0 8 0 pfstate 328 19 0 9 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 502 0 311 13 0 13 13 0 8 0 art_table 32 503 0 311 2 0 2 2 0 8 0 art_node 16 121 0 81 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 129 0 119 1 0 1 1 0 8 0 shmpl 112 21 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2485 0 1047 47 0 47 47 0 8 0 ffsino 272 2485 0 1047 97 0 97 97 0 8 0 nchpl 144 3597 0 1949 62 0 62 62 0 8 0 uvmvnodes 72 3016 0 0 55 0 55 55 0 8 0 vnodes 200 3016 0 0 159 0 159 159 0 8 0 namei 1024 11082 0 11081 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 20404 0 20404 7 6 1 6 0 8 1 sigapl 432 928 0 912 3 1 2 3 0 8 0 futexpl 56 7868 0 7867 1 0 1 1 0 8 0 knotepl 112 320 0 301 1 0 1 1 0 8 0 kqueuepl 104 195 0 193 1 0 1 1 0 8 0 pipepl 112 604 0 585 3 2 1 2 0 8 0 fdescpl 488 929 0 912 3 0 3 3 0 8 0 filepl 152 5186 0 5086 7 2 5 7 0 8 1 lockfpl 104 244 0 244 2 1 1 1 0 8 1 lockfspl 48 92 0 92 2 1 1 1 0 8 1 sessionpl 112 26 0 15 1 0 1 1 0 8 0 pgrppl 48 32 0 21 1 0 1 1 0 8 0 ucredpl 96 762 0 753 1 0 1 1 0 8 0 zombiepl 144 912 0 912 2 1 1 1 0 8 1 processpl 840 944 0 912 4 0 4 4 0 8 0 procpl 600 2321 0 2276 5 1 4 5 0 8 0 srpgc 64 42 0 42 4 3 1 1 0 8 1 sockpl 384 648 0 629 5 2 3 4 0 8 1 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 125 0 0 15 0 15 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 171 0 0 9 0 9 9 0 8 0 bufpl 256 23924 0 17713 391 0 391 391 0 8 0 anonpl 16 109821 0 100419 70 16 54 59 0 125 9 amapchunkpl 152 6135 0 6015 10 2 8 10 0 158 1 amappl16 192 4538 0 3935 63 21 42 43 0 8 11 amappl14 176 128 0 125 2 1 1 1 0 8 0 amappl13 168 164 0 162 3 2 1 1 0 8 0 amappl12 160 332 0 329 1 0 1 1 0 8 0 amappl11 152 132 0 112 2 1 1 2 0 8 0 amappl10 144 135 0 131 1 0 1 1 0 8 0 amappl9 136 708 0 704 1 0 1 1 0 8 0 amappl8 128 227 0 212 1 0 1 1 0 8 0 amappl7 120 101 0 95 1 0 1 1 0 8 0 amappl6 112 109 0 99 1 0 1 1 0 8 0 amappl5 104 469 0 455 1 0 1 1 0 8 0 amappl4 96 1150 0 1118 2 1 1 2 0 8 0 amappl3 88 356 0 351 1 0 1 1 0 8 0 amappl2 80 6332 0 6267 2 0 2 2 0 8 0 amappl1 72 31120 0 30649 25 15 10 20 0 8 0 amappl 72 2713 0 2672 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 22 0 4 1 0 1 1 0 8 0 uaddrrnd 24 929 0 912 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 929 0 912 1 0 1 1 0 8 0 vmmpekpl 168 11887 0 11862 2 0 2 2 0 8 0 vmmpepl 168 108279 0 106571 117 25 92 92 0 357 17 vmsppl 360 928 0 912 2 0 2 2 0 8 0 pdppl 4096 1866 0 1824 6 0 6 6 0 8 0 pvpl 32 325292 0 312667 164 27 137 147 0 265 19 pmappl 232 928 0 912 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 546 0 4 16 0 16 16 0 8 0