panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 7692 82312 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fc35b7) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002cd998c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8079378c00,fffffd8055e231e8,ffff80002cd99a98,fffffd8063782880,0,ffff80002cd999e8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4fbc28,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002cd99c30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa696d49b300, 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(ffffffff82fc35b7) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002cd998c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8079378c00,fffffd8055e231e8,ffff80002cd99a98,fffffd8063782880,0,ffff80002cd999e8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4fbc28,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002cd99c30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa696d49b300, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002cd99650 rbx 0xfffffd8063782880 rdx 0 rcx 0 rax 0xffff80002a4fbc28 r8 0x101010101010101 r9 0x8080808080808080 r10 0x3253ea32dd99b51b r11 0x61572ad52a603590 r12 0 r13 0xfffffd8071add0f0 r14 0 r15 0x1 rip 0xffffffff82391265 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002cd99640 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=7692 pid=82312 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=85, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4fb208,0xffff80002a4fa2e8 process=0xffff8000327f7378 user=0xffff80002cd94000, vmspace=0xfffffd806c1746c8 estcpu=35, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 35762 166436 26506 60928 2 0x10 syz-executor 35762 510394 26506 60928 3 0x4000010 futex syz-executor 35762 21219 26506 60928 3 0x4000090 fsleep syz-executor 1211 170509 77318 0 2 0 syz-executor 1211 434935 77318 0 2 0x4000000 syz-executor 1211 502243 77318 0 2 0x4000000 syz-executor 1211 289948 77318 0 2 0x4000000 syz-executor 75357 329743 36142 0 3 0 futex syz-executor 75357 2765 36142 0 2 0x4000000 syz-executor 75357 44475 36142 0 2 0x4000000 syz-executor 75357 413659 36142 0 3 0x4000000 vmmaplk syz-executor 82312 123223 75938 0 2 0 syz-executor 82312 387148 75938 0 3 0x4000000 futex syz-executor *82312 7692 75938 0 7 0x4000000 syz-executor 82312 170666 75938 0 3 0x4000080 fsleep syz-executor 83074 43493 0 0 3 0x14200 acct acct 77318 6150 4609 0 3 0x82 nanoslp syz-executor 40705 244216 4609 0 2 0x2 syz-executor 36142 363563 4609 0 3 0x82 nanoslp syz-executor 33813 180454 0 0 3 0x14280 nfsidl nfsio 53741 505725 0 0 3 0x14280 nfsidl nfsio 23735 413455 0 0 3 0x14280 nfsidl nfsio 59911 78375 0 0 3 0x14280 nfsidl nfsio 12994 307157 0 0 3 0x14280 nfsidl nfsio 72116 230485 0 0 3 0x14280 nfsidl nfsio 29321 25472 0 0 3 0x14280 nfsidl nfsio 11845 45535 0 0 3 0x14280 nfsidl nfsio 34407 31204 0 0 3 0x14280 nfsidl nfsio 88755 30881 0 0 3 0x14280 nfsidl nfsio 52961 493317 0 0 3 0x14280 nfsidl nfsio 85719 422406 0 0 3 0x14280 nfsidl nfsio 9207 369181 0 0 3 0x14280 nfsidl nfsio 3363 377578 0 0 3 0x14280 nfsidl nfsio 6621 375807 0 0 3 0x14280 nfsidl nfsio 41074 71089 0 0 3 0x14280 nfsidl nfsio 56081 287932 0 0 3 0x14280 nfsidl nfsio 57687 251803 0 0 3 0x14280 nfsidl nfsio 61415 208692 0 0 3 0x14280 nfsidl nfsio 98464 102697 0 0 3 0x14280 nfsidl nfsio 73403 465117 4609 0 2 0x2 syz-executor 69844 404174 4609 0 2 0x2 syz-executor 26506 152989 4609 0 3 0x82 nanoslp syz-executor 84674 254002 4609 0 2 0x2 syz-executor 75938 91751 4609 0 3 0x82 nanoslp syz-executor 37886 429177 1 0 3 0x100083 ttyin getty 83232 416149 0 0 3 0x14200 bored sosplice 4609 113779 30990 0 3 0x82 kqread syz-executor 30990 47712 60907 0 3 0x10008a sigsusp ksh 60907 39262 50014 0 3 0x98 kqread sshd-session 50014 249142 1 0 3 0x92 kqread sshd-session 39951 324390 11088 73 3 0x1100090 kqread syslogd 11088 378466 1 0 3 0x100082 sbwait syslogd 66846 309234 1 0 3 0x100080 kqread resolvd 98352 131541 69018 77 3 0x100092 kqread dhcpleased 92501 77818 69018 77 3 0x100092 kqread dhcpleased 69018 275788 1 0 3 0x80 kqread dhcpleased 51691 229241 0 0 3 0x14200 bored smr 18315 133028 0 0 2 0x14200 zerothread 8466 493463 0 0 3 0x14200 aiodoned aiodoned 14476 155985 0 0 3 0x14200 syncer update 60325 299245 0 0 3 0x14200 cleaner cleaner 63310 60968 0 0 3 0x14200 reaper reaper 42653 385169 0 0 3 0x14200 pgdaemon pagedaemon 36660 143139 0 0 3 0x14200 bored viomb 18474 272571 0 0 3 0x40014200 acpi0 acpi0 98861 296233 0 0 3 0x14200 bored softnet3 88546 268037 0 0 3 0x14200 bored softnet2 31881 430632 0 0 3 0x14200 bored softnet1 81920 52280 0 0 3 0x14200 bored softnet0 10214 280371 0 0 3 0x14200 bored systqmp 7403 409199 0 0 3 0x14200 bored systq 68504 61960 0 0 3 0x40014200 tmoslp softclock 76179 70033 0 0 3 0x40014200 idle0 1 416413 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 10193 11078K 11714K 166960K 17301 0 pcb 17 20K 23K 166960K 1126 0 rtable 201 7K 8K 166960K 9778 0 pf 41 15K 270K 166960K 1034 0 ifaddr 37 10K 12K 166960K 1247 0 ifgroup 50 2K 2K 166960K 1351 0 sysctl 4 1K 2K 166960K 20 0 counters 30 17K 17K 166960K 363 0 ioctlops 0 0K 4K 166960K 1003 0 iov 0 0K 28K 166960K 458 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1500 94K 95K 166960K 8923 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 89 0 VM map 2 1K 1K 166960K 2 0 sem 19 369K 541K 166960K 219 0 dirhash 15 2K 3K 166960K 90 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 8785 0 sigio 0 0K 0K 166960K 193 0 proc 62 67K 124K 166960K 8739 0 subproc 104 6K 7K 166960K 3758 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 660 0 in_multi 75 5K 7K 166960K 3371 0 ether_multi 1 0K 0K 166960K 54 0 mrt 1 0K 0K 166960K 12 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 2K 166960K 4978 0 pfkey data 0 0K 0K 166960K 9 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 194 73K 92K 166960K 67883 0 UVM aobj 10 2K 2K 166960K 10 0 pinsyscall 37 74K 102K 166960K 17121 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 316 0 NDP 11 0K 2K 166960K 928 0 temp 78 6816K 6956K 166960K 308331 0 kqueue 12 18K 30K 166960K 754 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 1180 0 1177 6 3 3 3 0 8 2 rtentry 112 3551 0 3464 6 2 4 4 0 8 0 unpcb 144 3978 0 3963 14 8 6 6 0 8 5 syncache 336 11 0 11 5 5 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 808 1947 0 1945 36 29 7 14 0 8 6 arp 88 670 0 652 1 0 1 1 0 8 0 ipq 40 39 0 39 2 1 1 1 0 8 1 ipqe 40 382 0 382 2 1 1 1 0 8 1 inpcb 336 7151 0 7133 37 29 8 12 0 8 5 nd6 104 908 0 887 1 0 1 1 0 8 0 pkpcb 40 31 0 31 6 5 1 1 0 8 1 kcovpl 48 289 0 281 1 0 1 1 0 8 0 ppxss 1072 30 0 30 5 4 1 1 0 8 1 pfstscr 40 15 0 13 5 4 1 1 0 8 0 pfrktable 1344 9 0 9 2 2 0 1 0 8 0 pfanchor 1288 38 0 34 2 1 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 16 0 2 1 0 1 1 0 8 0 pfstkey 128 37 0 24 2 1 1 1 0 8 0 pfstate 344 20 0 13 2 1 1 1 0 8 0 pfrule 1344 161 0 125 5 1 4 4 0 8 1 art_heap8 4096 6 0 2 5 0 5 5 0 8 1 art_heap4 256 13268 0 12934 39 12 27 30 0 8 3 art_table 32 13274 0 12936 4 0 4 4 0 8 0 art_node 16 3532 0 3456 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 6 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 210 0 193 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 73 0 52 4 0 4 4 0 8 1 dino2pl 256 10140 0 8082 130 1 129 129 0 8 0 ffsino 240 10140 0 8082 122 0 122 122 0 8 0 nchpl 144 17096 0 16197 78 32 46 77 0 8 8 uvmvnodes 80 10865 0 0 222 0 222 222 0 8 0 vnodes 216 10865 0 0 604 0 604 604 0 8 0 namei 1024 86802 0 86799 5 4 1 2 0 8 0 pfiaddrpl 120 3 0 3 2 2 0 1 0 8 0 kstatmem 264 688 0 666 2 0 2 2 0 8 0 scsiplug 72 12 0 12 2 1 1 1 0 8 1 scxspl 216 170321 0 170321 16 14 2 8 1 8 2 plimitpl 152 1658 0 1642 1 0 1 1 0 8 0 sigapl 424 8585 0 8518 9 1 8 8 0 8 0 futexpl 64 69514 0 69511 1 0 1 1 0 8 0 knotepl 120 171535 0 171489 93 82 11 17 0 8 8 kqueuepl 184 1509 0 1501 11 8 3 7 0 8 2 pipepl 288 1813 0 1786 19 14 5 7 0 8 2 fdescpl 432 8494 0 8465 5 1 4 5 0 8 0 filepl 120 45571 0 45334 35 22 13 15 0 8 3 lockfpl 104 2003 0 2000 3 2 1 2 0 8 0 lockfspl 48 723 0 720 1 0 1 1 0 8 0 sessionpl 144 308 0 301 1 0 1 1 0 8 0 pgrppl 48 669 0 654 1 0 1 1 0 8 0 ucredpl 104 6800 0 6787 2 1 1 2 0 8 0 zombiepl 144 10726 0 10726 5 4 1 1 0 8 1 processpl 1096 8585 0 8518 7 1 6 6 0 8 1 procpl 648 16553 0 16475 11 3 8 8 0 8 0 sosppl 168 31 0 31 6 5 1 1 0 8 1 sockpl 504 12434 0 12397 128 113 15 23 0 8 8 mcl64k 65536 129 0 129 7 6 1 1 0 8 1 mcl16k 16384 27 0 27 5 4 1 1 0 8 1 mcl12k 12288 11 0 11 5 4 1 1 0 8 1 mcl9k 9216 8 0 8 4 3 1 1 0 8 1 mcl8k 8192 186 0 186 8 7 1 1 0 8 1 mcl4k 4096 10508 0 10454 21 12 9 17 0 8 1 mcl2k2 2112 5 0 5 2 1 1 1 0 8 1 mcl2k 2048 10511 0 10509 15 10 5 5 0 8 4 mtagpl 96 138 0 127 4 3 1 1 0 8 0 mbufpl 256 83728 0 83500 142 114 28 79 0 8 8 bufpl 280 23138 0 12275 777 0 777 777 0 8 0 anonpl 24 1039271 0 1036333 255 183 72 105 0 187 29 amapchunkpl 152 227132 0 226540 132 93 39 49 0 158 15 amappl16 200 12669 0 12639 120 107 13 26 0 8 8 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 689 0 680 1 0 1 1 0 8 0 amappl13 176 12 0 12 2 2 0 1 0 8 0 amappl12 168 13559 0 13534 3 1 2 3 0 8 0 amappl11 160 58 0 48 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 139 0 137 1 0 1 1 0 8 0 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 662 0 652 1 0 1 1 0 8 0 amappl6 120 2980 0 2979 1 0 1 1 0 8 0 amappl5 112 1252 0 1242 1 0 1 1 0 8 0 amappl4 104 1147 0 1134 1 0 1 1 0 8 0 amappl3 96 41997 0 41906 7 3 4 4 0 8 0 amappl2 88 4654 0 4596 2 0 2 2 0 8 0 amappl1 80 51248 0 50819 14 2 12 14 0 8 0 amappl 88 64959 0 64814 5 0 5 5 0 92 0 dma65536 65536 1 0 1 1 1 0 1 0 8 0 dma16384 16384 1 0 1 1 0 1 1 0 8 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma512 512 3 0 3 3 2 1 1 0 8 1 dma256 256 8 0 8 3 3 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 9 0 0 1 0 1 1 0 8 0 uaddrrnd 24 8494 0 8465 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8494 0 8465 1 0 1 1 0 8 0 vmmpekpl 168 68583 0 68519 5 1 4 4 0 8 0 vmmpepl 168 510292 0 508743 143 54 89 89 0 357 14 vmsppl 344 8493 0 8465 4 0 4 4 0 8 0 rwobjpl 24 141958 0 130339 73 0 73 73 0 8 1 pdppl 4096 16994 0 16930 558 494 64 82 0 8 0 pvpl 32 3985261 0 3976713 1285 1040 245 488 0 265 134 pmappl 216 8493 0 8465 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 1296 0 861 15 1 14 14 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(ffffffff82fc35b7) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002cd998c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8079378c00,fffffd8055e231e8,ffff80002cd99a98,fffffd8063782880,0,ffff80002cd999e8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4fbc28,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002cd99c30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa696d49b300, 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(ffffffff82fc35b7) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002cd998c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8079378c00,fffffd8055e231e8,ffff80002cd99a98,fffffd8063782880,0,ffff80002cd999e8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4fbc28,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff80002cd99c30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa696d49b300, count: -7