login: panic: ufs_rename: lost dir entry Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *211632 73256 0 0x10 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278b4c2) at panic+0x165 sys/kern/subr_prf.c:198 ufs_rename(ffff80002e896a58) at ufs_rename+0x15b1 sys/ufs/ufs/ufs_vnops.c:908 VOP_RENAME(fffffd80719ca8d0,fffffd8074666948,ffff80002e896c28,fffffd80719ca8d0,0,ffff80002e896b78) at VOP_RENAME+0xf4 sys/kern/vfs_vops.c:370 dorenameat(ffff800021687aa0,ffffff9c,20000180,ffffff9c,20000080) at dorenameat+0x2a0 sys/kern/vfs_syscalls.c:2994 syscall(ffff80002e896dc0) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35fba16410, 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+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278b4c2) at panic+0x165 sys/kern/subr_prf.c:198 ufs_rename(ffff80002e896a58) at ufs_rename+0x15b1 sys/ufs/ufs/ufs_vnops.c:908 VOP_RENAME(fffffd80719ca8d0,fffffd8074666948,ffff80002e896c28,fffffd80719ca8d0,0,ffff80002e896b78) at VOP_RENAME+0xf4 sys/kern/vfs_vops.c:370 dorenameat(ffff800021687aa0,ffffff9c,20000180,ffffff9c,20000080) at dorenameat+0x2a0 sys/kern/vfs_syscalls.c:2994 syscall(ffff80002e896dc0) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35fba16410, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002e8967f0 rbx 0xfffffd8078cb0b00 rdx 0 rcx 0 rax 0xffff800021687aa0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x4ac535b95a6b0117 r11 0xc6e5021e44ba1e71 r12 0 r13 0xfffffd805939eb48 r14 0 r15 0x1 rip 0xffffffff8152775c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e8967e0 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=211632 stat=onproc flags process=10 proc=4000000 pri=17, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800021688298,0xffff8000216887f8 process=0xffff8000216d97a0 user=0xffff80002e891000, vmspace=0xfffffd806f2f1738 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 57973 5174 48621 0 2 0 syz-executor.0 57973 226989 48621 0 3 0x4000080 fsleep syz-executor.0 57973 257879 48621 0 3 0x4000080 fsleep syz-executor.0 56287 349750 82872 0 3 0x80 nanoslp syz-executor.2 56287 191102 82872 0 3 0x4000080 kqpoll syz-executor.2 56287 429589 82872 0 3 0x4000080 fsleep syz-executor.2 56287 300978 82872 0 3 0x4000080 fsleep syz-executor.2 13661 175547 15105 0 2 0 syz-executor.7 13661 327294 15105 0 2 0x4000000 syz-executor.7 13661 31328 15105 0 2 0x4000000 syz-executor.7 13661 493555 15105 0 2 0x4000000 syz-executor.7 13661 241151 15105 0 2 0x4000000 syz-executor.7 73256 211834 88735 0 2 0x10 syz-executor.1 73256 244592 88735 0 3 0x4000090 fsleep syz-executor.1 73256 72031 88735 0 3 0x4000090 fsleep syz-executor.1 *73256 211632 88735 0 7 0x4000010 syz-executor.1 50636 298835 18148 0 3 0x80 nanoslp syz-executor.6 50636 92617 18148 0 3 0x4000080 fifor syz-executor.6 50636 288780 18148 0 3 0x4000080 fifor syz-executor.6 50636 96283 18148 0 3 0x4000080 fifor syz-executor.6 88735 262874 47525 0 3 0x82 nanoslp syz-executor.1 73812 375186 1 0 3 0x100083 ttyin getty 15105 24375 47525 0 3 0x82 nanoslp syz-executor.7 66299 279254 0 0 3 0x14200 acct acct 2360 102419 0 0 3 0x14280 nfsidl nfsio 66293 53055 0 0 3 0x14280 nfsidl nfsio 72135 114303 0 0 3 0x14280 nfsidl nfsio 13660 311683 0 0 3 0x14280 nfsidl nfsio 94383 69486 0 0 3 0x14280 nfsidl nfsio 49931 478332 0 0 3 0x14280 nfsidl nfsio 13116 39167 0 0 3 0x14280 nfsidl nfsio 86414 179503 0 0 3 0x14280 nfsidl nfsio 64255 520205 0 0 3 0x14280 nfsidl nfsio 52160 38380 0 0 3 0x14280 nfsidl nfsio 26910 386226 0 0 3 0x14280 nfsidl nfsio 50205 160806 0 0 3 0x14280 nfsidl nfsio 28400 446336 0 0 3 0x14280 nfsidl nfsio 99759 34552 0 0 3 0x14280 nfsidl nfsio 65295 132592 0 0 3 0x14280 nfsidl nfsio 90439 231805 0 0 3 0x14280 nfsidl nfsio 19213 496482 0 0 3 0x14280 nfsidl nfsio 95171 322945 0 0 3 0x14280 nfsidl nfsio 88170 165295 0 0 3 0x14280 nfsidl nfsio 12700 18088 0 0 3 0x14280 nfsidl nfsio 96678 36800 47525 0 3 0x82 nanoslp syz-executor.4 35710 400380 47525 0 3 0x82 nanoslp syz-executor.5 48621 67160 47525 0 3 0x82 nanoslp syz-executor.0 82872 187561 47525 0 3 0x82 nanoslp syz-executor.2 89291 207641 47525 0 2 0x2 syz-executor.3 18148 94609 47525 0 3 0x82 nanoslp syz-executor.6 97391 129397 0 0 3 0x14200 bored sosplice 47525 22656 47796 0 3 0x2000082 kqread syz-fuzzer 47525 22472 47796 0 3 0x6000082 nanoslp syz-fuzzer 47525 503405 47796 0 3 0x6000082 thrsleep syz-fuzzer 47525 505465 47796 0 3 0x6000082 wait syz-fuzzer 47525 400453 47796 0 3 0x6000082 wait syz-fuzzer 47525 109381 47796 0 3 0x6000082 wait syz-fuzzer 47525 304086 47796 0 3 0x6000082 thrsleep syz-fuzzer 47525 506626 47796 0 3 0x6000082 wait syz-fuzzer 47525 323536 47796 0 3 0x6000082 wait syz-fuzzer 47525 244256 47796 0 3 0x6000082 wait syz-fuzzer 47525 109135 47796 0 3 0x6000082 thrsleep syz-fuzzer 47525 213212 47796 0 3 0x6000082 wait syz-fuzzer 47525 30814 47796 0 3 0x6000082 wait syz-fuzzer 47525 243886 47796 0 3 0x6000082 thrsleep syz-fuzzer 47796 23768 66773 0 3 0x10008a sigsusp ksh 66773 244551 79783 0 3 0x9a kqread sshd 79783 34882 1 0 3 0x88 kqread sshd 41612 61786 3810 73 3 0x1100090 kqread syslogd 3810 492096 1 0 3 0x100082 netio syslogd 60535 504538 1 0 3 0x100080 kqread resolvd 40717 339580 35528 77 3 0x100092 kqread dhcpleased 32502 433824 35528 77 3 0x100092 kqread dhcpleased 35528 26832 1 0 3 0x80 kqread dhcpleased 95037 66036 0 0 3 0x14200 bored smr 70360 458572 0 0 2 0x14200 zerothread 99911 10233 0 0 3 0x14200 aiodoned aiodoned 56853 232235 0 0 3 0x14200 syncer update 65173 90325 0 0 3 0x14200 cleaner cleaner 76459 371270 0 0 3 0x14200 reaper reaper 14341 279151 0 0 3 0x14200 pgdaemon pagedaemon 89101 150384 0 0 3 0x14200 bored viomb 44282 390968 0 0 3 0x40014200 acpi0 acpi0 35322 25546 0 0 3 0x14200 bored softnet3 17432 332745 0 0 3 0x14200 bored softnet2 63741 93655 0 0 3 0x14200 bored softnet1 23140 85457 0 0 3 0x14200 bored softnet0 27739 152391 0 0 3 0x14200 bored systqmp 49111 484819 0 0 3 0x14200 bored systq 68031 276301 0 0 3 0x40014200 bored softclock 42829 39178 0 0 3 0x40014200 idle0 1 449014 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 10208 6442K 8551K 78643K 32107 0 pcb 13 16K 18K 78643K 1889 0 rtable 239 7K 7K 78643K 2310 0 pf 31 9K 10K 78643K 744 0 ifaddr 44 15K 17K 78643K 497 0 ifgroup 54 2K 2K 78643K 1143 0 sysctl 3 1K 1K 78643K 11 0 counters 29 17K 17K 78643K 326 0 ioctlops 0 0K 2K 78643K 798 0 iov 0 0K 32K 78643K 2454 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1612 101K 101K 78643K 9864 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 272 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 11 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 77K 78643K 25118 0 sigio 1 0K 0K 78643K 558 0 proc 61 59K 83K 78643K 2904 0 subproc 104 6K 6K 78643K 728 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 785 0 in_multi 99 7K 7K 78643K 770 0 ether_multi 1 0K 0K 78643K 10 0 mrt 1 0K 0K 78643K 10 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 235 1049K 1049K 78643K 235 0 exec 0 0K 1K 78643K 5115 0 pfkey data 0 0K 0K 78643K 9 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 440 98K 116K 78643K 241175 0 UVM aobj 131 4K 4K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 650 0 NDP 12 0K 1K 78643K 421 0 temp 74 5912K 6552K 78643K 259499 0 kqueue 12 18K 36K 78643K 1573 0 SYN cache 2 1364K 2592K 78643K 4 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 784 0 781 8 6 2 3 0 8 1 rtentry 112 692 0 581 4 0 4 4 0 8 0 unpcb 144 19815 0 19800 234 228 6 10 0 8 5 syncache 304 243 0 243 47 46 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 340 0 340 37 37 0 1 0 8 0 tcpcb 808 8704 0 8674 213 203 10 15 0 8 6 arp 88 117 0 99 1 0 1 1 0 8 0 ipq 40 41 0 39 15 14 1 1 0 8 0 ipqe 40 195 0 193 15 14 1 1 0 8 0 inpcb 336 17284 0 17251 209 200 9 16 0 8 5 nd6 104 188 0 163 1 0 1 1 0 8 0 pkpcb 40 104 0 104 15 15 0 1 0 8 0 kcovpl 48 56 0 48 1 0 1 1 0 8 0 ppxss 1160 109 0 109 28 28 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2693 0 2221 31 1 30 30 0 8 0 art_table 32 2694 0 2221 4 0 4 4 0 8 0 art_node 16 661 0 560 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 1 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 34981 0 33331 104 0 104 104 0 8 0 ffsino 240 34981 0 33331 98 0 98 98 0 8 0 nchpl 144 69366 0 68858 64 42 22 63 0 8 0 uvmvnodes 80 7750 0 0 159 0 159 159 0 8 0 vnodes 216 7750 0 0 431 0 431 431 0 8 0 namei 1024 248971 0 248968 9 8 1 3 0 8 0 vmpool 664 156 0 156 30 30 0 1 0 8 0 kstatmem 264 618 0 594 2 0 2 2 0 8 0 scxspl 216 205887 0 205887 63 62 1 8 1 8 1 plimitpl 152 2579 0 2564 1 0 1 1 0 8 0 sigapl 424 25610 0 25544 11 3 8 8 0 8 0 futexpl 64 242832 0 242826 1 0 1 1 0 8 0 knotepl 120 282919 0 282839 240 234 6 24 0 8 2 kqueuepl 184 3499 0 3490 41 40 1 4 0 8 0 pipepl 288 4979 0 4951 94 89 5 9 0 8 2 fdescpl 432 25309 0 25283 4 0 4 4 0 8 0 filepl 120 165959 0 165655 211 199 12 21 0 8 2 lockfpl 104 15307 0 15305 22 21 1 3 0 8 0 lockfspl 48 3482 0 3480 1 0 1 1 0 8 0 sessionpl 144 75 0 59 1 0 1 1 0 8 0 pgrppl 48 357 0 341 1 0 1 1 0 8 0 ucredpl 104 23128 0 23110 1 0 1 1 0 8 0 zombiepl 144 25546 0 25544 4 3 1 1 0 8 0 processpl 1008 25610 0 25544 15 6 9 9 0 8 0 procpl 680 68846 0 68752 56 47 9 10 0 8 0 sosppl 168 239 0 239 32 31 1 1 0 8 1 sockpl 456 38145 0 38094 887 871 16 37 0 8 8 mcl64k 65536 1003 0 1003 37 36 1 1 0 8 1 mcl16k 16384 454 0 454 54 53 1 1 0 8 1 mcl12k 12288 1008 0 1008 41 40 1 1 0 8 1 mcl9k 9216 421 0 421 53 52 1 1 0 8 1 mcl8k 8192 1422 0 1422 34 33 1 1 0 8 1 mcl4k 4096 3095 0 3095 24 23 1 4 0 8 1 mcl2k2 2112 253 0 253 55 54 1 1 0 8 1 mcl2k 2048 122159 0 122102 84 75 9 44 0 8 0 mtagpl 96 1571 0 1571 29 29 0 24 0 8 0 mbufpl 256 419822 0 419694 1103 1088 15 149 0 8 0 bufpl 288 51614 0 43864 554 0 554 554 0 8 0 anonpl 24 2415023 0 2400785 340 239 101 113 0 188 0 amapchunkpl 152 759554 0 758692 152 114 38 45 0 158 3 amappl16 200 50017 0 49572 316 290 26 38 0 8 0 amappl15 192 13 0 13 2 2 0 1 0 8 0 amappl14 184 348 0 337 2 1 1 2 0 8 0 amappl13 176 11 0 11 2 2 0 1 0 8 0 amappl12 168 26694 0 26667 2 0 2 2 0 8 0 amappl11 160 55 0 43 1 0 1 1 0 8 0 amappl10 152 92 0 81 1 0 1 1 0 8 0 amappl9 144 339 0 338 1 0 1 1 0 8 0 amappl8 136 967 0 808 6 0 6 6 0 8 0 amappl7 128 130 0 117 1 0 1 1 0 8 0 amappl6 120 704 0 676 2 1 1 2 0 8 0 amappl5 112 903 0 893 1 0 1 1 0 8 0 amappl4 104 1267 0 1223 3 1 2 3 0 8 0 amappl3 96 150528 0 150449 5 2 3 3 0 8 0 amappl2 88 26244 0 26178 3 1 2 3 0 8 0 amappl1 80 101955 0 101446 23 11 12 22 0 8 0 amappl 88 239641 0 239400 7 0 7 7 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 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 25465 0 25439 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 25465 0 25439 1 0 1 1 0 8 0 vmmpekpl 168 187888 0 187835 4 0 4 4 0 8 0 vmmpepl 168 1492229 0 1489891 402 273 129 141 0 357 0 vmsppl 368 25464 0 25439 3 0 3 3 0 8 0 rwobjpl 24 356329 0 346887 64 6 58 58 0 8 0 pdppl 4096 50936 0 50878 1148 1084 64 70 0 8 6 pvpl 32 6389199 0 6369266 703 524 179 360 0 265 0 pmappl 216 25464 0 25439 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3862 0 2942 32 5 27 28 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278b4c2) at panic+0x165 sys/kern/subr_prf.c:198 ufs_rename(ffff80002e896a58) at ufs_rename+0x15b1 sys/ufs/ufs/ufs_vnops.c:908 VOP_RENAME(fffffd80719ca8d0,fffffd8074666948,ffff80002e896c28,fffffd80719ca8d0,0,ffff80002e896b78) at VOP_RENAME+0xf4 sys/kern/vfs_vops.c:370 dorenameat(ffff800021687aa0,ffffff9c,20000180,ffffff9c,20000080) at dorenameat+0x2a0 sys/kern/vfs_syscalls.c:2994 syscall(ffff80002e896dc0) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35fba16410, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278b4c2) at panic+0x165 sys/kern/subr_prf.c:198 ufs_rename(ffff80002e896a58) at ufs_rename+0x15b1 sys/ufs/ufs/ufs_vnops.c:908 VOP_RENAME(fffffd80719ca8d0,fffffd8074666948,ffff80002e896c28,fffffd80719ca8d0,0,ffff80002e896b78) at VOP_RENAME+0xf4 sys/kern/vfs_vops.c:370 dorenameat(ffff800021687aa0,ffffff9c,20000180,ffffff9c,20000080) at dorenameat+0x2a0 sys/kern/vfs_syscalls.c:2994 syscall(ffff80002e896dc0) at syscall+0x4a8 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x35fba16410, count: -7