panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 98396 94542 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fce424) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000374fd9c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8059beb638,fffffd8059beb200,ffff8000374fdb98,fffffd8059beb7e8,0,ffff8000374fdae8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4b0298,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000374fdd30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb4c7db78f00, 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(ffffffff82fce424) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000374fd9c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8059beb638,fffffd8059beb200,ffff8000374fdb98,fffffd8059beb7e8,0,ffff8000374fdae8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4b0298,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000374fdd30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb4c7db78f00, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000374fd750 rbx 0xfffffd8059beb7e8 rdx 0xffff800001156400 rcx 0 rax 0xffff80002a4b0298 r8 0x101010101010101 r9 0x8080808080808080 r10 0x64e2aeb05e18c253 r11 0x98ecfa303692b5de r12 0 r13 0xfffffd80765e2690 r14 0 r15 0x1 rip 0xffffffff81cf6625 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000374fd740 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=98396 pid=94542 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=82, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4f96f8,0xffff80002a4b07b8 process=0xffff80002a4c6f28 user=0xffff8000374f8000, vmspace=0xfffffd8069115828 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95095 108671 10931 0 2 0 syz-executor 95095 254452 10931 0 2 0x4000000 syz-executor 74573 234633 45274 0 2 0 syz-executor 74573 191550 45274 0 3 0x4000080 fsleep syz-executor 75941 137158 45958 0 2 0 syz-executor 75941 241851 45958 0 2 0x4000000 syz-executor 52141 347002 18376 0 2 0 syz-executor 52141 362997 18376 0 3 0x4000080 fsleep syz-executor 52141 400470 18376 0 2 0x4000000 syz-executor 94542 257416 54167 0 2 0 syz-executor 94542 286967 54167 0 3 0x4000000 futex syz-executor 94542 27846 54167 0 3 0x4000080 fsleep syz-executor *94542 98396 54167 0 7 0x4000000 syz-executor 60515 381745 66902 0 3 0 futex syz-executor 60515 352824 66902 0 3 0x4000080 fsleep syz-executor 60515 403769 66902 0 2 0x4000000 syz-executor 13280 516475 33956 60928 2 0x10 syz-executor 13280 265404 33956 60928 3 0x4000090 fsleep syz-executor 13280 316570 33956 60928 3 0x4000090 fsleep syz-executor 66902 452618 34729 0 3 0x82 nanoslp syz-executor 33956 174393 34729 0 3 0x82 nanoslp syz-executor 18376 197786 34729 0 3 0x82 nanoslp syz-executor 10931 356990 34729 0 3 0x82 nanoslp syz-executor 79789 31686 34729 0 3 0x82 wait syz-executor 45274 368192 34729 0 2 0x482 syz-executor 54167 386660 34729 0 3 0x82 nanoslp syz-executor 45958 9779 34729 0 3 0x82 nanoslp syz-executor 9208 101902 1 0 3 0x100083 ttyin getty 62901 284254 0 0 3 0x14200 acct acct 88492 402327 0 0 3 0x14280 nfsidl nfsio 14869 468462 0 0 3 0x14280 nfsidl nfsio 53682 197733 0 0 3 0x14280 nfsidl nfsio 17803 428214 0 0 3 0x14280 nfsidl nfsio 49736 7997 0 0 3 0x14280 nfsidl nfsio 57064 448631 0 0 3 0x14280 nfsidl nfsio 56840 416061 0 0 3 0x14280 nfsidl nfsio 79246 485553 0 0 3 0x14280 nfsidl nfsio 96053 487406 0 0 3 0x14280 nfsidl nfsio 14384 303377 0 0 3 0x14280 nfsidl nfsio 3938 2453 0 0 3 0x14280 nfsidl nfsio 37262 113569 0 0 3 0x14280 nfsidl nfsio 50963 90786 0 0 3 0x14280 nfsidl nfsio 23760 204568 0 0 3 0x14280 nfsidl nfsio 47408 92660 0 0 3 0x14280 nfsidl nfsio 32039 174787 0 0 3 0x14280 nfsidl nfsio 50718 126351 0 0 3 0x14280 nfsidl nfsio 8413 85322 0 0 3 0x14280 nfsidl nfsio 49195 88210 0 0 3 0x14280 nfsidl nfsio 68250 202899 0 0 3 0x14280 nfsidl nfsio 80588 512622 0 0 3 0x14200 bored sosplice 34729 10422 4445 0 3 0x82 kqread syz-executor 4445 174599 98422 0 3 0x10008a sigsusp ksh 98422 302559 81820 0 3 0x98 kqread sshd-session 81820 163151 1 0 3 0x92 kqread sshd-session 35740 229399 87208 73 3 0x1100090 kqread syslogd 87208 72843 1 0 3 0x100082 sbwait syslogd 65618 161256 1 0 3 0x100080 kqread resolvd 16661 259269 82315 77 3 0x100092 kqread dhcpleased 8702 240190 82315 77 3 0x100092 kqread dhcpleased 82315 378194 1 0 3 0x80 kqread dhcpleased 68999 231591 0 0 3 0x14200 bored smr 5319 433889 0 0 2 0x14200 zerothread 24363 111672 0 0 3 0x14200 aiodoned aiodoned 8106 453655 0 0 3 0x14200 syncer update 31942 501056 0 0 3 0x14200 cleaner cleaner 66848 517988 0 0 3 0x14200 reaper reaper 22580 84808 0 0 3 0x14200 pgdaemon pagedaemon 14785 69944 0 0 3 0x14200 bored viomb 14840 176843 0 0 3 0x40014200 acpi0 acpi0 94505 319528 0 0 3 0x14200 bored softnet3 50006 494612 0 0 3 0x14200 bored softnet2 28383 444792 0 0 3 0x14200 bored softnet1 6507 325249 0 0 3 0x14200 bored softnet0 33369 323051 0 0 3 0x14200 bored systqmp 95039 512396 0 0 3 0x14200 bored systq 33304 356414 0 0 3 0x40014200 tmoslp softclock 15938 141604 0 0 3 0x40014200 idle0 1 460833 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 10198 10034K 10544K 166960K 13126 0 pcb 18 16K 18K 166960K 289 0 rtable 223 9K 9K 166960K 2883 0 pf 38 14K 23K 166960K 219 0 ifaddr 44 8K 9K 166960K 359 0 ifgroup 58 2K 2K 166960K 384 0 sysctl 4 1K 1K 166960K 6 0 counters 32 17K 17K 166960K 113 0 ioctlops 0 0K 4K 166960K 235 0 iov 0 0K 18K 166960K 80 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1399 88K 89K 166960K 3259 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 72K 166960K 33 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 49 0 dirhash 15 2K 3K 166960K 30 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 18 65K 97K 166960K 2304 0 sigio 0 0K 0K 166960K 36 0 proc 61 59K 124K 166960K 2583 0 subproc 104 6K 6K 166960K 1040 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 438 0 in_multi 95 7K 7K 166960K 938 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 3 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 1K 166960K 1385 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 223 72K 91K 166960K 18578 0 UVM aobj 113 5K 5K 166960K 117 0 pinsyscall 37 74K 98K 166960K 5202 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 66 0 NDP 13 0K 2K 166960K 257 0 temp 75 6816K 6902K 166960K 80314 0 kqueue 12 18K 28K 166960K 207 0 SYN cache 2 2352K 2360K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 394 0 391 5 2 3 3 0 8 2 rtentry 112 1015 0 915 4 0 4 4 0 8 1 unpcb 144 989 0 974 6 2 4 4 0 8 3 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 9 0 9 1 1 0 1 0 8 0 tcpcb 808 624 0 622 9 7 2 8 0 8 1 arp 88 173 0 155 1 0 1 1 0 8 0 ipq 40 13 0 11 1 0 1 1 0 8 0 ipqe 40 66 0 64 1 0 1 1 0 8 0 inpcb 336 2019 0 2010 18 9 9 10 0 8 8 nd6 104 248 0 225 1 0 1 1 0 8 0 pkpcb 40 14 0 14 2 1 1 1 0 8 1 kcovpl 48 80 0 72 1 0 1 1 0 8 0 ppxss 1072 6 0 6 2 1 1 1 0 8 1 pfstscr 40 4 0 4 2 1 1 1 0 8 1 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 1 0 1 1 0 8 0 pfstate 344 3 0 2 1 0 1 1 0 8 0 pfrule 1344 3 0 3 2 1 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 3814 0 3381 33 4 29 30 0 8 1 art_table 32 3816 0 3381 4 0 4 4 0 8 0 art_node 16 948 0 859 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 5 1 0 1 1 0 8 0 semapl 112 46 0 36 1 0 1 1 0 8 0 shmpl 112 114 0 4 4 0 4 4 0 8 0 dirhash 1024 29 0 10 3 0 3 3 0 8 0 dino2pl 256 3781 0 2150 103 0 103 103 0 8 0 ffsino 240 3781 0 2150 97 0 97 97 0 8 0 nchpl 144 5575 0 3801 66 0 66 66 0 8 0 uvmvnodes 80 5347 0 0 110 0 110 110 0 8 0 vnodes 216 5347 0 0 298 0 298 298 0 8 0 namei 1024 25041 0 25039 3 2 1 2 0 8 0 kstatmem 264 188 0 162 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 46000 0 46000 9 7 2 8 1 8 2 plimitpl 152 499 0 482 1 0 1 1 0 8 0 sigapl 424 2462 0 2395 8 0 8 8 0 8 0 futexpl 64 17312 0 17305 1 0 1 1 0 8 0 knotepl 120 49621 0 49575 21 12 9 16 0 8 7 kqueuepl 184 506 0 497 4 0 4 4 0 8 3 pipepl 288 462 0 435 7 4 3 7 0 8 0 fdescpl 432 2424 0 2395 5 1 4 5 0 8 0 filepl 120 12708 0 12460 23 8 15 16 0 8 6 lockfpl 104 525 0 522 1 0 1 1 0 8 0 lockfspl 48 198 0 195 1 0 1 1 0 8 0 sessionpl 144 96 0 89 1 0 1 1 0 8 0 pgrppl 48 199 0 184 1 0 1 1 0 8 0 ucredpl 104 1914 0 1901 1 0 1 1 0 8 0 zombiepl 144 2653 0 2652 1 0 1 1 0 8 0 processpl 1096 2462 0 2395 7 1 6 6 0 8 1 procpl 648 4290 0 4211 9 1 8 8 0 8 0 sosppl 168 9 0 9 2 1 1 1 0 8 1 sockpl 504 3430 0 3403 59 47 12 33 0 8 7 mcl64k 65536 18 0 18 2 1 1 1 0 8 1 mcl16k 16384 12 0 12 2 1 1 1 0 8 1 mcl12k 12288 3 0 3 2 1 1 1 0 8 1 mcl9k 9216 4 0 4 2 1 1 1 0 8 1 mcl8k 8192 72 0 72 2 1 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k 2048 9419 0 9316 32 12 20 26 0 8 6 mtagpl 96 115 0 107 2 0 2 2 0 8 1 mbufpl 256 27721 0 27477 30 6 24 24 0 8 5 bufpl 280 11549 0 4023 538 0 538 538 0 8 0 anonpl 24 379183 0 375795 98 46 52 78 0 187 18 amapchunkpl 152 61635 0 61131 53 21 32 41 0 158 10 amappl16 200 6157 0 6136 29 25 4 15 0 8 2 amappl15 192 16 0 16 1 1 0 1 0 8 0 amappl14 184 256 0 247 1 0 1 1 0 8 0 amappl13 176 11 0 11 1 1 0 1 0 8 0 amappl12 168 4186 0 4157 3 1 2 3 0 8 0 amappl11 160 126 0 116 1 0 1 1 0 8 0 amappl10 152 10 0 10 1 1 0 1 0 8 0 amappl9 144 123 0 121 1 0 1 1 0 8 0 amappl8 136 28 0 26 1 0 1 1 0 8 0 amappl7 128 244 0 235 1 0 1 1 0 8 0 amappl6 120 883 0 882 1 0 1 1 0 8 0 amappl5 112 415 0 406 1 0 1 1 0 8 0 amappl4 104 507 0 494 1 0 1 1 0 8 0 amappl3 96 11581 0 11468 5 1 4 4 0 8 0 amappl2 88 1670 0 1612 2 0 2 2 0 8 0 amappl1 80 18228 0 17797 13 1 12 13 0 8 1 amappl 88 17577 0 17403 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 1 1 0 1 0 8 0 dma64 64 7 0 7 2 1 1 1 0 8 1 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 116 0 4 3 0 3 3 0 8 0 uaddrrnd 24 2424 0 2395 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2424 0 2395 1 0 1 1 0 8 0 vmmpekpl 168 19846 0 19794 3 0 3 3 0 8 0 vmmpepl 168 151783 0 150131 89 14 75 88 0 357 1 vmsppl 344 2423 0 2395 4 1 3 4 0 8 0 rwobjpl 24 48485 0 42271 38 0 38 38 0 8 0 pdppl 4096 4854 0 4790 228 164 64 82 0 8 0 pvpl 32 1232506 0 1222329 507 284 223 360 0 265 130 pmappl 216 2423 0 2395 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 638 0 264 12 1 11 12 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(ffffffff82fce424) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000374fd9c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8059beb638,fffffd8059beb200,ffff8000374fdb98,fffffd8059beb7e8,0,ffff8000374fdae8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4b0298,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000374fdd30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb4c7db78f00, 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(ffffffff82fce424) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000374fd9c8) at ufs_rename+0x18b2 VOP_RENAME(fffffd8059beb638,fffffd8059beb200,ffff8000374fdb98,fffffd8059beb7e8,0,ffff8000374fdae8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4b0298,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000374fdd30) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb4c7db78f00, count: -7