panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *278085 84538 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fc97bf) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000362eb8d8) at ufs_rename+0x18b2 VOP_RENAME(fffffd806c80abe0,fffffd806c80a880,ffff8000362ebaa8,fffffd806c80a520,0,ffff8000362eb9f8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d2530,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000362ebc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a67eaf4320, 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(ffffffff82fc97bf) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000362eb8d8) at ufs_rename+0x18b2 VOP_RENAME(fffffd806c80abe0,fffffd806c80a880,ffff8000362ebaa8,fffffd806c80a520,0,ffff8000362eb9f8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d2530,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000362ebc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a67eaf4320, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000362eb660 rbx 0xfffffd806c80a520 rdx 0 rcx 0 rax 0xffff80002a4d2530 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7f3a9d0f7239cc70 r11 0xcad628584659c8ef r12 0 r13 0xfffffd807461a4b0 r14 0 r15 0x1 rip 0xffffffff8142f435 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000362eb650 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=278085 pid=84538 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=0xffff80002a4d2a40,0xffff80002a4d2f60 process=0xffff80002a464008 user=0xffff8000362e6000, vmspace=0xfffffd807def7970 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 52613 253596 47863 0 2 0 syz-executor 50337 174540 19865 0 2 0 syz-executor 50337 365106 19865 0 3 0x4000080 ttyin syz-executor 50337 16343 19865 0 3 0x4000080 fsleep syz-executor 33616 356889 60021 0 2 0 syz-executor 33616 210547 60021 0 3 0x4000080 fsleep syz-executor 33616 386822 60021 0 3 0x4000080 fsleep syz-executor 57075 434683 46939 0 2 0 syz-executor 57075 180024 46939 0 3 0x4000080 fsleep syz-executor 57075 69403 46939 0 2 0x4000000 syz-executor 44688 164756 13821 0 3 0x80 nanoslp syz-executor 44688 275083 13821 0 3 0x4000080 piperd syz-executor 44688 90891 13821 0 3 0x4000080 fsleep syz-executor 73513 467137 9121 0 2 0 syz-executor 73513 517110 9121 0 2 0x4000000 syz-executor 73513 318418 9121 0 3 0x4000080 fsleep syz-executor 73513 69202 9121 0 2 0x4000000 syz-executor 84538 176741 53918 0 2 0 syz-executor 84538 213150 53918 0 3 0x4000080 fsleep syz-executor *84538 278085 53918 0 7 0x4000000 syz-executor 84538 360177 53918 0 3 0x4000080 fsleep syz-executor 53918 118325 6797 0 3 0x82 nanoslp syz-executor 19865 206634 6797 0 3 0x82 nanoslp syz-executor 79726 437893 6797 0 2 0x82 syz-executor 60021 139189 6797 0 3 0x82 nanoslp syz-executor 46939 72478 6797 0 3 0x82 nanoslp syz-executor 9121 49903 6797 0 3 0x82 nanoslp syz-executor 47863 325112 6797 0 3 0x82 nanoslp syz-executor 13821 360737 6797 0 3 0x82 nanoslp syz-executor 77611 302162 0 0 3 0x14280 nfsidl nfsio 36561 144226 0 0 3 0x14280 nfsidl nfsio 97028 140018 0 0 3 0x14280 nfsidl nfsio 73077 247795 0 0 3 0x14280 nfsidl nfsio 2944 93083 0 0 3 0x14280 nfsidl nfsio 60007 486547 0 0 3 0x14280 nfsidl nfsio 9884 363620 0 0 3 0x14280 nfsidl nfsio 5805 516684 0 0 3 0x14280 nfsidl nfsio 33293 244499 0 0 3 0x14280 nfsidl nfsio 28989 311201 0 0 3 0x14280 nfsidl nfsio 93157 231662 0 0 3 0x14280 nfsidl nfsio 6484 4419 0 0 3 0x14280 nfsidl nfsio 14979 202401 0 0 3 0x14280 nfsidl nfsio 95202 231592 0 0 3 0x14280 nfsidl nfsio 38217 501790 0 0 3 0x14280 nfsidl nfsio 39570 457685 0 0 3 0x14280 nfsidl nfsio 15236 520140 0 0 3 0x14280 nfsidl nfsio 82578 163734 0 0 3 0x14280 nfsidl nfsio 68955 505098 0 0 3 0x14280 nfsidl nfsio 65596 507984 0 0 3 0x14280 nfsidl nfsio 28171 406708 0 0 3 0x14200 bored sosplice 6797 145416 15937 0 3 0x82 kqread syz-executor 15937 116246 50874 0 3 0x10008a sigsusp ksh 50874 373116 29633 0 3 0x98 kqread sshd-session 29633 304397 68247 0 3 0x92 kqread sshd-session 26515 505498 1 0 3 0x100083 ttyopn getty 68247 380150 1 0 3 0x88 kqread sshd 71948 184619 81823 73 3 0x1100090 kqread syslogd 81823 424151 1 0 3 0x100082 sbwait syslogd 41778 403295 1 0 3 0x100080 kqread resolvd 47696 6454 8074 77 3 0x100092 kqread dhcpleased 55060 65447 8074 77 3 0x100092 kqread dhcpleased 8074 397994 1 0 3 0x80 kqread dhcpleased 47944 342680 0 0 3 0x14200 bored smr 40251 500124 0 0 2 0x14200 zerothread 46645 486562 0 0 3 0x14200 aiodoned aiodoned 88912 247087 0 0 3 0x14200 syncer update 20103 135386 0 0 3 0x14200 cleaner cleaner 67907 319263 0 0 3 0x14200 reaper reaper 5585 395128 0 0 3 0x14200 pgdaemon pagedaemon 2650 7791 0 0 3 0x14200 bored viomb 58102 248026 0 0 3 0x40014200 acpi0 acpi0 78817 190318 0 0 3 0x14200 bored softnet3 57011 200464 0 0 3 0x14200 bored softnet2 2584 444212 0 0 3 0x14200 bored softnet1 88536 320786 0 0 3 0x14200 bored softnet0 53639 160357 0 0 3 0x14200 bored systqmp 34691 196128 0 0 3 0x14200 bored systq 92666 462359 0 0 3 0x40014200 tmoslp softclock 50330 147164 0 0 3 0x40014200 idle0 1 375364 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 10173 11041K 11433K 166960K 11815 0 pcb 17 14K 16K 166960K 231 0 rtable 228 7K 8K 166960K 1153 0 pf 34 13K 17K 166960K 112 0 ifaddr 43 8K 8K 166960K 147 0 ifgroup 50 2K 2K 166960K 146 0 sysctl 3 0K 0K 166960K 4 0 counters 30 17K 17K 166960K 54 0 ioctlops 0 0K 4K 166960K 283 0 iov 1 1K 28K 166960K 57 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1458 92K 92K 166960K 2115 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 53 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 17 61K 89K 166960K 915 0 sigio 0 0K 0K 166960K 4 0 proc 60 59K 91K 166960K 1183 0 subproc 104 6K 6K 166960K 416 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 51 0 in_multi 99 7K 7K 166960K 376 0 ether_multi 1 0K 0K 166960K 1 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 700 0 pfkey data 0 0K 4K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 226 72K 91K 166960K 8688 0 UVM aobj 21 2K 2K 166960K 22 0 pinsyscall 38 76K 94K 166960K 2572 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 24 0 NDP 11 0K 1K 166960K 100 0 temp 51 6809K 6887K 166960K 23888 0 kqueue 13 20K 28K 166960K 105 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 114 0 111 1 0 1 1 0 8 0 rtentry 112 402 0 299 4 0 4 4 0 8 0 unpcb 144 427 0 410 7 5 2 6 0 8 1 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 192 0 188 8 6 2 7 0 8 1 arp 88 72 0 54 1 0 1 1 0 8 0 ipq 40 1 0 1 1 0 1 1 0 8 1 ipqe 40 2 0 2 1 0 1 1 0 8 1 inpcb 336 746 0 738 13 6 7 7 0 8 6 nd6 104 102 0 77 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 32 0 24 1 0 1 1 0 8 0 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfanchor 1288 4 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 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 11 0 8 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 1597 0 1143 31 2 29 30 0 8 0 art_table 32 1599 0 1143 4 0 4 4 0 8 0 art_node 16 399 0 309 1 0 1 1 0 8 0 sysvmsgpl 40 70 0 67 1 0 1 1 0 8 0 semapl 112 50 0 40 1 0 1 1 0 8 0 shmpl 112 19 0 1 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2402 0 862 97 0 97 97 0 8 0 ffsino 240 2402 0 862 91 0 91 91 0 8 0 nchpl 144 3219 0 1518 64 0 64 64 0 8 0 uvmvnodes 80 3098 0 0 64 0 64 64 0 8 0 vnodes 216 3098 0 0 173 0 173 173 0 8 0 namei 1024 13122 0 13118 3 1 2 2 0 8 1 pfiaddrpl 120 2 0 0 1 0 1 1 0 8 0 kstatmem 264 70 0 48 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 22798 0 22798 10 2 8 8 1 8 8 plimitpl 152 203 0 186 1 0 1 1 0 8 0 sigapl 424 1170 0 1103 8 0 8 8 0 8 0 futexpl 64 7255 0 7247 1 0 1 1 0 8 0 knotepl 120 20915 0 20868 17 8 9 17 0 8 7 kqueuepl 184 157 0 147 1 0 1 1 0 8 0 pipepl 288 249 0 220 6 1 5 5 0 8 2 fdescpl 432 1133 0 1104 5 1 4 5 0 8 0 filepl 120 6021 0 5771 20 5 15 15 0 8 7 lockfpl 104 363 0 361 3 1 2 2 0 8 1 lockfspl 48 137 0 135 1 0 1 1 0 8 0 sessionpl 144 47 0 39 1 0 1 1 0 8 0 pgrppl 48 84 0 68 1 0 1 1 0 8 0 ucredpl 104 670 0 659 1 0 1 1 0 8 0 zombiepl 144 1388 0 1387 2 1 1 1 0 8 0 processpl 1096 1170 0 1103 5 0 5 5 0 8 0 procpl 648 1934 0 1853 8 0 8 8 0 8 0 sosppl 168 1 0 1 1 0 1 1 0 8 1 sockpl 504 1296 0 1268 29 17 12 21 0 8 8 mcl64k 65536 10 0 10 1 0 1 1 0 8 1 mcl16k 16384 4 0 4 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 20 0 20 2 1 1 1 0 8 1 mcl4k 4096 3313 0 3263 15 7 8 15 0 8 1 mcl2k 2048 1265 0 1263 2 0 2 2 0 8 1 mtagpl 96 12 0 11 2 1 1 1 0 8 0 mbufpl 256 10921 0 10758 13 0 13 13 0 8 1 bufpl 280 7694 0 1447 447 0 447 447 0 8 0 anonpl 24 220355 0 217097 100 4 96 96 0 187 71 amapchunkpl 152 28992 0 28507 49 0 49 49 0 158 28 amappl16 200 4566 0 4542 24 16 8 14 0 8 6 amappl15 192 6 0 6 1 1 0 1 0 8 0 amappl14 184 168 0 158 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 2138 0 2108 3 0 3 3 0 8 1 amappl11 160 66 0 56 1 0 1 1 0 8 0 amappl10 152 11 0 11 1 1 0 1 0 8 0 amappl9 144 128 0 128 1 1 0 1 0 8 0 amappl8 136 27 0 26 1 0 1 1 0 8 0 amappl7 128 149 0 139 1 0 1 1 0 8 0 amappl6 120 415 0 414 1 0 1 1 0 8 0 amappl5 112 235 0 226 1 0 1 1 0 8 0 amappl4 104 362 0 348 1 0 1 1 0 8 0 amappl3 96 5454 0 5346 4 0 4 4 0 8 1 amappl2 88 1001 0 940 2 0 2 2 0 8 0 amappl1 80 11432 0 10921 15 2 13 13 0 8 0 amappl 88 8110 0 7938 5 0 5 5 0 92 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 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 21 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1133 0 1104 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1133 0 1104 1 0 1 1 0 8 0 vmmpekpl 168 10184 0 10125 3 0 3 3 0 8 0 vmmpepl 168 77241 0 75518 88 0 88 88 0 357 10 vmsppl 344 1132 0 1104 4 1 3 4 0 8 0 rwobjpl 24 28000 0 24046 24 0 24 24 0 8 0 pdppl 4096 2272 0 2208 128 62 66 78 0 8 2 pvpl 32 564137 0 554679 272 1 271 271 0 265 185 pmappl 216 1132 0 1104 2 0 2 2 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 451 0 106 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(ffffffff82fc97bf) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000362eb8d8) at ufs_rename+0x18b2 VOP_RENAME(fffffd806c80abe0,fffffd806c80a880,ffff8000362ebaa8,fffffd806c80a520,0,ffff8000362eb9f8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d2530,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000362ebc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a67eaf4320, 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(ffffffff82fc97bf) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000362eb8d8) at ufs_rename+0x18b2 VOP_RENAME(fffffd806c80abe0,fffffd806c80a880,ffff8000362ebaa8,fffffd806c80a520,0,ffff8000362eb9f8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d2530,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000362ebc40) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a67eaf4320, count: -7