panic() at panic+0x15c sys/kern/subr_prf.c:212 ufs_dirbadentry(ffff800020c5ace8,ffff800020c5ace8,b048ec40cb832861) at ufs_dirbadentry VOP_LOOKUP(fffffd807efca7d0,ffff800020c5aee8,ffff800020c5af38) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff800020c5aeb8) at vfs_lookup+0x575 sys/kern/vfs_lookup.c:523 namei(ffff800020c5aeb8) at namei+0x45f sys/kern/vfs_lookup.c:224 dorenameat(ffff800020b384c8,3,200001c0,ffffffff,20000200) at dorenameat+0x106 sys/kern/vfs_syscalls.c:2772 syscall(ffff800020c5b1a0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c5b1a0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffc3,0,4,30b2351010) at Xsyscall+0x128 end of kernel end trace frame: 0x2df, 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(ffff800020c5ace8,ffff800020c5ace8,b048ec40cb832861) at ufs_dirbadentry VOP_LOOKUP(fffffd807efca7d0,ffff800020c5aee8,ffff800020c5af38) at VOP_LOOKUP+0x5b sys/kern/vfs_vops.c:90 vfs_lookup(ffff800020c5aeb8) at vfs_lookup+0x575 sys/kern/vfs_lookup.c:523 namei(ffff800020c5aeb8) at namei+0x45f sys/kern/vfs_lookup.c:224 dorenameat(ffff800020b384c8,3,200001c0,ffffffff,20000200) at dorenameat+0x106 sys/kern/vfs_syscalls.c:2772 syscall(ffff800020c5b1a0) at syscall+0x552 mi_syscall sys/sys/syscall_mi.h:99 [inline] syscall(ffff800020c5b1a0) at syscall+0x552 sys/arch/amd64/amd64/trap.c:574 Xsyscall(6,0,ffffffffffffffc3,0,4,30b2351010) at Xsyscall+0x128 end of kernel end trace frame: 0x2df, count: -9 ddb{0}> show registers rdi 0xffffffff812575e7 db_enter+0x17 rsi 0x26cd __ALIGN_SIZE+0x16cd rbp 0xffff800020c5ab00 rbx 0xffff800020c5abb0 rdx 0x26ce __ALIGN_SIZE+0x16ce rcx 0xffff8000011be000 rax 0xffff8000011be000 r8 0xffffffff81a425b3 kprintf+0x173 r9 0x1 r10 0x25 r11 0xcecd9a412f1a1e9c r12 0x3000000008 r13 0xffff800020c5ab10 r14 0x100 r15 0x1 rip 0xffffffff812575e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020c5aaf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=209697 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020b399e0,0xffffffff823445b0 process=0xffff800020b8c9f0 user=0xffff800020c56000, vmspace=0xfffffd807f00b2d0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29250 7708 58074 0 2 0 syz-executor.1 *29250 209697 58074 0 7 0x4000000 syz-executor.1 22323 468476 37849 0 3 0x82 nanosleep syz-executor.0 58074 453679 37849 0 3 0x82 nanosleep syz-executor.1 93250 15618 0 0 3 0x14200 bored sosplice 37849 451056 22353 0 3 0x82 thrsleep syz-fuzzer 37849 196771 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 67424 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 197123 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 292968 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 179602 22353 0 3 0x4000082 kqread syz-fuzzer 37849 39306 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 141861 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 428245 22353 0 3 0x4000082 thrsleep syz-fuzzer 37849 344004 22353 0 3 0x4000082 thrsleep syz-fuzzer 22353 77745 32836 0 3 0x10008a pause ksh 32836 297651 10184 0 3 0x92 select sshd 40580 327103 1 0 3 0x100083 ttyin getty 10184 441477 1 0 3 0x80 select sshd 79282 330852 5323 74 3 0x100092 bpf pflogd 5323 393721 1 0 3 0x80 netio pflogd 23935 407259 22151 73 7 0x100090 syslogd 22151 312029 1 0 3 0x100082 netio syslogd 95700 13215 1 77 3 0x100090 poll dhclient 39457 349694 1 0 3 0x80 poll dhclient 12571 8953 0 0 3 0x14200 pgzero zerothread 45083 82324 0 0 3 0x14200 aiodoned aiodoned 90615 690 0 0 3 0x14200 syncer update 39473 454350 0 0 3 0x14200 cleaner cleaner 27750 476015 0 0 3 0x14200 reaper reaper 86565 496732 0 0 3 0x14200 pgdaemon pagedaemon 97210 175622 0 0 3 0x14200 bored crynlk 50791 479682 0 0 3 0x14200 bored crypto 48443 231524 0 0 3 0x40014200 acpi0 acpi0 63802 35054 0 0 3 0x40014200 idle1 56138 343628 0 0 3 0x14200 bored softnet 53112 152276 0 0 3 0x14200 bored systqmp 58218 251797 0 0 3 0x14200 bored systq 7826 497938 0 0 3 0x40014200 bored softclock 13613 425946 0 0 3 0x40014200 idle0 48254 405824 0 0 3 0x14200 bored smr 1 308136 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 (0xffffffff82386620) #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 29250 (syz-executor.1) thread 0xffff800020b384c8 (209697) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82374b68) #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 dorenameat+0x106 sys/kern/vfs_syscalls.c:2772 #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 (0xfffffd807ed21e68) #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 dorenameat+0x106 sys/kern/vfs_syscalls.c:2772 #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 9537 6416K 6939K 78643K 14071 0 0 pcb 25 9K 12K 78643K 648 0 0 rtable 108 4K 4K 78643K 952 0 0 ifaddr 65 14K 15K 78643K 233 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1529 0 0 iov 0 0K 24K 78643K 149 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1198 75K 76K 78643K 2543 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 22 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 1K 1K 78643K 186 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 5 13K 25K 78643K 1529 0 0 sigio 0 0K 0K 78643K 26 0 0 proc 53 50K 91K 78643K 994 0 0 subproc 64 65538K 69634K 78643K 510 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 147 0 0 in_multi 33 2K 2K 78643K 232 0 0 ether_multi 1 0K 0K 78643K 8 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 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 438 0 0 pfkey data 0 0K 0K 78643K 6 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 88 21K 30K 78643K 5911 0 0 UVM aobj 71 5K 5K 78643K 75 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 79 0 0 NDP 14 0K 0K 78643K 79 0 0 temp 185 2728K 2856K 78643K 11700 0 0 kqueue 0 0K 0K 78643K 9 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 32 0 26 1 0 1 1 0 8 0 inpcbpl 280 700 0 693 1 0 1 1 0 8 0 plimitpl 152 85 0 77 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 188 0 144 2 0 2 2 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 35 0 35 1 1 0 1 0 8 0 tcpcb 544 262 0 258 1 0 1 1 0 8 0 nd6 48 45 0 39 1 0 1 1 0 8 0 ppxss 1128 18 0 18 8 7 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 26 0 18 1 0 1 1 0 8 0 pfstkey 112 26 0 18 1 0 1 1 0 8 0 pfstate 328 26 0 18 1 0 1 1 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 766 0 575 13 0 13 13 0 8 0 art_table 32 767 0 575 2 0 2 2 0 8 0 art_node 16 187 0 147 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 6 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 183 0 173 1 0 1 1 0 8 0 shmpl 112 73 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3547 0 2068 48 0 48 48 0 8 0 ffsino 272 3547 0 2068 99 0 99 99 0 8 0 nchpl 144 5667 0 3975 63 0 63 63 0 8 0 uvmvnodes 72 4582 0 0 84 0 84 84 0 8 0 vnodes 200 4582 0 0 242 0 242 242 0 8 0 namei 1024 17867 0 17865 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 32455 0 32455 14 13 1 6 0 8 1 sigapl 432 1689 0 1674 3 1 2 3 0 8 0 futexpl 56 15312 0 15312 1 0 1 1 0 8 1 knotepl 112 535 0 516 1 0 1 1 0 8 0 kqueuepl 104 266 0 264 1 0 1 1 0 8 0 pipepl 112 1128 0 1109 6 5 1 2 0 8 0 fdescpl 488 1690 0 1674 3 0 3 3 0 8 0 filepl 152 9056 0 8956 11 6 5 7 0 8 1 lockfpl 104 415 0 415 3 2 1 1 0 8 1 lockfspl 48 151 0 151 3 2 1 1 0 8 1 sessionpl 112 31 0 20 1 0 1 1 0 8 0 pgrppl 48 47 0 36 1 0 1 1 0 8 0 ucredpl 96 1153 0 1144 1 0 1 1 0 8 0 zombiepl 144 1674 0 1673 2 1 1 1 0 8 0 processpl 840 1706 0 1673 4 0 4 4 0 8 0 procpl 600 4601 0 4558 4 0 4 4 0 8 0 srpgc 64 78 0 78 6 6 0 1 0 8 0 sosppl 128 13 0 13 5 5 0 1 0 8 0 sockpl 384 1251 0 1232 7 4 3 4 0 8 1 mcl64k 65536 229 0 0 29 1 28 29 0 8 1 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 16 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 124 0 0 15 1 14 15 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 393 0 0 20 0 20 20 0 8 0 bufpl 256 31089 0 24878 390 1 389 390 0 8 0 anonpl 16 169882 0 159102 85 32 53 62 0 125 7 amapchunkpl 152 10795 0 10679 18 10 8 10 0 158 2 amappl16 192 7587 0 6985 71 33 38 43 0 8 7 amappl15 184 375 0 373 1 0 1 1 0 8 0 amappl14 176 313 0 310 2 1 1 1 0 8 0 amappl13 168 193 0 193 3 3 0 1 0 8 0 amappl12 160 314 0 313 1 0 1 1 0 8 0 amappl11 152 150 0 130 1 0 1 1 0 8 0 amappl10 144 330 0 325 1 0 1 1 0 8 0 amappl9 136 848 0 845 1 0 1 1 0 8 0 amappl8 128 350 0 334 1 0 1 1 0 8 0 amappl7 120 303 0 295 1 0 1 1 0 8 0 amappl6 112 134 0 126 1 0 1 1 0 8 0 amappl5 104 490 0 476 1 0 1 1 0 8 0 amappl4 96 2009 0 1978 2 1 1 2 0 8 0 amappl3 88 298 0 293 1 0 1 1 0 8 0 amappl2 80 12925 0 12866 2 0 2 2 0 8 0 amappl1 72 47939 0 47493 25 15 10 20 0 8 0 amappl 72 5098 0 5060 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 74 0 4 2 0 2 2 0 8 0 uaddrrnd 24 1690 0 1674 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1690 0 1674 1 0 1 1 0 8 0 vmmpekpl 168 17816 0 17790 2 0 2 2 0 8 0 vmmpepl 168 188465 0 186857 164 75 89 111 0 357 15 vmsppl 360 1689 0 1674 2 0 2 2 0 8 0 pdppl 4096 3388 0 3348 6 0 6 6 0 8 0 pvpl 32 511685 0 497709 207 69 138 149 0 265 20 pmappl 232 1689 0 1674 2 1 1 2 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 587 0 7 17 0 17 17 0 8 0