panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *190271 71479 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fcc6d9) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800036c59498) at ufs_rename+0x18b2 VOP_RENAME(fffffd8074218998,fffffd8074218cf8,ffff800036c59668,fffffd807d6efeb0,0,ffff800036c595b8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a48c528,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800036c59800) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x56d0519eec0, count: 8 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 *cpu0: ufs_rename: lost dir entry ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fcc6d9) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800036c59498) at ufs_rename+0x18b2 VOP_RENAME(fffffd8074218998,fffffd8074218cf8,ffff800036c59668,fffffd807d6efeb0,0,ffff800036c595b8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a48c528,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800036c59800) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x56d0519eec0, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800036c59220 rbx 0xfffffd807d6efeb0 rdx 0 rcx 0 rax 0xffff80002a48c528 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8a9dd739bdbf9c87 r11 0x1efa503b1d06cdc0 r12 0 r13 0xfffffd80724e94b0 r14 0 r15 0x1 rip 0xffffffff821e8f05 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800036c59210 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=190271 pid=71479 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=84, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a48ca38,0xffff80002a48d978 process=0xffff80002a466f20 user=0xffff800036c54000, vmspace=0xfffffd806c1bc2c0 estcpu=34, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 31866 9608 2436 0 2 0 syz-executor 31866 3708 2436 0 2 0x4000000 syz-executor 16838 31568 64660 0 2 0 syz-executor 16838 395650 64660 0 3 0x4000080 fsleep syz-executor 12132 70734 9677 0 2 0 syz-executor 12132 375139 9677 0 2 0x4000000 syz-executor 12132 242825 9677 0 3 0x4000000 inode syz-executor 47674 264529 20517 0 2 0 syz-executor 47674 149000 20517 0 3 0x4000080 fsleep syz-executor 71479 245552 20491 0 2 0 syz-executor *71479 190271 20491 0 7 0x4000000 syz-executor 71479 97559 20491 0 2 0x4000000 syz-executor 71479 361324 20491 0 2 0x4000000 syz-executor 91329 253034 68689 0 2 0 syz-executor 91329 13770 68689 0 3 0x4000000 inode syz-executor 91329 85977 68689 0 2 0x4000000 syz-executor 2436 516614 43148 0 3 0x82 nanoslp syz-executor 20491 422101 43148 0 3 0x82 nanoslp syz-executor 9677 242185 43148 0 3 0x82 nanoslp syz-executor 68689 104246 43148 0 3 0x82 nanoslp syz-executor 98917 522963 43148 0 2 0x2 syz-executor 83360 401552 43148 0 2 0x2 syz-executor 20517 48923 43148 0 3 0x82 nanoslp syz-executor 64660 346256 43148 0 3 0x82 nanoslp syz-executor 35576 356854 0 0 3 0x14200 bored sosplice 43148 411825 19140 0 3 0x82 kqread syz-executor 19140 264893 68184 0 3 0x10008a sigsusp ksh 68184 330951 7071 0 3 0x98 kqread sshd-session 7071 113081 14729 0 3 0x92 kqread sshd-session 4955 321766 1 0 3 0x100083 ttyin getty 14729 228003 1 0 3 0x88 kqread sshd 98304 303570 68664 73 2 0x1100010 syslogd 68664 5585 1 0 3 0x100082 sbwait syslogd 26921 119023 1 0 3 0x100080 kqread resolvd 10574 169928 29010 77 3 0x100092 kqread dhcpleased 46242 248060 29010 77 3 0x100092 kqread dhcpleased 29010 128281 1 0 3 0x80 kqread dhcpleased 78424 150082 0 0 3 0x14200 bored smr 19303 353962 0 0 2 0x14200 zerothread 46735 485056 0 0 3 0x14200 aiodoned aiodoned 54053 455231 0 0 3 0x14200 syncer update 84766 93280 0 0 3 0x14200 cleaner cleaner 46146 322961 0 0 3 0x14200 reaper reaper 78405 80259 0 0 3 0x14200 pgdaemon pagedaemon 91301 404805 0 0 3 0x14200 bored viomb 71713 67110 0 0 3 0x40014200 acpi0 acpi0 78244 382247 0 0 3 0x14200 bored softnet3 82932 99497 0 0 3 0x14200 bored softnet2 23360 146693 0 0 3 0x14200 bored softnet1 63610 451424 0 0 3 0x14200 bored softnet0 62171 230378 0 0 3 0x14200 bored systqmp 17770 108388 0 0 3 0x14200 bored systq 53310 256588 0 0 3 0x40014200 tmoslp softclock 57071 85243 0 0 3 0x40014200 idle0 1 430515 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 devbuf 10176 11051K 11365K 166960K 11982 0 pcb 17 16K 18K 166960K 206 0 rtable 226 6K 7K 166960K 1342 0 pf 35 14K 16K 166960K 108 0 ifaddr 41 7K 7K 166960K 178 0 ifgroup 50 2K 2K 166960K 184 0 sysctl 4 1K 1K 166960K 4 0 counters 30 17K 17K 166960K 64 0 ioctlops 0 0K 4K 166960K 101 0 iov 0 0K 16K 166960K 61 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1395 88K 88K 166960K 2220 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 11 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 97K 166960K 1061 0 sigio 0 0K 0K 166960K 11 0 proc 60 59K 124K 166960K 1393 0 subproc 104 6K 6K 166960K 507 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 101 0 in_multi 95 7K 7K 166960K 508 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 797 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 218 72K 92K 166960K 9587 0 UVM aobj 16 2K 2K 166960K 16 0 pinsyscall 38 76K 106K 166960K 2900 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 34 0 NDP 11 0K 2K 166960K 126 0 temp 45 6808K 6876K 166960K 27328 0 kqueue 13 20K 30K 166960K 99 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 134 0 131 1 0 1 1 0 8 0 rtentry 112 476 0 370 4 0 4 4 0 8 0 unpcb 144 305 0 287 2 0 2 2 0 8 1 syncache 336 9 0 9 2 1 1 1 0 8 1 tcpqe 32 4 0 4 1 0 1 1 0 8 1 tcpcb 808 200 0 191 8 0 8 8 0 8 6 arp 88 82 0 64 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 45 0 44 1 0 1 1 0 8 0 inpcb 336 843 0 832 13 3 10 12 0 8 8 nd6 104 124 0 102 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 39 0 31 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pfstscr 40 4 0 3 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 5 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 5 1 0 1 1 0 8 0 pfstate 344 5 0 2 1 0 1 1 0 8 0 pfrule 1344 6 0 6 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1916 0 1477 35 5 30 30 0 8 2 art_table 32 1917 0 1477 4 0 4 4 0 8 0 art_node 16 474 0 377 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 5 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 13 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2524 0 964 98 0 98 98 0 8 0 ffsino 240 2524 0 964 92 0 92 92 0 8 0 nchpl 144 3343 0 1629 64 0 64 64 0 8 0 uvmvnodes 80 3252 0 0 67 0 67 67 0 8 0 vnodes 216 3252 0 0 181 0 181 181 0 8 0 namei 1024 13819 0 13812 4 2 2 2 0 8 0 kstatmem 264 90 0 68 2 0 2 2 0 8 0 scxspl 216 21405 0 21405 9 7 2 8 1 8 2 plimitpl 152 142 0 124 1 0 1 1 0 8 0 sigapl 424 1302 0 1256 9 1 8 8 0 8 2 futexpl 64 7014 0 7012 1 0 1 1 0 8 0 knotepl 120 20643 0 20596 10 0 10 10 0 8 8 kqueuepl 184 143 0 134 1 0 1 1 0 8 0 pipepl 288 268 0 240 6 1 5 5 0 8 2 fdescpl 432 1264 0 1235 5 1 4 5 0 8 0 filepl 120 5896 0 5646 13 0 13 13 0 8 5 lockfpl 104 124 0 122 1 0 1 1 0 8 0 lockfspl 48 57 0 55 1 0 1 1 0 8 0 sessionpl 144 56 0 48 1 0 1 1 0 8 0 pgrppl 48 103 0 87 1 0 1 1 0 8 0 ucredpl 104 751 0 740 1 0 1 1 0 8 0 zombiepl 144 1545 0 1545 1 0 1 1 0 8 1 processpl 1096 1302 0 1256 5 0 5 5 0 8 1 procpl 648 2120 0 2062 8 0 8 8 0 8 2 sockpl 504 1290 0 1258 23 11 12 22 0 8 7 mcl64k 65536 14 0 14 1 0 1 1 0 8 1 mcl16k 16384 8 0 8 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 18 0 18 2 1 1 1 0 8 1 mcl4k 4096 3412 0 3362 15 7 8 14 0 8 1 mcl2k2 2112 6 0 6 1 0 1 1 0 8 1 mcl2k 2048 1152 0 1151 5 1 4 4 0 8 3 mtagpl 96 29 0 25 1 0 1 1 0 8 0 mbufpl 256 12619 0 12454 33 13 20 31 0 8 7 bufpl 280 8285 0 2038 447 0 447 447 0 8 0 anonpl 24 239579 0 236378 100 3 97 97 0 187 69 amapchunkpl 152 43958 0 43488 50 0 50 50 0 158 30 amappl16 200 4680 0 4661 18 10 8 14 0 8 6 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 173 0 163 1 0 1 1 0 8 0 amappl13 176 13 0 13 2 1 1 1 0 8 1 amappl12 168 2372 0 2344 3 1 2 3 0 8 0 amappl11 160 54 0 44 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 130 0 130 1 1 0 1 0 8 0 amappl8 136 19 0 18 1 0 1 1 0 8 0 amappl7 128 160 0 150 1 0 1 1 0 8 0 amappl6 120 467 0 465 1 0 1 1 0 8 0 amappl5 112 261 0 252 1 0 1 1 0 8 0 amappl4 104 394 0 377 1 0 1 1 0 8 0 amappl3 96 5924 0 5819 4 0 4 4 0 8 1 amappl2 88 1118 0 1058 2 0 2 2 0 8 0 amappl1 80 12823 0 12316 18 2 16 16 0 8 1 amappl 88 8954 0 8790 5 0 5 5 0 92 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 15 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1264 0 1235 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1264 0 1235 1 0 1 1 0 8 0 vmmpekpl 168 11328 0 11280 3 0 3 3 0 8 0 vmmpepl 168 85011 0 83326 106 5 101 101 0 357 24 vmsppl 344 1263 0 1235 5 1 4 4 0 8 1 rwobjpl 24 30605 0 26503 27 1 26 26 0 8 0 pdppl 4096 2534 0 2470 144 76 68 82 0 8 4 pvpl 32 631423 0 621791 288 4 284 284 0 265 192 pmappl 216 1263 0 1235 3 0 3 3 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 489 0 123 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fcc6d9) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800036c59498) at ufs_rename+0x18b2 VOP_RENAME(fffffd8074218998,fffffd8074218cf8,ffff800036c59668,fffffd807d6efeb0,0,ffff800036c595b8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a48c528,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800036c59800) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x56d0519eec0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fcc6d9) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800036c59498) at ufs_rename+0x18b2 VOP_RENAME(fffffd8074218998,fffffd8074218cf8,ffff800036c59668,fffffd807d6efeb0,0,ffff800036c595b8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a48c528,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800036c59800) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x56d0519eec0, count: -7