./file0/dev/bpf κΟpanic: ufs_rename: lost dir entry Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *303215 79687 0 0 0x4000000 0 syz-executor db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff82fc2b03) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327d56e8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807d4c6ca8,fffffd807b2e77a0,ffff8000327d58b8,fffffd807b2e7878,0,ffff8000327d5808) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a54c048,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3022 syscall(ffff8000327d5a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8cdb9420890, 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(ffffffff82fc2b03) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327d56e8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807d4c6ca8,fffffd807b2e77a0,ffff8000327d58b8,fffffd807b2e7878,0,ffff8000327d5808) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a54c048,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3022 syscall(ffff8000327d5a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8cdb9420890, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000327d5470 rbx 0xfffffd807b2e7878 rdx 0 rcx 0 rax 0xffff80002a54c048 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7caaa59cd690aa4f r11 0xc655c452e14cbbfc r12 0 r13 0xfffffd8075a42a50 r14 0 r15 0x1 rip 0xffffffff81b323e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff8000327d5460 ss 0 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor) tid=303215 pid=79687 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=0xffff80002a54d488,0xffff80002a54d210 process=0xffff80002a4659b8 user=0xffff8000327d0000, vmspace=0xfffffd806b841578 estcpu=34, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 47745 185248 24746 0 3 0 futex syz-executor 47745 506625 24746 0 3 0x4000080 fsleep syz-executor 86658 395273 32913 0 3 0 futex syz-executor 86658 40538 32913 0 3 0x4000080 fsleep syz-executor 86658 499731 32913 0 3 0x4000080 fsleep syz-executor 40860 240412 21262 0 2 0 syz-executor 40860 250494 21262 0 3 0x4000000 futex syz-executor 40860 521834 21262 0 3 0x4000080 fsleep syz-executor 47117 410417 56876 0 3 0 futex syz-executor 47117 123086 56876 0 3 0x4000080 fsleep syz-executor 47117 247962 56876 0 2 0x4000000 syz-executor 47117 296458 56876 0 3 0x4000080 fsleep syz-executor 79687 204113 87858 0 3 0x80 nanoslp syz-executor 79687 458128 87858 0 2 0x4000000 syz-executor *79687 303215 87858 0 7 0x4000000 syz-executor 79687 40290 87858 0 3 0x4000080 fsleep syz-executor 89042 268746 11048 0 2 0x11 syz-executor 89042 251668 11048 0 3 0x4000010 futex syz-executor 89042 62873 11048 0 3 0x4000090 fsleep syz-executor 56876 258028 50142 0 3 0x82 nanoslp syz-executor 24746 152923 50142 0 2 0x482 syz-executor 32913 400836 50142 0 2 0x482 syz-executor 81555 145813 50142 0 2 0x2 syz-executor 21262 502483 50142 0 3 0x82 nanoslp syz-executor 11048 478097 50142 0 2 0x482 syz-executor 87858 66123 50142 0 3 0x82 nanoslp syz-executor 37300 316234 50142 0 2 0x2 syz-executor 45539 108036 1 0 3 0x100083 ttyopn getty 20028 201497 0 0 3 0x14200 bored sosplice 50142 302795 98281 0 3 0x82 kqread syz-executor 98281 379200 39640 0 3 0x10008a sigsusp ksh 39640 216583 67608 0 3 0x98 kqread sshd-session 67608 522586 62472 0 3 0x92 kqread sshd-session 62472 512597 1 0 3 0x88 kqread sshd 14896 297236 7891 73 2 0x1100010 syslogd 7891 477723 1 0 3 0x100082 sbwait syslogd 84264 326818 1 0 3 0x100080 kqread resolvd 19607 519586 41744 77 3 0x100092 kqread dhcpleased 20053 245464 41744 77 3 0x100092 kqread dhcpleased 41744 330744 1 0 3 0x80 kqread dhcpleased 23889 277757 0 0 3 0x14200 bored smr 46726 421849 0 0 2 0x14200 zerothread 90432 484540 0 0 3 0x14200 aiodoned aiodoned 19244 279003 0 0 3 0x14200 syncer update 4546 436711 0 0 3 0x14200 cleaner cleaner 29916 205593 0 0 3 0x14200 reaper reaper 73037 74679 0 0 3 0x14200 pgdaemon pagedaemon 78920 344178 0 0 3 0x14200 bored viomb 25474 354966 0 0 3 0x40014200 acpi0 acpi0 50085 281888 0 0 3 0x14200 bored softnet3 3670 520127 0 0 3 0x14200 bored softnet2 82579 502931 0 0 3 0x14200 bored softnet1 61098 90742 0 0 3 0x14200 bored softnet0 69414 271982 0 0 3 0x14200 bored systqmp 73834 143385 0 0 3 0x14200 bored systq 50092 70191 0 0 3 0x40014200 tmoslp softclock 50988 134578 0 0 3 0x40014200 idle0 1 521672 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 10222 10123K 10432K 166960K 16017 0 pcb 18 22K 25K 166960K 1243 0 rtable 220 10K 10K 166960K 9878 0 pf 44 15K 23K 166960K 809 0 ifaddr 45 11K 13K 166960K 1337 0 ifgroup 64 2K 2K 166960K 1452 0 sysctl 4 1K 3K 166960K 16 0 counters 34 18K 18K 166960K 390 0 ioctlops 0 0K 4K 166960K 953 0 iov 0 0K 42K 166960K 384 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1465 92K 92K 166960K 8691 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 68K 76K 166960K 89 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 264 0 dirhash 15 2K 3K 166960K 66 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 97K 166960K 9335 0 sigio 0 0K 0K 166960K 100 0 proc 62 67K 124K 166960K 9480 0 subproc 104 6K 7K 166960K 4059 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 975 0 in_multi 80 6K 7K 166960K 3533 0 ether_multi 1 0K 0K 166960K 41 0 mrt 1 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 4931 0 pfkey data 0 0K 0K 166960K 69 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 228 72K 106K 166960K 71043 0 UVM aobj 177 4K 6K 166960K 184 0 pinsyscall 37 74K 98K 166960K 18286 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 299 0 NDP 15 0K 2K 166960K 995 0 temp 77 6816K 6956K 166960K 278316 0 kqueue 14 22K 30K 166960K 711 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 1219 0 1216 9 6 3 3 0 8 2 rtentry 112 3560 0 3465 4 1 3 4 0 8 0 unpcb 144 4952 0 4936 14 8 6 6 0 8 5 syncache 336 11 0 11 4 4 0 1 0 8 0 tcpqe 32 4 0 4 2 2 0 1 0 8 0 tcpcb 808 1824 0 1820 32 30 2 14 0 8 1 arp 88 653 0 633 1 0 1 1 0 8 0 ipq 40 24 0 24 3 2 1 1 0 8 1 ipqe 40 324 0 324 3 2 1 1 0 8 1 inpcb 336 7462 0 7438 52 44 8 13 0 8 5 nd6 104 967 0 946 1 0 1 1 0 8 0 pkpcb 40 35 0 35 6 5 1 1 0 8 1 kcovpl 48 312 0 304 1 0 1 1 0 8 0 ppxss 1072 30 0 29 5 4 1 1 0 8 0 pfstscr 40 21 0 21 3 3 0 1 0 8 0 pfosfp 40 36 0 35 2 1 1 1 0 8 0 pfosfpen 112 36 0 34 2 1 1 1 0 8 0 pfrktable 1344 3 0 1 1 0 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfqueue 264 1 0 1 1 1 0 1 0 8 0 pfstitem 24 22 0 16 1 0 1 1 0 8 0 pfstkey 128 113 0 93 1 0 1 1 0 8 0 pfstate 344 63 0 60 1 0 1 1 0 8 0 pfrule 1344 26 0 16 1 0 1 1 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 14066 0 13714 45 20 25 29 0 8 3 art_table 32 14068 0 13715 4 0 4 4 0 8 0 art_node 16 3557 0 3478 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 5 1 0 1 1 0 8 0 semapl 112 260 0 250 1 0 1 1 0 8 0 shmpl 112 181 0 7 5 0 5 5 0 8 0 dirhash 1024 56 0 35 4 1 3 4 0 8 0 dino2pl 256 10461 0 8371 132 0 132 132 0 8 0 ffsino 240 10461 0 8371 124 0 124 124 0 8 0 nchpl 144 17474 0 15404 77 0 77 77 0 8 0 uvmvnodes 80 8169 0 0 167 0 167 167 0 8 0 vnodes 216 8169 0 0 454 0 454 454 0 8 0 namei 1024 85029 0 85025 11 6 5 5 0 8 4 pfiaddrpl 120 1 0 0 1 0 1 1 0 8 0 kstatmem 264 742 0 712 3 0 3 3 0 8 0 scsiplug 72 5 0 5 5 4 1 1 0 8 1 scxspl 216 176392 0 176392 15 13 2 8 1 8 2 plimitpl 152 1463 0 1444 1 0 1 1 0 8 0 sigapl 424 9038 0 8993 9 3 6 8 0 8 0 futexpl 64 68129 0 68120 2 1 1 1 0 8 0 knotepl 120 179411 0 179364 60 50 10 17 0 8 8 kqueuepl 184 1295 0 1285 10 9 1 6 0 8 0 pipepl 288 1470 0 1443 3 0 3 3 0 8 0 fdescpl 432 8997 0 8969 5 1 4 5 0 8 0 filepl 120 44869 0 44620 34 20 14 16 0 8 4 lockfpl 104 2063 0 2061 4 3 1 2 0 8 0 lockfspl 48 710 0 708 1 0 1 1 0 8 0 sessionpl 144 331 0 323 1 0 1 1 0 8 0 pgrppl 48 682 0 666 1 0 1 1 0 8 0 ucredpl 104 6961 0 6949 1 0 1 1 0 8 0 zombiepl 144 11139 0 11139 7 6 1 1 0 8 1 processpl 1096 9038 0 8993 7 3 4 6 0 8 0 procpl 648 17031 0 16973 10 4 6 8 0 8 0 sosppl 168 24 0 24 7 6 1 1 0 8 1 sockpl 504 13767 0 13724 161 139 22 22 0 8 15 mcl64k 65536 395 0 395 7 6 1 1 0 8 1 mcl16k 16384 150 0 150 7 6 1 1 0 8 1 mcl12k 12288 78 0 78 6 5 1 1 0 8 1 mcl9k 9216 30 0 30 5 5 0 1 0 8 0 mcl8k 8192 327 0 327 7 6 1 1 0 8 1 mcl4k 4096 416 0 416 7 6 1 1 0 8 1 mcl2k2 2112 4 0 4 2 2 0 1 0 8 0 mcl2k 2048 24950 0 24852 37 22 15 25 0 8 1 mtagpl 96 50 0 50 6 6 0 1 0 8 0 mbufpl 256 102009 0 101756 591 567 24 282 0 8 5 bufpl 280 22711 0 15262 584 8 576 584 0 8 0 anonpl 24 1064168 0 1060825 174 124 50 78 0 187 4 amapchunkpl 152 226717 0 226222 129 97 32 43 0 158 10 amappl16 200 14012 0 13994 124 122 2 25 0 8 0 amappl15 192 22 0 22 2 2 0 1 0 8 0 amappl14 184 724 0 714 1 0 1 1 0 8 0 amappl13 176 18 0 18 4 3 1 1 0 8 1 amappl12 168 14446 0 14418 3 1 2 3 0 8 0 amappl11 160 50 0 39 1 0 1 1 0 8 0 amappl10 152 24 0 24 1 1 0 1 0 8 0 amappl9 144 127 0 127 1 1 0 1 0 8 0 amappl8 136 38 0 37 1 0 1 1 0 8 0 amappl7 128 717 0 705 1 0 1 1 0 8 0 amappl6 120 3258 0 3256 1 0 1 1 0 8 0 amappl5 112 1348 0 1339 1 0 1 1 0 8 0 amappl4 104 1218 0 1200 1 0 1 1 0 8 0 amappl3 96 39291 0 39191 3 0 3 3 0 8 0 amappl2 88 9872 0 9799 2 0 2 2 0 8 0 amappl1 80 53596 0 53059 17 4 13 13 0 8 0 amappl 88 68264 0 68091 6 1 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 0 8 0 dma8192 8192 3 0 3 2 2 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma2048 2048 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 8 0 8 2 2 0 1 0 8 0 dma128 128 254 0 254 2 2 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 183 0 7 4 0 4 4 0 8 0 uaddrrnd 24 8997 0 8969 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8997 0 8969 1 0 1 1 0 8 0 vmmpekpl 168 70781 0 70730 4 0 4 4 0 8 0 vmmpepl 168 538162 0 536429 139 58 81 96 0 357 0 vmsppl 344 8996 0 8969 4 1 3 4 0 8 0 rwobjpl 24 147115 0 137892 58 0 58 58 0 8 0 pdppl 4096 18001 0 17938 597 528 69 83 0 8 6 pvpl 32 4207606 0 4197567 1020 805 215 359 0 265 105 pmappl 216 8996 0 8969 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1832 0 1394 20 5 15 20 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(ffffffff82fc2b03) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327d56e8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807d4c6ca8,fffffd807b2e77a0,ffff8000327d58b8,fffffd807b2e7878,0,ffff8000327d5808) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a54c048,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3022 syscall(ffff8000327d5a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8cdb9420890, 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(ffffffff82fc2b03) at panic+0x1cf sys/kern/subr_prf.c:198 ufs_rename(ffff8000327d56e8) at ufs_rename+0x18b2 VOP_RENAME(fffffd807d4c6ca8,fffffd807b2e77a0,ffff8000327d58b8,fffffd807b2e7878,0,ffff8000327d5808) at VOP_RENAME+0x13c sys/kern/vfs_vops.c:376 dorenameat(ffff80002a54c048,ffffff9c,20000540,ffffff9c,200005c0) at dorenameat+0x3f8 sys/kern/vfs_syscalls.c:3022 syscall(ffff8000327d5a50) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x8cdb9420890, count: -7