panic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 24620 91655 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fcee75) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327f4f48) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0031d8,fffffd807b003460,ffff8000327f5118,fffffd807b003538,0,ffff8000327f5068) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d1c00,ffffff9c,20000100,ffffff9c,20000180) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000327f52b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a299c7e10, 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(ffffffff82fcee75) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327f4f48) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0031d8,fffffd807b003460,ffff8000327f5118,fffffd807b003538,0,ffff8000327f5068) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d1c00,ffffff9c,20000100,ffffff9c,20000180) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000327f52b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a299c7e10, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000327f4cd0 rbx 0xfffffd807b003028 rdx 0xffff800001281e80 rcx 0 rax 0xffff80002a4d1c00 r8 0x101010101010101 r9 0x8080808080808080 r10 0x946b99b07c769d87 r11 0x2e64e5e02f554e4a r12 0 r13 0xfffffd806e05c1e8 r14 0 r15 0x1 rip 0xffffffff82ba5725 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000327f4cc0 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=24620 pid=91655 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=84, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a4d11e0,0xffff80002a4d0f68 process=0xffff8000ffff6258 user=0xffff8000327f0000, vmspace=0xfffffd806c35db10 estcpu=34, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 21094 370760 36395 0 2 0 syz-executor 21094 66803 36395 0 3 0x4000000 futex syz-executor 21094 306844 36395 0 3 0x4000000 futex syz-executor 58782 88229 40527 60929 3 0x3010 suspend syz-executor 58782 177127 40527 60929 3 0x4081010 futex syz-executor 20995 65866 51556 0 2 0 syz-executor 20995 401586 51556 0 3 0x4000080 nanoslp syz-executor 20995 380043 51556 0 2 0x4000000 syz-executor 28783 20679 14812 0 2 0 syz-executor 28783 77017 14812 0 2 0x4000000 syz-executor 28783 415433 14812 0 2 0x4000000 syz-executor 28783 1508 14812 0 3 0x4000080 fsleep syz-executor 66601 4910 57174 0 2 0 syz-executor 66601 113947 57174 0 3 0x4000000 futex syz-executor 66601 488176 57174 0 3 0x4000080 fsleep syz-executor 91655 270238 38281 0 3 0x80 nanoslp syz-executor *91655 24620 38281 0 7 0x4000000 syz-executor 91655 217812 38281 0 2 0x4000000 syz-executor 91655 412636 38281 0 3 0x4000080 fsleep syz-executor 95234 510765 3105 60928 3 0x10 futex syz-executor 95234 60058 3105 60928 3 0x4000090 fsleep syz-executor 95234 157878 3105 60928 3 0x4000090 fsleep syz-executor 14812 331306 86141 0 3 0x82 nanoslp syz-executor 26283 15166 0 0 3 0x14200 acct acct 57174 407648 86141 0 3 0x82 nanoslp syz-executor 75800 56717 0 0 3 0x14200 bored sosplice 38281 186978 86141 0 3 0x82 nanoslp syz-executor 3105 349264 86141 0 3 0x82 nanoslp syz-executor 40527 260326 86141 0 3 0x82 nanoslp syz-executor 36395 126322 86141 0 3 0x82 nanoslp syz-executor 54092 59075 86141 0 3 0x82 wait syz-executor 51556 424615 86141 0 3 0x82 nanoslp syz-executor 86141 217567 32891 0 3 0x82 kqread syz-executor 32891 461845 93618 0 3 0x10008a sigsusp ksh 93618 489340 91375 0 3 0x98 kqread sshd-session 91375 230882 1 0 3 0x92 kqread sshd-session 82575 466681 1 0 3 0x100083 ttyin getty 77756 34318 77497 73 3 0x1100090 kqread syslogd 77497 374512 1 0 3 0x100082 sbwait syslogd 24911 128158 1 0 3 0x100080 kqread resolvd 59127 355742 97740 77 3 0x100092 kqread dhcpleased 3112 261907 97740 77 3 0x100092 kqread dhcpleased 97740 240526 1 0 3 0x80 kqread dhcpleased 40310 131897 0 0 3 0x14200 bored smr 99604 67637 0 0 2 0x14200 zerothread 97528 507174 0 0 3 0x14200 aiodoned aiodoned 23453 516398 0 0 3 0x14200 syncer update 836 321701 0 0 3 0x14200 cleaner cleaner 92719 354218 0 0 3 0x14200 reaper reaper 55995 414575 0 0 3 0x14200 pgdaemon pagedaemon 78287 475086 0 0 3 0x14200 bored viomb 79108 369564 0 0 3 0x40014200 acpi0 acpi0 99947 173670 0 0 3 0x14200 bored softnet3 79666 493243 0 0 3 0x14200 bored softnet2 73919 421747 0 0 3 0x14200 bored softnet1 2973 44005 0 0 3 0x14200 bored softnet0 93292 499446 0 0 3 0x14200 bored systqmp 38293 226495 0 0 3 0x14200 bored systq 57878 444881 0 0 3 0x40014200 tmoslp softclock 7357 393145 0 0 3 0x40014200 idle0 1 141477 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 10187 11072K 11407K 166960K 13127 0 pcb 19 18K 20K 166960K 335 0 rtable 176 8K 9K 166960K 667 0 pf 32 13K 17K 166960K 79 0 ifaddr 35 5K 7K 166960K 81 0 ifgroup 54 2K 2K 166960K 112 0 sysctl 3 0K 0K 166960K 3 0 counters 31 17K 17K 166960K 46 0 ioctlops 0 0K 4K 166960K 193 0 iov 0 0K 24K 166960K 165 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1516 95K 96K 166960K 2451 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 2K 9K 166960K 32 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 227 0 dirhash 12 2K 2K 166960K 39 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 18 65K 97K 166960K 1502 0 sigio 0 0K 0K 166960K 102 0 proc 60 59K 124K 166960K 696 0 subproc 104 6K 6K 166960K 145 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 622 0 in_multi 63 5K 7K 166960K 196 0 ether_multi 1 0K 0K 166960K 6 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 2K 166960K 704 0 fusefs mount 1 32K 32K 166960K 1 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 242 73K 91K 166960K 15703 0 UVM aobj 52 3K 3K 166960K 56 0 pinsyscall 37 74K 102K 166960K 2613 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 65 0 NDP 12 0K 2K 166960K 56 0 temp 76 6816K 6942K 166960K 61531 0 kqueue 13 20K 28K 166960K 264 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 277 0 274 4 2 2 3 0 8 1 rtentry 112 201 0 128 4 0 4 4 0 8 0 unpcb 144 1509 0 1490 11 7 4 6 0 8 3 syncache 336 6 0 6 2 2 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 615 0 612 11 7 4 8 0 8 3 arp 88 29 0 12 1 0 1 1 0 8 0 ipq 40 8 0 7 1 0 1 1 0 8 0 ipqe 40 124 0 122 1 0 1 1 0 8 0 inpcb 336 2089 0 2079 23 13 10 13 0 8 8 nd6 104 49 0 37 1 0 1 1 0 8 0 pkpcb 40 11 0 11 3 2 1 1 0 8 1 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1072 6 0 6 2 1 1 1 0 8 1 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1344 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 7 0 1 7 0 7 7 0 8 1 art_heap4 256 864 0 566 31 6 25 29 0 8 5 art_table 32 871 0 567 4 0 4 4 0 8 0 art_node 16 193 0 129 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 4 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 218 0 208 1 0 1 1 0 8 0 shmpl 112 53 0 4 2 0 2 2 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3930 0 2430 95 0 95 95 0 8 0 ffsino 240 3930 0 2430 89 0 89 89 0 8 0 nchpl 144 6092 0 5561 63 41 22 63 0 8 0 uvmvnodes 80 4786 0 0 98 0 98 98 0 8 0 vnodes 216 4786 0 0 266 0 266 266 0 8 0 namei 1024 21655 0 21652 5 3 2 2 0 8 1 kstatmem 264 54 0 30 2 0 2 2 0 8 0 scsiplug 72 7 0 7 2 1 1 1 0 8 1 scxspl 216 17973 0 17973 11 9 2 8 1 8 2 plimitpl 152 517 0 500 1 0 1 1 0 8 0 sigapl 424 1782 0 1735 7 1 6 7 0 8 0 futexpl 64 21866 0 21859 1 0 1 1 0 8 0 knotepl 120 88055 0 88005 31 21 10 17 0 8 8 kqueuepl 184 561 0 551 7 3 4 4 0 8 3 pipepl 288 238 0 210 4 1 3 3 0 8 0 fdescpl 432 1762 0 1733 5 1 4 5 0 8 0 filepl 120 12205 0 11954 22 9 13 14 0 8 4 lockfpl 104 491 0 489 1 0 1 1 0 8 0 lockfspl 48 168 0 166 1 0 1 1 0 8 0 sessionpl 144 26 0 19 1 0 1 1 0 8 0 pgrppl 48 60 0 45 1 0 1 1 0 8 0 ucredpl 104 2010 0 1994 1 0 1 1 0 8 0 zombiepl 144 2222 0 2221 1 0 1 1 0 8 0 processpl 1096 1782 0 1735 4 0 4 4 0 8 0 procpl 648 4000 0 3938 6 0 6 6 0 8 0 sosppl 168 8 0 8 2 1 1 1 0 8 1 sockpl 504 3908 0 3877 78 66 12 25 0 8 8 mcl64k 65536 55 0 55 3 2 1 1 0 8 1 mcl16k 16384 4 0 4 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 2 1 1 1 0 8 1 mcl9k 9216 5 0 5 2 1 1 1 0 8 1 mcl8k 8192 59 0 59 3 2 1 1 0 8 1 mcl4k 4096 4537 0 4484 17 9 8 16 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 1863 0 1859 6 1 5 5 0 8 3 mtagpl 96 118 0 27 3 0 3 3 0 8 0 mbufpl 256 19605 0 19344 43 17 26 34 0 8 6 bufpl 280 5875 0 104 413 0 413 413 0 8 0 anonpl 24 250429 0 246626 72 24 48 48 0 187 23 amapchunkpl 152 51800 0 51216 41 11 30 35 0 158 7 amappl16 200 5139 0 5106 44 33 11 15 0 8 8 amappl15 192 11 0 11 1 1 0 1 0 8 0 amappl14 184 112 0 103 1 0 1 1 0 8 0 amappl13 176 3 0 3 1 1 0 1 0 8 0 amappl12 168 2422 0 2393 3 1 2 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 9 0 9 2 2 0 1 0 8 0 amappl9 144 141 0 140 1 0 1 1 0 8 0 amappl8 136 22 0 20 1 0 1 1 0 8 0 amappl7 128 103 0 93 1 0 1 1 0 8 0 amappl6 120 197 0 195 1 0 1 1 0 8 0 amappl5 112 136 0 126 1 0 1 1 0 8 0 amappl4 104 296 0 286 1 0 1 1 0 8 0 amappl3 96 9459 0 9357 3 0 3 3 0 8 0 amappl2 88 2053 0 1981 2 0 2 2 0 8 0 amappl1 80 11911 0 11469 16 6 10 14 0 8 0 amappl 88 15124 0 14932 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 2 0 2 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 256 0 256 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 55 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1762 0 1733 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1762 0 1733 1 0 1 1 0 8 0 vmmpekpl 168 14593 0 14552 3 0 3 3 0 8 0 vmmpepl 168 111086 0 109389 99 15 84 89 0 357 10 vmsppl 352 1761 0 1733 4 1 3 4 0 8 0 rwobjpl 24 34949 0 29318 34 0 34 34 0 8 0 pdppl 4096 3530 0 3466 116 52 64 82 0 8 0 pvpl 32 711802 0 702614 151 37 114 114 0 265 32 pmappl 216 1761 0 1733 3 1 2 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 542 0 185 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(ffffffff82fcee75) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327f4f48) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0031d8,fffffd807b003460,ffff8000327f5118,fffffd807b003538,0,ffff8000327f5068) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d1c00,ffffff9c,20000100,ffffff9c,20000180) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000327f52b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a299c7e10, 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(ffffffff82fcee75) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327f4f48) at ufs_rename+0x18b2 VOP_RENAME(fffffd807b0031d8,fffffd807b003460,ffff8000327f5118,fffffd807b003538,0,ffff8000327f5068) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a4d1c00,ffffff9c,20000100,ffffff9c,20000180) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3020 syscall(ffff8000327f52b0) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a299c7e10, count: -7