panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *175898 41411 0 0x1000 0x4080000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fc58bc) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800037429a48) at ufs_rename+0x18b2 VOP_RENAME(fffffd8072df7ca8,fffffd8077f44b08,ffff800037429c18,fffffd8077f44370,0,ffff800037429b68) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f0f60,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800037429db0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x610ed4cb30, 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(ffffffff82fc58bc) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800037429a48) at ufs_rename+0x18b2 VOP_RENAME(fffffd8072df7ca8,fffffd8077f44b08,ffff800037429c18,fffffd8077f44370,0,ffff800037429b68) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f0f60,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800037429db0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x610ed4cb30, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000374297d0 rbx 0xfffffd8077f44370 rdx 0 rcx 0 rax 0xffff80002a4f0f60 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa3dbbc2566abda34 r11 0x143fb634f26ce1b9 r12 0 r13 0xfffffd806c43ea50 r14 0 r15 0x1 rip 0xffffffff82f6ae35 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000374297c0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=175898 pid=41411 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=17, usrpri=80, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4f11e8 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4f11e8,0xffff80002a5b4028 process=0xffff80002a464ce0 user=0xffff800037424000, vmspace=0xfffffd806c1b4ad0 estcpu=30, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82769 260370 10752 0 2 0 syz-executor 83636 108134 15714 0 2 0 syz-executor 83636 76066 15714 0 2 0x4000000 syz-executor 72067 153816 29081 0 2 0 syz-executor 72067 242262 29081 0 2 0x4000000 syz-executor 72067 325454 29081 0 3 0x4000080 fsleep syz-executor 72067 307431 29081 0 3 0x4000080 fsleep syz-executor 63756 59822 59572 0 2 0 syz-executor 63756 19481 59572 0 3 0x4000080 fsleep syz-executor 63756 436875 59572 0 3 0x4000080 fsleep syz-executor 63756 139112 59572 0 3 0x4000080 fsleep syz-executor 79247 149715 36832 0 2 0x1 syz-executor 79247 384291 36832 0 3 0x4000080 fsleep syz-executor 49095 377840 15035 0 2 0x1 syz-executor 49095 311233 15035 0 3 0x4000080 fsleep syz-executor 49095 29560 15035 0 3 0x4000080 fsleep syz-executor 49980 242228 72171 0 2 0x1 syz-executor 49980 189044 72171 0 3 0x4000080 fsleep syz-executor 49980 341789 72171 0 3 0x4000080 fsleep syz-executor 41411 509126 62333 0 3 0x3000 suspend syz-executor *41411 175898 62333 0 7 0x4081000 syz-executor 40015 239543 0 0 3 0x14280 nfsidl nfsio 84851 354294 0 0 3 0x14280 nfsidl nfsio 71690 320751 0 0 3 0x14280 nfsidl nfsio 12837 223036 0 0 3 0x14280 nfsidl nfsio 54668 406137 0 0 3 0x14280 nfsidl nfsio 49497 511079 0 0 3 0x14280 nfsidl nfsio 21461 323932 0 0 3 0x14280 nfsidl nfsio 69373 124449 0 0 3 0x14280 nfsidl nfsio 111 447227 0 0 3 0x14280 nfsidl nfsio 31112 471022 0 0 3 0x14280 nfsidl nfsio 60980 330020 0 0 3 0x14280 nfsidl nfsio 23170 340834 0 0 3 0x14280 nfsidl nfsio 20837 39258 0 0 3 0x14280 nfsidl nfsio 32947 195348 0 0 3 0x14280 nfsidl nfsio 55025 162975 0 0 3 0x14280 nfsidl nfsio 22888 513755 0 0 3 0x14280 nfsidl nfsio 90852 11001 0 0 3 0x14280 nfsidl nfsio 80503 248964 0 0 3 0x14280 nfsidl nfsio 33512 46666 0 0 3 0x14280 nfsidl nfsio 56282 368509 0 0 3 0x14280 nfsidl nfsio 15035 351940 29814 0 3 0x82 nanoslp syz-executor 36832 446712 29814 0 3 0x82 nanoslp syz-executor 15714 421695 29814 0 3 0x82 nanoslp syz-executor 59572 362120 29814 0 3 0x82 nanoslp syz-executor 72171 188172 29814 0 3 0x82 nanoslp syz-executor 10752 102626 29814 0 3 0x82 nanoslp syz-executor 29081 153264 29814 0 3 0x82 nanoslp syz-executor 62333 323219 29814 0 3 0x82 nanoslp syz-executor 44434 189379 1 0 3 0x100083 ttyin getty 71802 99428 0 0 3 0x14200 bored sosplice 29814 340508 25471 0 3 0x82 kqread syz-executor 25471 256423 19824 0 3 0x10008a sigsusp ksh 19824 431462 39560 0 3 0x98 kqread sshd-session 39560 244648 61572 0 3 0x92 kqread sshd-session 61572 159985 1 0 3 0x88 kqread sshd 88084 490717 60501 73 3 0x1100090 kqread syslogd 60501 13362 1 0 3 0x100082 sbwait syslogd 48174 288317 1 0 3 0x100080 kqread resolvd 98050 237923 95591 77 3 0x100092 kqread dhcpleased 98748 42799 95591 77 3 0x100092 kqread dhcpleased 95591 264565 1 0 3 0x80 kqread dhcpleased 92780 21271 0 0 3 0x14200 bored smr 82021 465387 0 0 2 0x14200 zerothread 70267 197423 0 0 3 0x14200 aiodoned aiodoned 37840 268831 0 0 3 0x14200 syncer update 9080 461915 0 0 3 0x14200 cleaner cleaner 87516 231680 0 0 3 0x14200 reaper reaper 54026 246694 0 0 3 0x14200 pgdaemon pagedaemon 86671 208779 0 0 3 0x14200 bored viomb 38289 227394 0 0 3 0x40014200 acpi0 acpi0 91096 220165 0 0 3 0x14200 bored softnet3 91419 84655 0 0 3 0x14200 bored softnet2 14166 460268 0 0 3 0x14200 bored softnet1 84589 325701 0 0 3 0x14200 bored softnet0 64817 28530 0 0 3 0x14200 bored systqmp 16359 56934 0 0 3 0x14200 bored systq 23581 44626 0 0 3 0x40014200 tmoslp softclock 35142 345931 0 0 3 0x40014200 idle0 1 467594 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 10187 11042K 11460K 166960K 12175 0 pcb 18 15K 17K 166960K 204 0 rtable 226 7K 8K 166960K 1232 0 pf 33 13K 21K 166960K 112 0 ifaddr 41 7K 7K 166960K 157 0 ifgroup 50 2K 2K 166960K 179 0 sysctl 4 1K 1K 166960K 4 0 counters 30 17K 17K 166960K 64 0 ioctlops 0 0K 4K 166960K 107 0 iov 0 0K 28K 166960K 51 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1403 88K 89K 166960K 2173 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 25 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 18 65K 97K 166960K 1059 0 sigio 0 0K 0K 166960K 13 0 proc 63 67K 124K 166960K 1234 0 subproc 104 6K 6K 166960K 417 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 55 0 in_multi 96 7K 7K 166960K 388 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 103 466K 466K 166960K 103 0 exec 0 0K 1K 166960K 784 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 236 72K 90K 166960K 10022 0 UVM aobj 16 2K 2K 166960K 17 0 pinsyscall 39 78K 96K 166960K 2700 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 33 0 NDP 11 0K 2K 166960K 111 0 temp 45 6808K 6874K 166960K 21913 0 kqueue 13 20K 29K 166960K 115 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 127 0 122 1 0 1 1 0 8 0 rtentry 112 417 0 314 4 0 4 4 0 8 0 unpcb 144 669 0 654 6 2 4 4 0 8 3 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 157 0 153 5 3 2 4 0 8 1 arp 88 78 0 58 1 0 1 1 0 8 0 ipq 40 3 0 1 2 1 1 1 0 8 0 ipqe 40 47 0 45 2 1 1 1 0 8 0 inpcb 336 840 0 830 12 5 7 7 0 8 6 nd6 104 104 0 79 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 32 0 24 1 0 1 1 0 8 0 ppxss 1072 6 0 6 2 1 1 1 0 8 1 pfstscr 40 5 0 5 2 1 1 1 0 8 1 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 18 0 14 1 0 1 1 0 8 0 pfstate 344 10 0 8 1 0 1 1 0 8 0 pfrule 1344 3 0 3 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1603 0 1178 30 1 29 29 0 8 1 art_table 32 1606 0 1178 4 0 4 4 0 8 0 art_node 16 415 0 323 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 3 1 0 1 1 0 8 0 semapl 112 21 0 11 1 0 1 1 0 8 0 shmpl 112 14 0 1 1 0 1 1 0 8 0 dirhash 1024 24 0 7 3 0 3 3 0 8 0 dino2pl 256 2611 0 1065 97 0 97 97 0 8 0 ffsino 240 2611 0 1065 92 0 92 92 0 8 0 nchpl 144 3627 0 1921 64 0 64 64 0 8 0 uvmvnodes 80 3332 0 0 68 0 68 68 0 8 0 vnodes 216 3332 0 0 186 0 186 186 0 8 0 namei 1024 13868 0 13865 3 1 2 2 0 8 1 kstatmem 264 90 0 68 2 0 2 2 0 8 0 scsiplug 72 3 0 3 2 1 1 1 0 8 1 scxspl 216 22959 0 22959 10 2 8 8 1 8 8 plimitpl 152 282 0 266 1 0 1 1 0 8 0 sigapl 424 1310 0 1243 9 1 8 8 0 8 0 futexpl 64 8949 0 8939 1 0 1 1 0 8 0 knotepl 120 23753 0 23706 17 7 10 10 0 8 8 kqueuepl 184 169 0 160 1 0 1 1 0 8 0 pipepl 288 224 0 197 3 0 3 3 0 8 0 fdescpl 432 1273 0 1243 5 1 4 5 0 8 0 filepl 120 6423 0 6176 17 4 13 13 0 8 4 lockfpl 104 397 0 395 2 0 2 2 0 8 1 lockfspl 48 91 0 89 1 0 1 1 0 8 0 sessionpl 144 46 0 38 1 0 1 1 0 8 0 pgrppl 48 83 0 67 1 0 1 1 0 8 0 ucredpl 104 761 0 750 1 0 1 1 0 8 0 zombiepl 144 1479 0 1478 1 0 1 1 0 8 0 processpl 1096 1310 0 1243 5 0 5 5 0 8 0 procpl 648 2282 0 2202 8 1 7 7 0 8 0 sosppl 168 3 0 3 2 1 1 1 0 8 1 sockpl 504 1653 0 1623 30 18 12 18 0 8 8 mcl64k 65536 14 0 14 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 11 0 11 2 1 1 1 0 8 1 mcl4k 4096 3467 0 3415 14 5 9 13 0 8 2 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 1173 0 1172 2 0 2 2 0 8 1 mtagpl 96 19 0 18 2 1 1 1 0 8 0 mbufpl 256 12772 0 12612 29 11 18 21 0 8 4 bufpl 280 6847 0 600 447 0 447 447 0 8 0 anonpl 24 274056 0 270713 94 25 69 69 0 187 35 amapchunkpl 152 32195 0 31675 51 13 38 38 0 158 18 amappl16 200 7280 0 7262 50 40 10 27 0 8 8 amappl15 192 17 0 17 1 1 0 1 0 8 0 amappl14 184 159 0 149 1 0 1 1 0 8 0 amappl13 176 9 0 9 2 1 1 1 0 8 1 amappl12 168 2306 0 2276 3 1 2 3 0 8 0 amappl11 160 112 0 101 1 0 1 1 0 8 0 amappl10 152 60 0 59 1 0 1 1 0 8 0 amappl9 144 126 0 126 1 1 0 1 0 8 0 amappl8 136 32 0 31 1 0 1 1 0 8 0 amappl7 128 146 0 136 1 0 1 1 0 8 0 amappl6 120 401 0 400 1 0 1 1 0 8 0 amappl5 112 221 0 213 1 0 1 1 0 8 0 amappl4 104 380 0 364 1 0 1 1 0 8 0 amappl3 96 6397 0 6282 5 1 4 4 0 8 0 amappl2 88 987 0 926 2 0 2 2 0 8 0 amappl1 80 11399 0 10891 14 2 12 13 0 8 0 amappl 88 9446 0 9264 6 1 5 5 0 92 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 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 254 0 254 2 1 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 16 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1273 0 1243 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1273 0 1243 1 0 1 1 0 8 0 vmmpekpl 168 10860 0 10802 3 0 3 3 0 8 0 vmmpepl 168 87035 0 85271 109 15 94 94 0 357 17 vmsppl 344 1272 0 1243 4 1 3 4 0 8 0 rwobjpl 24 31912 0 27725 28 0 28 28 0 8 1 pdppl 4096 2552 0 2486 138 72 66 82 0 8 0 pvpl 32 680081 0 669970 343 131 212 212 0 265 117 pmappl 216 1272 0 1243 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 470 0 121 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(ffffffff82fc58bc) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800037429a48) at ufs_rename+0x18b2 VOP_RENAME(fffffd8072df7ca8,fffffd8077f44b08,ffff800037429c18,fffffd8077f44370,0,ffff800037429b68) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f0f60,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800037429db0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x610ed4cb30, 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(ffffffff82fc58bc) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff800037429a48) at ufs_rename+0x18b2 VOP_RENAME(fffffd8072df7ca8,fffffd8077f44b08,ffff800037429c18,fffffd8077f44370,0,ffff800037429b68) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f0f60,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff800037429db0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x610ed4cb30, count: -7