panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *285427 60563 0 0x1000 0x4080000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fc6d02) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5a5688) at ufs_rename+0x18b2 VOP_RENAME(fffffd807ae137b8,fffffd807ae131d0,ffff80002a5a5858,fffffd807ae130f8,0,ffff80002a5a57a8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f5470,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3021 syscall(ffff80002a5a59f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbbeb4104b50, 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(ffffffff82fc6d02) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5a5688) at ufs_rename+0x18b2 VOP_RENAME(fffffd807ae137b8,fffffd807ae131d0,ffff80002a5a5858,fffffd807ae130f8,0,ffff80002a5a57a8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f5470,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3021 syscall(ffff80002a5a59f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbbeb4104b50, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a5a5410 rbx 0xfffffd807ae130f8 rdx 0 rcx 0 rax 0xffff80002a4f5470 r8 0x101010101010101 r9 0x8080808080808080 r10 0x144de407ae4243f8 r11 0x6080fb5a5212d1b9 r12 0 r13 0xfffffd807ada9b48 r14 0 r15 0x1 rip 0xffffffff81fea4f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a5a5400 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=285427 pid=60563 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=17, usrpri=84, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a4f42b8 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4f42b8,0xffff80002a4f47d8 process=0xffff80002a549590 user=0xffff80002a5a0000, vmspace=0xfffffd806cd69420 estcpu=34, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 5960 202478 94127 0 2 0 syz-executor 5960 115603 94127 0 2 0x4000000 syz-executor 72059 494546 86590 0 2 0 syz-executor 72059 448715 86590 0 3 0x4000080 kqsel syz-executor 73432 59526 40875 0 2 0 syz-executor 69727 489764 13073 0 2 0 syz-executor 69727 201993 13073 0 3 0x4000000 fdlock syz-executor 69727 153991 13073 0 2 0x4000000 syz-executor 60563 164647 13907 0 3 0x3000 suspend syz-executor *60563 285427 13907 0 7 0x4081000 syz-executor 86590 347004 69445 0 3 0x82 nanoslp syz-executor 40875 140613 69445 0 3 0x82 nanoslp syz-executor 13073 488986 69445 0 3 0x82 nanoslp syz-executor 16936 323729 69445 0 3 0x82 nanoslp syz-executor 83613 362239 69445 0 3 0x82 wait syz-executor 94127 488921 69445 0 3 0x82 nanoslp syz-executor 13907 362581 69445 0 3 0x82 nanoslp syz-executor 15997 441270 69445 0 3 0x82 wait syz-executor 39475 197641 0 0 3 0x14200 acct acct 617 349575 1 0 3 0x100083 ttyin getty 82486 68372 0 0 3 0x14200 bored sosplice 84551 225201 0 0 3 0x14280 nfsidl nfsio 24559 183220 0 0 3 0x14280 nfsidl nfsio 60995 247768 0 0 3 0x14280 nfsidl nfsio 88119 460051 0 0 3 0x14280 nfsidl nfsio 56971 301013 0 0 3 0x14280 nfsidl nfsio 69068 185593 0 0 3 0x14280 nfsidl nfsio 78358 78531 0 0 3 0x14280 nfsidl nfsio 94196 194835 0 0 3 0x14280 nfsidl nfsio 69113 321525 0 0 3 0x14280 nfsidl nfsio 89167 197224 0 0 3 0x14280 nfsidl nfsio 36652 160398 0 0 3 0x14280 nfsidl nfsio 85694 500758 0 0 3 0x14280 nfsidl nfsio 49749 316804 0 0 3 0x14280 nfsidl nfsio 16141 507607 0 0 3 0x14280 nfsidl nfsio 24036 471059 0 0 3 0x14280 nfsidl nfsio 64038 447899 0 0 3 0x14280 nfsidl nfsio 22470 276060 0 0 3 0x14280 nfsidl nfsio 652 323375 0 0 3 0x14280 nfsidl nfsio 22348 79677 0 0 3 0x14280 nfsidl nfsio 95383 272857 0 0 3 0x14280 nfsidl nfsio 69445 507456 31791 0 3 0x82 kqread syz-executor 31791 192377 16087 0 3 0x10008a sigsusp ksh 16087 437004 76544 0 3 0x98 kqread sshd-session 76544 180650 83357 0 3 0x92 kqread sshd-session 83357 96688 1 0 3 0x88 kqread sshd 49597 324013 70675 73 2 0x1100010 syslogd 70675 519995 1 0 3 0x100082 sbwait syslogd 55148 23236 1 0 3 0x100080 kqread resolvd 7936 470870 80596 77 3 0x100092 kqread dhcpleased 581 123996 80596 77 3 0x100092 kqread dhcpleased 80596 522663 1 0 3 0x80 kqread dhcpleased 58277 280843 0 0 3 0x14200 bored smr 6729 23557 0 0 2 0x14200 zerothread 33510 239653 0 0 3 0x14200 aiodoned aiodoned 30882 442356 0 0 3 0x14200 syncer update 2507 294690 0 0 3 0x14200 cleaner cleaner 28100 236331 0 0 3 0x14200 reaper reaper 92766 266909 0 0 3 0x14200 pgdaemon pagedaemon 67441 216659 0 0 3 0x14200 bored viomb 89130 86140 0 0 3 0x40014200 acpi0 acpi0 78872 7778 0 0 3 0x14200 bored softnet3 56110 317540 0 0 3 0x14200 bored softnet2 18598 180817 0 0 3 0x14200 bored softnet1 5435 282684 0 0 3 0x14200 bored softnet0 40278 225627 0 0 3 0x14200 bored systqmp 22052 264862 0 0 3 0x14200 bored systq 10462 384459 0 0 3 0x40014200 tmoslp softclock 91850 236 0 0 3 0x40014200 idle0 1 308759 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 10219 10059K 10418K 166960K 13370 0 pcb 17 16K 17K 166960K 545 0 rtable 234 8K 9K 166960K 3019 0 pf 38 14K 16K 166960K 263 0 ifaddr 49 9K 9K 166960K 411 0 ifgroup 66 2K 3K 166960K 475 0 sysctl 4 1K 1K 166960K 6 0 counters 34 18K 18K 166960K 137 0 ioctlops 0 0K 4K 166960K 217 0 iov 0 0K 18K 166960K 267 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1508 95K 95K 166960K 3659 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 72K 166960K 27 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 65 0 dirhash 15 2K 3K 166960K 33 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 18 65K 81K 166960K 2868 0 sigio 0 0K 0K 166960K 39 0 proc 58 59K 83K 166960K 2941 0 subproc 104 6K 7K 166960K 1196 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 285 0 in_multi 106 7K 7K 166960K 1077 0 ether_multi 1 0K 0K 166960K 25 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 235 1049K 1049K 166960K 235 0 exec 0 0K 1K 166960K 1667 0 pfkey data 0 0K 0K 166960K 5 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 239 73K 91K 166960K 24198 0 UVM aobj 100 4K 5K 166960K 107 0 pinsyscall 39 78K 89K 166960K 6029 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 83 0 NDP 15 0K 2K 166960K 299 0 temp 79 6816K 6897K 166960K 91897 0 kqueue 13 20K 30K 166960K 278 0 SYN cache 2 8K 16K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 403 0 399 3 0 3 3 0 8 2 rtentry 112 1063 0 960 4 0 4 4 0 8 0 unpcb 144 2081 0 2066 6 0 6 6 0 8 5 syncache 336 13 0 13 2 1 1 1 0 8 1 tcpqe 32 9 0 9 2 1 1 1 0 8 1 tcpcb 808 737 0 731 9 1 8 8 0 8 7 arp 88 190 0 171 1 0 1 1 0 8 0 ipq 40 10 0 10 1 0 1 1 0 8 1 ipqe 40 60 0 60 1 0 1 1 0 8 1 inpcb 336 2705 0 2696 13 5 8 8 0 8 6 nd6 104 282 0 258 1 0 1 1 0 8 0 pkpcb 40 11 0 11 1 0 1 1 0 8 1 kcovpl 48 92 0 84 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 0 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 4221 0 3766 30 1 29 29 0 8 0 art_table 32 4224 0 3766 4 0 4 4 0 8 0 art_node 16 1054 0 963 1 0 1 1 0 8 0 sysvmsgpl 40 12 0 10 1 0 1 1 0 8 0 semapl 112 63 0 53 1 0 1 1 0 8 0 shmpl 112 104 0 7 3 0 3 3 0 8 0 dirhash 1024 32 0 13 3 0 3 3 0 8 0 dino2pl 256 4456 0 2790 105 0 105 105 0 8 0 ffsino 240 4456 0 2790 99 0 99 99 0 8 0 nchpl 144 6944 0 5155 67 0 67 67 0 8 0 uvmvnodes 80 6406 0 0 131 0 131 131 0 8 0 vnodes 216 6406 0 0 356 0 356 356 0 8 0 namei 1024 31453 0 31450 4 1 3 3 0 8 2 kstatmem 264 236 0 206 3 0 3 3 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 57927 0 57927 10 7 3 8 1 8 3 plimitpl 152 388 0 372 1 0 1 1 0 8 0 sigapl 424 3001 0 2933 9 0 9 9 0 8 1 futexpl 64 25090 0 25090 2 1 1 1 0 8 1 knotepl 120 62193 0 62146 24 14 10 17 0 8 8 kqueuepl 184 699 0 689 7 1 6 6 0 8 5 pipepl 288 561 0 534 7 0 7 7 0 8 4 fdescpl 432 2962 0 2932 4 0 4 4 0 8 0 filepl 120 16477 0 16230 19 3 16 17 0 8 7 lockfpl 104 633 0 630 2 0 2 2 0 8 1 lockfspl 48 262 0 259 1 0 1 1 0 8 0 sessionpl 144 105 0 97 1 0 1 1 0 8 0 pgrppl 48 209 0 193 1 0 1 1 0 8 0 ucredpl 104 1998 0 1985 1 0 1 1 0 8 0 zombiepl 144 4104 0 4100 1 0 1 1 0 8 0 processpl 1096 3001 0 2933 6 0 6 6 0 8 0 procpl 648 5994 0 5920 8 0 8 8 0 8 0 sosppl 168 8 0 8 1 0 1 1 0 8 1 sockpl 504 5263 0 5235 74 62 12 27 0 8 8 mcl64k 65536 40 0 40 2 1 1 1 0 8 1 mcl16k 16384 5 0 5 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl9k 9216 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 99 0 99 2 1 1 1 0 8 1 mcl4k 4096 15 0 15 2 1 1 1 0 8 1 mcl2k 2048 11062 0 10964 32 16 16 30 0 8 3 mtagpl 96 13 0 13 1 0 1 1 0 8 1 mbufpl 256 31738 0 31523 51 31 20 39 0 8 6 bufpl 280 13104 0 5660 533 0 533 533 0 8 0 anonpl 24 381131 0 377716 89 27 62 62 0 187 25 amapchunkpl 152 77108 0 76573 56 13 43 43 0 158 22 amappl16 200 5636 0 5617 47 39 8 23 0 8 6 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 269 0 259 1 0 1 1 0 8 0 amappl13 176 8 0 8 2 1 1 1 0 8 1 amappl12 168 4877 0 4847 2 0 2 2 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 230 0 229 2 1 1 1 0 8 0 amappl8 136 17 0 16 1 0 1 1 0 8 0 amappl7 128 261 0 250 1 0 1 1 0 8 0 amappl6 120 1003 0 1001 1 0 1 1 0 8 0 amappl5 112 460 0 450 1 0 1 1 0 8 0 amappl4 104 528 0 512 1 0 1 1 0 8 0 amappl3 96 13524 0 13417 3 0 3 3 0 8 0 amappl2 88 3336 0 3261 2 0 2 2 0 8 0 amappl1 80 20557 0 20021 13 0 13 13 0 8 0 amappl 88 23177 0 22993 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 2 0 1 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 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 106 0 7 2 0 2 2 0 8 0 uaddrrnd 24 2962 0 2932 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2962 0 2932 1 0 1 1 0 8 0 vmmpekpl 168 25324 0 25259 4 0 4 4 0 8 0 vmmpepl 168 183531 0 181703 109 11 98 98 0 357 18 vmsppl 344 2961 0 2932 5 1 4 4 0 8 1 rwobjpl 24 56870 0 49483 46 1 45 45 0 8 0 pdppl 4096 5931 0 5864 227 158 69 77 0 8 2 pvpl 32 1346450 0 1336151 360 132 228 228 0 265 125 pmappl 216 2961 0 2932 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 670 0 281 12 0 12 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(ffffffff82fc6d02) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5a5688) at ufs_rename+0x18b2 VOP_RENAME(fffffd807ae137b8,fffffd807ae131d0,ffff80002a5a5858,fffffd807ae130f8,0,ffff80002a5a57a8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f5470,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3021 syscall(ffff80002a5a59f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbbeb4104b50, 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(ffffffff82fc6d02) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002a5a5688) at ufs_rename+0x18b2 VOP_RENAME(fffffd807ae137b8,fffffd807ae131d0,ffff80002a5a5858,fffffd807ae130f8,0,ffff80002a5a57a8) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4f5470,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3021 syscall(ffff80002a5a59f0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xbbeb4104b50, count: -7