panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *212030 99220 0 0x1000 0x4080000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fc6020) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800030de2cb8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0a6b20,fffffd805977fcd8,ffff800030de2e88,fffffd805977f978,0,ffff800030de2dd8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a456cb0,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800030de3020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f5bf1552f0, 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(ffffffff82fc6020) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800030de2cb8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0a6b20,fffffd805977fcd8,ffff800030de2e88,fffffd805977f978,0,ffff800030de2dd8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a456cb0,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800030de3020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f5bf1552f0, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800030de2a40 rbx 0xfffffd805977f978 rdx 0 rcx 0 rax 0xffff80002a456cb0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x15cc59839f6b8d9 r11 0xc7bbf7fc6e06091e r12 0 r13 0xfffffd806e5bc010 r14 0 r15 0x1 rip 0xffffffff822487f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff800030de2a30 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=212030 pid=99220 tcnt=3 stat=onproc flags process=1000 proc=4080000 runpri=17, usrpri=85, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff800037632a48 scnt=2 ecnt=2 forw=0xffffffffffffffff, list=0xffff800037632538,0xffff80002a456018 process=0xffff800030df7378 user=0xffff800030dde000, vmspace=0xfffffd806e6db160 estcpu=35, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 27034 233537 56222 0 3 0 futex syz-executor 27034 243738 56222 0 3 0x4000080 fsleep syz-executor 27034 31702 56222 0 2 0x4000000 syz-executor 96721 469182 98286 0 2 0 syz-executor 96721 87994 98286 0 2 0x4000000 syz-executor 96721 34134 98286 0 3 0x4000000 futex syz-executor 99220 284877 93872 0 3 0x3000 suspend syz-executor *99220 212030 93872 0 7 0x4081000 syz-executor 99220 335968 93872 0 3 0x4081000 futex syz-executor 29225 204361 57078 0 2 0 syz-executor 29225 338893 57078 0 3 0x4000000 futex syz-executor 29225 191922 57078 0 3 0x4000080 fsleep syz-executor 45293 187441 66153 0 2 0 syz-executor 45293 37189 66153 0 3 0x4000000 futex syz-executor 45293 109746 66153 0 3 0x4000080 fsleep syz-executor 38895 85814 95771 60928 3 0x10 futex syz-executor 38895 155119 95771 60928 2 0x4000010 syz-executor 45304 185393 85360 0 3 0 futex syz-executor 45304 431002 85360 0 2 0x4000000 syz-executor 45304 342209 85360 0 3 0x4000080 rest syz-executor 45304 177218 85360 0 3 0x4000080 fsleep syz-executor 45304 121476 85360 0 3 0x4000000 futex syz-executor 85360 354530 88509 0 3 0x82 nanoslp syz-executor 93872 242185 88509 0 3 0x82 nanoslp syz-executor 88647 395008 88509 0 2 0x2 syz-executor 66153 219186 88509 0 3 0x82 nanoslp syz-executor 56222 300185 88509 0 3 0x82 nanoslp syz-executor 98286 236513 88509 0 3 0x82 nanoslp syz-executor 57078 94217 88509 0 3 0x82 nanoslp syz-executor 95771 469271 88509 0 3 0x82 nanoslp syz-executor 12620 462252 0 0 3 0x14200 acct acct 38498 399141 1 0 3 0x100083 ttyin getty 70531 202798 0 0 3 0x14200 bored sosplice 88509 453428 87200 0 3 0x82 kqread syz-executor 87200 268293 37537 0 3 0x10008a sigsusp ksh 37537 223726 77286 0 3 0x98 kqread sshd-session 77286 333016 80576 0 3 0x92 kqread sshd-session 80576 427992 1 0 3 0x88 kqread sshd 98093 454684 79587 73 2 0x1100010 syslogd 79587 495103 1 0 3 0x100082 sbwait syslogd 56654 496608 1 0 3 0x100080 kqread resolvd 65074 126426 59468 77 3 0x100092 kqread dhcpleased 58499 139484 59468 77 3 0x100092 kqread dhcpleased 59468 183890 1 0 3 0x80 kqread dhcpleased 86750 184539 0 0 3 0x14200 bored smr 11743 203568 0 0 2 0x14200 zerothread 28031 62703 0 0 3 0x14200 aiodoned aiodoned 3396 468940 0 0 3 0x14200 syncer update 36531 70051 0 0 3 0x14200 cleaner cleaner 29911 237593 0 0 3 0x14200 reaper reaper 86033 396305 0 0 3 0x14200 pgdaemon pagedaemon 39615 331429 0 0 3 0x14200 bored viomb 40336 342710 0 0 3 0x40014200 acpi0 acpi0 94727 360040 0 0 3 0x14200 bored softnet3 19124 125993 0 0 3 0x14200 bored softnet2 40987 9418 0 0 3 0x14200 bored softnet1 67938 176202 0 0 3 0x14200 bored softnet0 18961 446049 0 0 3 0x14200 bored systqmp 57533 113921 0 0 3 0x14200 bored systq 35489 45046 0 0 3 0x40014200 tmoslp softclock 86068 182753 0 0 3 0x40014200 idle0 1 251958 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 10183 14119K 14519K 166960K 12550 0 pcb 18 15K 17K 166960K 220 0 rtable 231 7K 7K 166960K 1890 0 pf 32 13K 14K 166960K 162 0 ifaddr 42 8K 8K 166960K 252 0 ifgroup 52 2K 2K 166960K 276 0 sysctl 3 0K 1K 166960K 4 0 counters 31 17K 17K 166960K 93 0 ioctlops 0 0K 4K 166960K 116 0 iov 0 0K 16K 166960K 52 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1498 94K 95K 166960K 2777 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 20 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 28 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 17 61K 93K 166960K 1747 0 sigio 1 0K 0K 166960K 90 0 proc 62 67K 91K 166960K 1835 0 subproc 104 6K 7K 166960K 716 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 147 0 in_multi 98 7K 7K 166960K 628 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 1124 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 237 72K 109K 166960K 15300 0 UVM aobj 27 6K 6K 166960K 33 0 pinsyscall 38 76K 94K 166960K 3963 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 47 0 NDP 12 0K 1K 166960K 182 0 temp 78 6818K 6956K 166960K 93485 0 kqueue 15 24K 30K 166960K 165 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 202 0 199 1 0 1 1 0 8 0 rtentry 112 644 0 537 4 0 4 4 0 8 0 unpcb 144 614 0 596 3 1 2 2 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 578 0 572 14 6 8 8 0 8 7 arp 88 117 0 99 1 0 1 1 0 8 0 ipq 40 3 0 3 1 0 1 1 0 8 1 ipqe 40 7 0 7 1 0 1 1 0 8 1 inpcb 336 1747 0 1736 18 9 9 13 0 8 8 nd6 104 170 0 146 1 0 1 1 0 8 0 pkpcb 40 6 0 6 1 0 1 1 0 8 1 kcovpl 48 55 0 47 1 0 1 1 0 8 0 ppxss 1072 14 0 13 2 1 1 1 0 8 0 pfrule 1344 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2542 0 2093 29 0 29 29 0 8 0 art_table 32 2543 0 2093 4 0 4 4 0 8 0 art_node 16 640 0 543 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 4 2 1 1 1 0 8 0 semapl 112 26 0 16 1 0 1 1 0 8 0 shmpl 112 30 0 6 1 0 1 1 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3343 0 1764 99 0 99 99 0 8 0 ffsino 240 3343 0 1764 93 0 93 93 0 8 0 nchpl 144 4882 0 3146 65 0 65 65 0 8 0 uvmvnodes 80 4563 0 0 94 0 94 94 0 8 0 vnodes 216 4563 0 0 254 0 254 254 0 8 0 namei 1024 20589 0 20586 3 1 2 2 0 8 1 kstatmem 264 148 0 124 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 33782 0 33782 10 2 8 8 1 8 8 plimitpl 152 295 0 278 1 0 1 1 0 8 0 sigapl 424 1936 0 1889 6 0 6 6 0 8 0 futexpl 64 14044 0 14038 1 0 1 1 0 8 0 knotepl 120 46930 0 46752 18 9 9 10 0 8 3 kqueuepl 184 269 0 257 1 0 1 1 0 8 0 pipepl 288 469 0 441 10 0 10 10 0 8 7 fdescpl 432 1916 0 1887 5 1 4 5 0 8 0 filepl 120 9417 0 9165 16 2 14 14 0 8 6 lockfpl 104 530 0 528 2 0 2 2 0 8 1 lockfspl 48 202 0 200 1 0 1 1 0 8 0 sessionpl 144 68 0 60 1 0 1 1 0 8 0 pgrppl 48 145 0 129 1 0 1 1 0 8 0 ucredpl 104 1073 0 1061 1 0 1 1 0 8 0 zombiepl 144 2434 0 2432 1 0 1 1 0 8 0 processpl 1096 1936 0 1889 4 0 4 4 0 8 0 procpl 648 3614 0 3550 6 0 6 6 0 8 0 sosppl 168 7 0 7 2 1 1 1 0 8 1 sockpl 504 2599 0 2567 32 20 12 21 0 8 7 mcl64k 65536 21 0 21 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 68 0 68 1 0 1 1 0 8 1 mcl8k 8192 12 0 12 2 1 1 1 0 8 1 mcl4k 4096 6 0 6 2 1 1 1 0 8 1 mcl2k2 2112 3 0 3 1 0 1 1 0 8 1 mcl2k 2048 8356 0 8261 29 13 16 26 0 8 3 mtagpl 96 99 0 99 2 0 2 2 0 8 2 mbufpl 256 20676 0 20463 36 14 22 28 0 8 7 bufpl 280 9646 0 2443 515 0 515 515 0 8 0 anonpl 24 259319 0 255803 136 57 79 79 0 187 50 amapchunkpl 152 49474 0 48942 61 21 40 41 0 158 18 amappl16 200 3465 0 3449 7 1 6 6 0 8 5 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 192 0 182 1 0 1 1 0 8 0 amappl13 176 6 0 6 1 1 0 1 0 8 0 amappl12 168 3262 0 3233 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 40 0 40 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 187 0 177 1 0 1 1 0 8 0 amappl6 120 621 0 619 1 0 1 1 0 8 0 amappl5 112 308 0 299 1 0 1 1 0 8 0 amappl4 104 417 0 402 1 0 1 1 0 8 0 amappl3 96 9669 0 9553 5 1 4 4 0 8 1 amappl2 88 1292 0 1230 2 0 2 2 0 8 0 amappl1 80 14876 0 14367 13 1 12 12 0 8 0 amappl 88 14518 0 14335 5 0 5 5 0 92 0 dma32768 32768 1 0 1 1 0 1 1 0 8 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 dma512 512 2 0 2 1 0 1 1 0 8 1 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 32 0 6 1 0 1 1 0 8 0 uaddrrnd 24 1916 0 1887 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1916 0 1887 1 0 1 1 0 8 0 vmmpekpl 168 16549 0 16508 3 0 3 3 0 8 0 vmmpepl 168 119963 0 118236 82 0 82 82 0 357 4 vmsppl 344 1915 0 1887 4 1 3 4 0 8 0 rwobjpl 24 38060 0 32616 33 0 33 33 0 8 0 pdppl 4096 3838 0 3774 168 100 68 80 0 8 4 pvpl 32 902358 0 892274 588 270 318 357 0 265 231 pmappl 216 1915 0 1887 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 548 0 169 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(ffffffff82fc6020) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800030de2cb8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0a6b20,fffffd805977fcd8,ffff800030de2e88,fffffd805977f978,0,ffff800030de2dd8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a456cb0,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800030de3020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f5bf1552f0, 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(ffffffff82fc6020) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800030de2cb8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0a6b20,fffffd805977fcd8,ffff800030de2e88,fffffd805977f978,0,ffff800030de2dd8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a456cb0,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800030de3020) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8f5bf1552f0, count: -7