Warning: Permanently added '10.128.0.82' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program panic: ufs_rename: lost dir entry Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *163990 51784 0 0 0x4000000 0K syz-executor3149868626 66019 75436 0 0 0 1 syz-executor3149868626 db_enter() at db_enter+0x1c panic(ffffffff82877afb) at panic+0x17b ufs_rename(ffff80002a26e8b8) at ufs_rename+0x1412 VOP_RENAME(fffffd806d426298,fffffd806d426010,ffff80002a26ea88,fffffd806d426520,0,ffff80002a26e9d8) at VOP_RENAME+0xf4 dorenameat(ffff80002a1e9d68,ffffff9c,200001c0,ffffff9c,20000200) at dorenameat+0x2a0 syscall(ffff80002a26ec20) at syscall+0x533 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1c062d5050, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: ufs_rename: lost dir entry ddb{0}> trace db_enter() at db_enter+0x1c panic(ffffffff82877afb) at panic+0x17b ufs_rename(ffff80002a26e8b8) at ufs_rename+0x1412 VOP_RENAME(fffffd806d426298,fffffd806d426010,ffff80002a26ea88,fffffd806d426520,0,ffff80002a26e9d8) at VOP_RENAME+0xf4 dorenameat(ffff80002a1e9d68,ffffff9c,200001c0,ffffff9c,20000200) at dorenameat+0x2a0 syscall(ffff80002a26ec20) at syscall+0x533 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1c062d5050, count: -7 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a26e630 rbx 0xffffffff82ce8cb7 cpu_info_full_primary+0x2cb7 rdx 0x3fd rcx 0 rax 0x22 r8 0x101010101010101 r9 0x8080808080808080 r10 0x93969e77efad07f r11 0xa637d7a1fb6b7f8f r12 0xffffffff82ce8ab8 cpu_info_full_primary+0x2ab8 r13 0 r14 0 r15 0x1 rip 0xffffffff8159ce2c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a26e620 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor3149868626) tid=163990 pid=51784 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=17, usrpri=54, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a1ea010,0xffff80002a1e9828 process=0xffff8000ffff2398 user=0xffff80002a269000, vmspace=0xfffffd807e5df398 estcpu=4, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 340 511542 58384 0 2 0 syz-executor3149868626 340 115596 58384 0 3 0x4000000 inode syz-executor3149868626 60662 404950 46135 0 2 0 syz-executor3149868626 60662 264957 46135 0 3 0x4000080 fsleep syz-executor3149868626 20328 368281 44470 0 2 0 syz-executor3149868626 20328 215371 44470 0 3 0x4000000 inode syz-executor3149868626 25154 58023 20374 0 2 0 syz-executor3149868626 25154 247516 20374 0 3 0x4000080 fsleep syz-executor3149868626 58139 90010 61372 0 2 0 syz-executor3149868626 58139 88099 61372 0 3 0x4000080 fsleep syz-executor3149868626 51784 376712 32342 0 2 0 syz-executor3149868626 *51784 163990 32342 0 7 0x4000000 syz-executor3149868626 75436 66019 94914 0 7 0 syz-executor3149868626 75436 469602 94914 0 3 0x4000000 inode syz-executor3149868626 46135 472074 34695 0 3 0x80 nanoslp syz-executor3149868626 61372 465547 34695 0 3 0x80 nanoslp syz-executor3149868626 44470 195578 34695 0 3 0x80 nanoslp syz-executor3149868626 20374 157606 34695 0 3 0x80 nanoslp syz-executor3149868626 94914 441885 34695 0 3 0x80 nanoslp syz-executor3149868626 32342 205514 34695 0 3 0x80 nanoslp syz-executor3149868626 58384 490192 34695 0 3 0x80 nanoslp syz-executor3149868626 52809 200575 58718 0 2 0 syz-executor3149868626 52809 38807 58718 0 2 0x4000000 syz-executor3149868626 58718 21482 34695 0 3 0x80 nanoslp syz-executor3149868626 34695 516948 26473 0 3 0x82 nanoslp syz-executor3149868626 26473 73693 42407 0 3 0x10008a sigsusp ksh 42407 111492 95466 0 3 0x9a kqread sshd 98195 448022 1 0 3 0x100083 ttyin getty 95466 137263 1 0 3 0x88 kqread sshd 39187 235807 294 74 3 0x1100092 bpf pflogd 294 37584 1 0 3 0x80 netio pflogd 77951 233575 85483 73 3 0x1100090 kqread syslogd 85483 405829 1 0 3 0x100082 netio syslogd 28512 229675 1 0 3 0x100080 kqread resolvd 37150 211697 30525 77 3 0x100092 kqread dhcpleased 81851 80263 30525 77 3 0x100092 kqread dhcpleased 30525 373069 1 0 3 0x80 kqread dhcpleased 90033 66290 0 0 3 0x14200 bored smr 39378 125121 0 0 2 0x14200 zerothread 79859 347188 0 0 3 0x14200 aiodoned aiodoned 27106 470445 0 0 3 0x14200 syncer update 23657 277670 0 0 3 0x14200 cleaner cleaner 42853 164780 0 0 3 0x14200 reaper reaper 28719 169768 0 0 3 0x14200 pgdaemon pagedaemon 59762 255153 0 0 3 0x14200 bored viomb 53151 115061 0 0 3 0x40014200 acpi0 acpi0 60130 69372 0 0 3 0x40014200 idle1 18056 501212 0 0 3 0x14200 bored softnet3 55466 147922 0 0 3 0x14200 bored softnet2 49628 80892 0 0 3 0x14200 bored softnet1 9961 454899 0 0 3 0x14200 bored softnet0 20795 380079 0 0 3 0x14200 bored systqmp 99484 437737 0 0 3 0x14200 bored systq 5509 311373 0 0 3 0x14200 tmoslp softclockmp 23631 226000 0 0 3 0x40014200 tmoslp softclock 73594 329053 0 0 3 0x40014200 idle0 1 88570 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 51784 (syz-executor3149868626) thread 0xffff80002a1e9d68 (163990) exclusive rrwlock inode r = 0 (0xfffffd806c835d58) #0 witness_lock+0x447 #1 rw_enter+0x3c8 #2 rrw_enter+0x8c #3 VOP_LOCK+0x8b #4 vn_lock+0x84 #5 vget+0x200 #6 ufs_ihashget+0x121 #7 ffs_vget+0x7c #8 ufs_lookup+0x1323 #9 VOP_LOOKUP+0x5c #10 vfs_relookup+0xb4 #11 ufs_rename+0x120a #12 VOP_RENAME+0xf4 #13 dorenameat+0x2a0 #14 syscall+0x533 #15 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c835f78) #0 witness_lock+0x447 #1 rw_enter+0x3c8 #2 rrw_enter+0x8c #3 VOP_LOCK+0x8b #4 vn_lock+0x84 #5 vfs_relookup+0x57 #6 ufs_rename+0x120a #7 VOP_RENAME+0xf4 #8 dorenameat+0x2a0 #9 syscall+0x533 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d6fc20) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 #2 mi_switch+0x46f #3 sleep_finish+0x19b #4 biowait+0x91 #5 bwrite+0x21c #6 VOP_BWRITE+0x4e #7 ufs_direnter+0x646 #8 ufs_rename+0xb2d #9 VOP_RENAME+0xf4 #10 dorenameat+0x2a0 #11 syscall+0x533 #12 Xsyscall+0x128 Process 52809 (syz-executor3149868626) thread 0xffff80002a19a550 (38807) exclusive rrwlock inode r = 0 (0xfffffd806f2906f8) #0 witness_lock+0x447 #1 rw_enter+0x3c8 #2 rrw_enter+0x8c #3 VOP_LOCK+0x8b #4 vn_lock+0x84 #5 vfs_lookup+0xd5 #6 namei+0x55a #7 dorenameat+0x7f #8 syscall+0x533 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10155 6455K 6455K 166960K 11233 0 pcb 15 10K 10K 166960K 15 0 rtable 58 1K 2K 166960K 108 0 pf 15 6K 10K 166960K 26 0 ifaddr 13 9K 9K 166960K 13 0 ifgroup 22 1K 1K 166960K 22 0 counters 48 34K 34K 166960K 48 0 ioctlops 0 0K 4K 166960K 1475 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1176 74K 74K 166960K 1192 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 1 0K 0K 166960K 1 0 proc 67 91K 91K 166960K 302 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 11 0K 0K 166960K 11 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 260 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 155 7K 7K 166960K 2553 0 UVM aobj 3 2K 2K 166960K 3 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 4 0K 0K 166960K 4 0 temp 1 6692K 6756K 166960K 2991 0 kqueue 11 16K 18K 166960K 24 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 17 0 14 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 320 5 0 5 1 0 1 1 0 8 1 tcpqe 32 143 0 143 1 0 1 1 0 8 1 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 376 33 0 27 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 0 1 0 1 1 0 8 0 pfstate 376 9 0 0 1 0 1 1 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1437 0 39 88 0 88 88 0 8 0 ffsino 272 1437 0 39 94 0 94 94 0 8 0 nchpl 144 1625 0 57 59 0 59 59 0 8 0 uvmvnodes 80 1451 0 0 30 0 30 30 0 8 0 vnodes 216 1451 0 0 81 0 81 81 0 8 0 namei 1024 4868 0 4862 1 0 1 1 0 8 0 percpumem 16 38 0 0 1 0 1 1 0 8 0 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 5111 0 5111 3 1 2 2 1 8 2 plimitpl 152 17 0 10 1 0 1 1 0 8 0 sigapl 424 346 0 297 6 0 6 6 0 8 0 futexpl 64 26 0 23 1 0 1 1 0 8 0 knotepl 120 40 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 91 0 88 1 0 1 1 0 8 0 fdescpl 496 328 0 297 4 0 4 4 0 8 0 filepl 152 1257 0 1199 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 104 71 0 59 1 0 1 1 0 8 0 zombiepl 144 297 0 297 1 0 1 1 0 8 1 processpl 1136 346 0 297 4 0 4 4 0 8 0 procpl 680 355 0 298 5 0 5 5 0 8 0 sockpl 584 85 0 61 2 0 2 2 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 277 0 0 35 0 35 35 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 293 0 0 19 0 19 19 0 8 0 bufpl 280 2480 0 90 171 0 171 171 0 8 0 anonpl 24 185174 0 182828 26 1 25 25 0 186 10 amapchunkpl 152 9093 0 8793 12 0 12 12 0 158 0 amappl16 200 5296 0 5288 5 0 5 5 0 8 4 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 115 0 104 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 0 1 1 0 8 1 amappl12 168 852 0 829 3 1 2 2 0 8 0 amappl11 160 57 0 43 1 0 1 1 0 8 0 amappl10 152 14 0 13 1 0 1 1 0 8 0 amappl9 144 234 0 234 2 1 1 1 0 8 1 amappl8 136 43 0 41 1 0 1 1 0 8 0 amappl7 128 160 0 131 1 0 1 1 0 8 0 amappl6 120 119 0 114 1 0 1 1 0 8 0 amappl5 112 104 0 93 1 0 1 1 0 8 0 amappl4 104 362 0 341 1 0 1 1 0 8 0 amappl3 96 1868 0 1793 3 1 2 2 0 8 0 amappl2 88 611 0 555 2 0 2 2 0 8 0 amappl1 80 9062 0 8547 12 0 12 12 0 8 0 amappl 88 2262 0 2154 3 0 3 3 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 328 0 297 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 328 0 297 1 0 1 1 0 8 0 vmmpekpl 168 7225 0 7209 1 0 1 1 0 8 0 vmmpepl 168 34788 0 33350 63 0 63 63 0 357 0 vmsppl 448 327 0 297 5 1 4 4 0 8 0 rwobjpl 56 18656 0 16412 32 0 32 32 0 8 0 pdppl 4096 663 0 594 83 14 69 69 0 8 0 pvpl 32 6977 0 0 57 0 57 57 0 265 0 pmappl 248 327 0 297 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 348 0 17 10 0 10 10 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c panic(ffffffff82877afb) at panic+0x17b ufs_rename(ffff80002a26e8b8) at ufs_rename+0x1412 VOP_RENAME(fffffd806d426298,fffffd806d426010,ffff80002a26ea88,fffffd806d426520,0,ffff80002a26e9d8) at VOP_RENAME+0xf4 dorenameat(ffff80002a1e9d68,ffffff9c,200001c0,ffffff9c,20000200) at dorenameat+0x2a0 syscall(ffff80002a26ec20) at syscall+0x533 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1c062d5050, count: -7 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800029cfbff0) at x86_ipi_db+0x1e x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7930860f77c0, count: 12 ddb{1}> trace x86_ipi_db(ffff800029cfbff0) at x86_ipi_db+0x1e x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 end of kernel end trace frame: 0x7930860f77c0, count: -3 ddb{1}>