panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 97529 3838 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83331dc5) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002f524df8) at ufs_rename+0x18b2 sys/ufs/ufs/ufs_vnops.c:-1 VOP_RENAME(fffffd806be569a0,fffffd806be56c28,ffff80002f524fc8,fffffd806be569a0,0,ffff80002f524f18) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a7c9730,ffffff9c,200000000040,ffffff9c,200000000480) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3030 syscall(ffff80002f525160) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f525160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdd46e5fb490, 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:438 panic(ffffffff83331dc5) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002f524df8) at ufs_rename+0x18b2 sys/ufs/ufs/ufs_vnops.c:-1 VOP_RENAME(fffffd806be569a0,fffffd806be56c28,ffff80002f524fc8,fffffd806be569a0,0,ffff80002f524f18) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a7c9730,ffffff9c,200000000040,ffffff9c,200000000480) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3030 syscall(ffff80002f525160) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f525160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdd46e5fb490, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002f524b80 rbx 0xfffffd806ba5d3c0 rdx 0 rcx 0 rax 0xffff80002a7c9730 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8300828236d21309 r11 0xa9689b3841441170 r12 0 r13 0xfffffd806b3a1c00 r14 0 r15 0x1 rip 0xffffffff81708135 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002f524b70 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=97529 pid=3838 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=80, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7c8020,0xffff800035d442d0 process=0xffff80003c9764a0 user=0xffff80002f520000, vmspace=0xfffffd806ba7a2f0 estcpu=30, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 23106 62505 33527 0 2 0 syz-executor 23106 244855 33527 0 2 0x4000000 syz-executor 42657 384638 59829 0 2 0 syz-executor 42657 101400 59829 0 3 0x4000080 fsleep syz-executor 88252 485461 426 0 2 0x10 syz-executor 88252 220271 426 0 3 0x4000090 fsleep syz-executor 36433 258247 99818 0 2 0 syz-executor 36433 520739 99818 0 3 0x4000080 fsleep syz-executor 29302 35801 67283 0 2 0 syz-executor 29302 515294 67283 0 3 0x4000080 fsleep syz-executor 29302 199194 67283 0 3 0x4000080 fsleep syz-executor 48382 211339 8585 0 2 0 syz-executor 48382 461655 8585 0 3 0x4000080 fsleep syz-executor 48382 477111 8585 0 3 0x4000080 fsleep syz-executor 42082 372743 1771 0 2 0 syz-executor 42082 388762 1771 0 3 0x4000080 fsleep syz-executor 42082 349391 1771 0 3 0x4000080 fsleep syz-executor 3838 254218 20519 0 2 0 syz-executor 3838 488891 20519 0 3 0x4000080 fsleep syz-executor 3838 56928 20519 0 3 0x4000080 fsleep syz-executor * 3838 97529 20519 0 7 0x4000000 syz-executor 21486 202563 0 0 3 0x14200 bored sosplice 1771 420535 90743 0 3 0x82 nanoslp syz-executor 8585 88679 90743 0 3 0x82 nanoslp syz-executor 33527 411407 90743 0 2 0x2 syz-executor 426 379561 90743 0 3 0x82 nanoslp syz-executor 20519 198888 90743 0 3 0x82 nanoslp syz-executor 99818 86716 90743 0 3 0x82 nanoslp syz-executor 67283 28401 90743 0 3 0x82 nanoslp syz-executor 59829 517585 90743 0 3 0x82 nanoslp syz-executor 90743 297903 22366 0 3 0x82 kqread syz-executor 22366 492827 46475 0 3 0x10008a sigsusp ksh 46475 3385 5361 0 3 0x98 kqread sshd-session 5361 460223 88091 0 3 0x92 kqread sshd-session 42347 361543 1 0 3 0x100083 ttyin getty 88091 359600 1 0 3 0x88 kqread sshd 97790 395534 71784 73 3 0x1100090 kqread syslogd 71784 169579 1 0 3 0x100082 sbwait syslogd 78454 184884 1 0 3 0x100080 kqread resolvd 63705 18412 25828 77 3 0x100092 kqread dhcpleased 62763 19400 25828 77 3 0x100092 kqread dhcpleased 25828 417774 1 0 3 0x80 kqread dhcpleased 98597 31471 0 0 3 0x14200 bored smr 92722 84750 0 0 2 0x14200 zerothread 41286 169667 0 0 3 0x14200 aiodoned aiodoned 15401 96380 0 0 3 0x14200 syncer update 66858 425187 0 0 3 0x14200 cleaner cleaner 86914 406187 0 0 3 0x14200 reaper reaper 38603 66837 0 0 3 0x14200 pgdaemon pagedaemon 42635 459351 0 0 3 0x14200 bored viomb 21104 290971 0 0 3 0x40014200 acpi0 acpi0 57906 202083 0 0 3 0x14200 bored softnet7 61814 265375 0 0 3 0x14200 bored softnet6 56038 174626 0 0 3 0x14200 bored softnet5 97248 385922 0 0 3 0x14200 bored softnet4 56553 88235 0 0 3 0x14200 bored softnet3 73942 201149 0 0 3 0x14200 bored softnet2 11622 404020 0 0 3 0x14200 bored softnet1 38109 46724 0 0 3 0x14200 bored softnet0 55724 14423 0 0 3 0x14200 bored systqmp 15478 490791 0 0 3 0x14200 bored systq 60310 335089 0 0 3 0x40014200 tmoslp softclock 98058 473462 0 0 3 0x40014200 idle0 1 510572 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10182 11048K 11436K 166960K 11554 0 pcb 17 14K 16K 166960K 131 0 rtable 227 7K 8K 166960K 305 0 pf 31 13K 15K 166960K 45 0 ifaddr 42 7K 7K 166960K 51 0 ifgroup 50 2K 2K 166960K 60 0 sysctl 1 1K 9K 166960K 6 0 counters 32 17K 18K 166960K 40 0 ioctlops 0 0K 4K 166960K 131 0 iov 0 0K 16K 166960K 82 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1338 84K 85K 166960K 1523 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 10 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 18 65K 93K 166960K 330 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 100K 166960K 500 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 27 0 in_multi 99 7K 7K 166960K 105 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 363 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 222 160K 173K 166960K 4644 0 UVM aobj 12 2K 2K 166960K 13 0 pinsyscall 39 78K 94K 166960K 1367 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 44 0 NDP 11 0K 2K 166960K 32 0 temp 43 8664K 8790K 166960K 5538 0 kqueue 13 20K 28K 166960K 59 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 57 0 53 1 0 1 1 0 8 0 rtentry 136 99 0 1 4 0 4 4 0 8 0 unpcb 144 106 0 89 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 204 0 198 7 0 7 7 0 8 6 arp 88 11 0 0 1 0 1 1 0 8 0 inpcb 328 483 0 471 13 4 9 12 0 8 7 ip6q 72 1 0 1 1 0 1 1 0 8 1 ip6af 40 2 0 2 1 0 1 1 0 8 1 nd6 104 18 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 8 0 8 1 0 1 1 0 8 1 pfstscr 40 1 0 1 1 0 1 1 0 8 1 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 2 1 0 1 1 0 8 1 pfstate 384 1 0 1 1 0 1 1 0 8 1 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 440 0 0 28 0 28 28 0 8 0 art_table 40 442 0 0 5 0 5 5 0 8 0 art_node 32 99 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 112 9 0 1 1 0 1 1 0 8 0 shmpl 112 10 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1927 0 429 95 0 95 95 0 8 0 ffsino 256 1927 0 429 95 0 95 95 0 8 0 nchpl 144 2369 0 692 63 0 63 63 0 8 0 uvmvnodes 80 2099 0 0 43 0 43 43 0 8 0 vnodes 216 2099 0 0 117 0 117 117 0 8 0 namei 1024 7255 0 7253 4 2 2 2 0 8 1 kstatmem 264 32 0 10 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 7856 0 7856 8 7 1 8 1 8 1 plimitpl 152 93 0 77 1 0 1 1 0 8 0 sigapl 424 618 0 567 7 1 6 7 0 8 0 knotepl 120 10888 0 10841 10 0 10 10 0 8 8 kqueuepl 184 94 0 85 1 0 1 1 0 8 0 pipepl 304 125 0 98 3 0 3 3 0 8 0 fdescpl 448 595 0 565 5 1 4 5 0 8 0 filepl 120 2679 0 2465 11 0 11 11 0 8 3 lockfpl 104 98 0 95 1 0 1 1 0 8 0 lockfspl 48 45 0 42 1 0 1 1 0 8 0 sessionpl 144 22 0 14 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 313 0 301 1 0 1 1 0 8 0 zombiepl 144 699 0 699 2 1 1 1 0 8 1 processpl 1168 618 0 567 5 1 4 5 0 8 0 procpl 656 976 0 912 7 1 6 6 0 8 0 sosppl 168 4 0 2 1 0 1 1 0 8 0 sockpl 552 656 0 623 12 2 10 12 0 8 7 mcl64k 65536 72 0 72 1 0 1 1 0 8 1 mcl8k 8192 6 0 6 2 1 1 1 0 8 1 mcl4k 4096 2688 0 2636 16 7 9 16 0 8 2 mcl2k 2048 447 0 447 2 1 1 1 0 8 1 mtagpl 96 11 0 5 1 0 1 1 0 8 0 mbufpl 256 6136 0 5939 15 1 14 14 0 8 0 bufpl 280 3103 0 119 214 0 214 214 0 8 0 anonpl 24 89134 0 86031 35 3 32 32 0 187 10 amapchunkpl 152 13950 0 13490 26 0 26 26 0 158 6 amappl16 200 882 0 854 5 2 3 3 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 102 0 92 1 0 1 1 0 8 0 amappl13 176 2 0 2 1 1 0 1 0 8 0 amappl12 168 1210 0 1180 3 1 2 3 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 5 0 5 1 1 0 1 0 8 0 amappl9 144 254 0 254 1 1 0 1 0 8 0 amappl8 136 29 0 28 1 0 1 1 0 8 0 amappl7 128 102 0 92 1 0 1 1 0 8 0 amappl6 120 167 0 164 1 0 1 1 0 8 0 amappl5 112 111 0 104 1 0 1 1 0 8 0 amappl4 104 267 0 252 1 0 1 1 0 8 0 amappl3 96 2510 0 2407 4 0 4 4 0 8 0 amappl2 88 610 0 556 2 0 2 2 0 8 0 amappl1 80 8858 0 8319 13 0 13 13 0 8 0 amappl 88 3965 0 3808 5 0 5 5 0 92 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 12 0 1 1 0 1 1 0 8 0 uaddrrnd 24 595 0 565 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 595 0 565 1 0 1 1 0 8 0 vmmpekpl 168 6293 0 6262 2 0 2 2 0 8 0 vmmpepl 168 42642 0 40784 87 4 83 84 0 357 1 vmsppl 368 594 0 565 4 1 3 4 0 8 0 rwobjpl 40 15328 0 12401 30 0 30 30 0 8 0 pdppl 4096 1197 0 1130 95 28 67 81 0 8 0 pvpl 32 250810 0 242502 101 2 99 99 0 265 23 pmappl 216 594 0 565 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 383 0 46 11 1 10 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:438 panic(ffffffff83331dc5) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002f524df8) at ufs_rename+0x18b2 sys/ufs/ufs/ufs_vnops.c:-1 VOP_RENAME(fffffd806be569a0,fffffd806be56c28,ffff80002f524fc8,fffffd806be569a0,0,ffff80002f524f18) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a7c9730,ffffff9c,200000000040,ffffff9c,200000000480) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3030 syscall(ffff80002f525160) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f525160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdd46e5fb490, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff83331dc5) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff80002f524df8) at ufs_rename+0x18b2 sys/ufs/ufs/ufs_vnops.c:-1 VOP_RENAME(fffffd806be569a0,fffffd806be56c28,ffff80002f524fc8,fffffd806be569a0,0,ffff80002f524f18) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a7c9730,ffffff9c,200000000040,ffffff9c,200000000480) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3030 syscall(ffff80002f525160) at syscall+0x97e mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f525160) at syscall+0x97e sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdd46e5fb490, count: -7