panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 69243 27235 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fca443) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5490a8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8064559060,fffffd80645593c0,ffff80002a549278,fffffd80645597f8,0,ffff80002a5491c8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4a0ce8,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002a549410) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc18e3c387c0, 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(ffffffff82fca443) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5490a8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8064559060,fffffd80645593c0,ffff80002a549278,fffffd80645597f8,0,ffff80002a5491c8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4a0ce8,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002a549410) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc18e3c387c0, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a548e30 rbx 0xfffffd80645597f8 rdx 0 rcx 0 rax 0xffff80002a4a0ce8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x50a5ad7b8bc01225 r11 0xcef5aad11cadc5e3 r12 0 r13 0xfffffd8057a5b880 r14 0 r15 0x1 rip 0xffffffff821b1535 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a548e20 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=69243 pid=27235 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4a0a60,0xffff80002a4a0f80 process=0xffff8000327f6f30 user=0xffff80002a544000, vmspace=0xfffffd806bf0cad0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 58657 233572 35492 0 2 0x2 ndp 72411 401149 42314 0 3 0x80 fsleep syz-executor 72411 454327 42314 0 3 0x4000080 lockf syz-executor 35492 69950 14161 0 3 0x10008a sigsusp sh 27235 44108 98219 0 3 0x80 nanoslp syz-executor *27235 69243 98219 0 7 0x4000000 syz-executor 27235 523367 98219 0 3 0x4000080 fsleep syz-executor 27235 20679 98219 0 3 0x4000080 fsleep syz-executor 49223 325711 40266 0 3 0x80 fsleep syz-executor 49223 212478 40266 0 3 0x4000080 ttyout syz-executor 1978 10700 77942 0 3 0x80 nanoslp syz-executor 1978 253089 77942 0 3 0x4000080 fsleep syz-executor 1978 155912 77942 0 3 0x4000080 fsleep syz-executor 1978 454336 77942 0 3 0x4000080 ttyin syz-executor 14161 448371 60147 0 3 0x82 wait syz-executor 49040 306103 93892 0 3 0x80 fsleep syz-executor 49040 315404 93892 0 3 0x4000080 sbwait syz-executor 58901 275502 18208 0 3 0x80 fsleep syz-executor 58901 217268 18208 0 3 0x4000080 netcon syz-executor 98219 515199 60147 0 3 0x82 nanoslp syz-executor 18208 295972 60147 0 3 0x82 nanoslp syz-executor 40266 229684 60147 0 3 0x82 nanoslp syz-executor 42314 513488 60147 0 3 0x82 nanoslp syz-executor 93892 200179 60147 0 3 0x82 nanoslp syz-executor 22630 34289 60147 0 2 0x2 syz-executor 77942 462210 60147 0 3 0x82 nanoslp syz-executor 95491 335801 0 0 3 0x14280 nfsidl nfsio 63076 251124 0 0 3 0x14280 nfsidl nfsio 6901 300123 0 0 3 0x14280 nfsidl nfsio 85389 321705 0 0 3 0x14280 nfsidl nfsio 12137 483996 0 0 3 0x14280 nfsidl nfsio 35337 111879 0 0 3 0x14280 nfsidl nfsio 93381 433075 0 0 3 0x14280 nfsidl nfsio 21635 162339 0 0 3 0x14280 nfsidl nfsio 82036 500885 0 0 3 0x14280 nfsidl nfsio 22326 270175 0 0 3 0x14280 nfsidl nfsio 69440 7494 0 0 3 0x14280 nfsidl nfsio 71465 86766 0 0 3 0x14280 nfsidl nfsio 42167 206912 0 0 3 0x14280 nfsidl nfsio 47508 177025 0 0 3 0x14280 nfsidl nfsio 80889 330114 0 0 3 0x14280 nfsidl nfsio 82126 54753 0 0 3 0x14280 nfsidl nfsio 42513 119268 0 0 3 0x14280 nfsidl nfsio 32641 416873 0 0 3 0x14280 nfsidl nfsio 38241 182930 0 0 3 0x14280 nfsidl nfsio 75177 122703 0 0 3 0x14280 nfsidl nfsio 36381 61970 1 0 3 0x80 fsleep syz-executor 36381 62426 1 0 3 0x4000000 inode syz-executor 294 397142 1 0 3 0x80 fsleep syz-executor 294 230679 1 0 3 0x4000080 ttyin syz-executor 294 485376 1 0 3 0x4000000 inode syz-executor 4235 295807 1 0 3 0x100083 ttyin getty 98173 306858 0 0 3 0x14200 acct acct 34387 341047 0 0 3 0x14200 bored sosplice 60147 57161 52420 0 3 0x82 kqread syz-executor 52420 115088 45307 0 3 0x10008a sigsusp ksh 45307 219051 83514 0 3 0x98 kqread sshd-session 83514 64209 29451 0 3 0x92 kqread sshd-session 29451 38237 1 0 3 0x88 kqread sshd 90985 522772 58624 73 3 0x1100090 kqread syslogd 58624 402882 1 0 3 0x100082 sbwait syslogd 71735 178051 1 0 3 0x100080 kqread resolvd 17872 3171 52956 77 3 0x100092 kqread dhcpleased 62638 360701 52956 77 3 0x100092 kqread dhcpleased 52956 100094 1 0 3 0x80 kqread dhcpleased 32437 179188 0 0 3 0x14200 bored smr 25949 131463 0 0 2 0x14200 zerothread 40608 40164 0 0 3 0x14200 aiodoned aiodoned 31497 28356 0 0 3 0x14200 syncer update 8013 59298 0 0 3 0x14200 cleaner cleaner 47832 184926 0 0 3 0x14200 reaper reaper 61189 312371 0 0 3 0x14200 pgdaemon pagedaemon 10904 2534 0 0 3 0x14200 bored viomb 29058 277479 0 0 3 0x40014200 acpi0 acpi0 35444 54963 0 0 3 0x14200 bored softnet3 78375 245087 0 0 3 0x14200 bored softnet2 45604 489978 0 0 3 0x14200 bored softnet1 59649 312044 0 0 3 0x14200 bored softnet0 46471 222833 0 0 3 0x14200 bored systqmp 62116 290133 0 0 3 0x14200 bored systq 82399 413279 0 0 3 0x40014200 tmoslp softclock 68787 346320 0 0 3 0x40014200 idle0 1 448995 0 0 3 0x80082 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 10224 14146K 14604K 166960K 17011 0 pcb 17 20K 22K 166960K 1133 0 rtable 207 9K 10K 166960K 6784 0 pf 41 14K 269K 166960K 532 0 ifaddr 45 9K 10K 166960K 849 0 ifgroup 66 2K 2K 166960K 864 0 sysctl 4 1K 3K 166960K 15 0 counters 34 18K 18K 166960K 244 0 ioctlops 0 0K 4K 166960K 690 0 iov 1 2K 42K 166960K 354 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1608 101K 101K 166960K 7831 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 72K 76K 166960K 80 0 VM map 2 1K 1K 166960K 2 0 sem 25 77K 132K 166960K 58 0 dirhash 15 2K 3K 166960K 93 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 20 73K 97K 166960K 7031 0 sigio 0 0K 0K 166960K 161 0 proc 62 59K 124K 166960K 5814 0 subproc 130 8K 8K 166960K 2446 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1081 0 in_multi 86 6K 7K 166960K 2168 0 ether_multi 1 0K 0K 166960K 38 0 mrt 1 0K 0K 166960K 22 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 3262 0 pfkey data 0 0K 0K 166960K 7 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 251 89K 107K 166960K 55830 0 UVM aobj 210 12K 12K 166960K 232 0 pinsyscall 42 84K 96K 166960K 12587 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 332 0 NDP 17 0K 2K 166960K 599 0 temp 91 6817K 6956K 166960K 242896 0 kqueue 13 20K 35K 166960K 779 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 853 0 850 4 2 2 2 0 8 1 rtentry 112 2496 0 2409 5 2 3 4 0 8 0 unpcb 144 4779 0 4762 26 22 4 6 0 8 3 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 6 0 6 3 2 1 1 0 8 1 tcpcb 808 2010 0 2005 37 30 7 8 0 8 6 arp 88 469 0 452 1 0 1 1 0 8 0 ipq 40 19 0 19 1 0 1 1 0 8 1 ipqe 40 205 0 205 1 0 1 1 0 8 1 inpcb 336 8213 0 8203 70 63 7 16 0 8 5 nd6 104 583 0 563 1 0 1 1 0 8 0 pkpcb 40 27 0 27 5 4 1 1 0 8 1 kcovpl 48 188 0 178 1 0 1 1 0 8 0 ppxss 1072 27 0 27 6 5 1 1 0 8 1 pfanchor 1288 6 0 6 1 1 0 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 344 3 0 1 1 0 1 1 0 8 0 pfrule 1344 6 0 6 3 3 0 1 0 8 0 art_heap8 4096 5 0 2 4 1 3 4 0 8 0 art_heap4 256 9250 0 8874 40 11 29 30 0 8 5 art_table 32 9255 0 8876 4 0 4 4 0 8 0 art_node 16 2386 0 2309 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 7 1 0 1 1 0 8 0 semapl 112 51 0 28 1 0 1 1 0 8 0 shmpl 112 229 0 22 6 0 6 6 0 8 0 dirhash 1024 73 0 53 3 0 3 3 0 8 0 dino2pl 256 10145 0 8297 116 0 116 116 0 8 0 ffsino 240 10145 0 8297 109 0 109 109 0 8 0 nchpl 144 16788 0 14822 73 0 73 73 0 8 0 uvmvnodes 80 10296 0 0 211 0 211 211 0 8 0 vnodes 216 10296 0 0 572 0 572 572 0 8 0 namei 1024 79029 0 79025 9 7 2 2 0 8 1 kstatmem 264 450 0 420 3 0 3 3 0 8 0 scsiplug 72 9 0 9 4 3 1 1 0 8 1 scxspl 216 133931 0 133931 13 11 2 8 1 8 2 plimitpl 152 1805 0 1786 1 0 1 1 0 8 0 sigapl 424 6996 0 6926 10 1 9 9 0 8 1 futexpl 64 68154 0 68144 1 0 1 1 0 8 0 knotepl 120 190093 0 190046 71 54 17 17 0 8 14 kqueuepl 184 1260 0 1251 6 2 4 4 0 8 3 pipepl 288 1294 0 1265 8 5 3 7 0 8 0 fdescpl 432 6937 0 6905 5 1 4 5 0 8 0 filepl 120 46433 0 46152 38 24 14 16 0 8 2 lockfpl 104 2161 0 2157 4 3 1 2 0 8 0 lockfspl 48 706 0 703 1 0 1 1 0 8 0 sessionpl 144 197 0 189 1 0 1 1 0 8 0 pgrppl 48 623 0 605 1 0 1 1 0 8 0 ucredpl 104 7408 0 7396 1 0 1 1 0 8 0 zombiepl 144 7773 0 7773 4 3 1 1 0 8 1 processpl 1096 6996 0 6926 7 1 6 6 0 8 0 procpl 648 13739 0 13656 9 1 8 8 0 8 0 sosppl 168 32 0 32 6 5 1 1 0 8 1 sockpl 504 14054 0 14025 217 205 12 29 0 8 7 mcl64k 65536 83 0 82 6 5 1 1 0 8 0 mcl16k 16384 15 0 15 4 3 1 1 0 8 1 mcl12k 12288 9 0 9 5 4 1 1 0 8 1 mcl9k 9216 9 0 9 3 3 0 1 0 8 0 mcl8k 8192 89 0 89 6 5 1 1 0 8 1 mcl4k 4096 35 0 35 5 4 1 1 0 8 1 mcl2k2 2112 1 0 1 1 1 0 1 0 8 0 mcl2k 2048 20779 0 20681 39 22 17 29 0 8 3 mtagpl 96 228 0 219 3 2 1 2 0 8 0 mbufpl 256 76848 0 76654 231 204 27 202 0 8 8 bufpl 280 20836 0 13397 533 0 533 533 0 8 0 anonpl 24 858242 0 854286 198 120 78 79 0 187 39 amapchunkpl 152 192404 0 191839 107 72 35 47 0 158 12 amappl16 200 12674 0 12641 98 88 10 16 0 8 7 amappl15 192 6 0 6 3 3 0 1 0 8 0 amappl14 184 530 0 520 1 0 1 1 0 8 0 amappl13 176 11 0 11 2 2 0 1 0 8 0 amappl12 168 10332 0 10300 3 1 2 3 0 8 0 amappl11 160 136 0 126 1 0 1 1 0 8 0 amappl10 152 12 0 12 2 2 0 1 0 8 0 amappl9 144 138 0 136 1 0 1 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 460 0 448 1 0 1 1 0 8 0 amappl6 120 1900 0 1897 1 0 1 1 0 8 0 amappl5 112 819 0 810 1 0 1 1 0 8 0 amappl4 104 811 0 795 1 0 1 1 0 8 0 amappl3 96 36242 0 36117 7 3 4 4 0 8 0 amappl2 88 3128 0 3062 2 0 2 2 0 8 0 amappl1 80 38708 0 38157 13 1 12 13 0 8 0 amappl 88 53743 0 53549 5 0 5 5 0 92 0 dma65536 65536 2 0 2 2 0 2 2 0 8 2 dma32768 32768 1 0 1 1 1 0 1 0 8 0 dma16384 16384 2 0 2 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 7 0 7 2 2 0 1 0 8 0 dma128 128 260 0 260 5 4 1 1 0 8 1 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 231 0 22 4 0 4 4 0 8 0 uaddrrnd 24 6937 0 6905 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6937 0 6905 1 0 1 1 0 8 0 vmmpekpl 168 52672 0 52616 4 0 4 4 0 8 0 vmmpepl 168 413991 0 412115 126 32 94 94 0 357 11 vmsppl 344 6936 0 6905 5 1 4 4 0 8 0 rwobjpl 24 113176 0 101712 70 0 70 70 0 8 0 pdppl 4096 13880 0 13810 367 295 72 82 0 8 2 pvpl 32 3390502 0 3379601 896 630 266 365 0 265 151 pmappl 216 6936 0 6905 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1282 0 868 17 0 17 17 0 8 2 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fca443) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5490a8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8064559060,fffffd80645593c0,ffff80002a549278,fffffd80645597f8,0,ffff80002a5491c8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4a0ce8,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002a549410) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc18e3c387c0, 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(ffffffff82fca443) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5490a8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8064559060,fffffd80645593c0,ffff80002a549278,fffffd80645597f8,0,ffff80002a5491c8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4a0ce8,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002a549410) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc18e3c387c0, count: -7