creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd. /etc/rc.local[5]: syntax error: `(' unexpected starting local daemons:. Tue Dec 28 13:26:13 PST 2021 OpenBSD/amd64 (worker.my.domain) (tty00) Warning: Permanently added '10.128.0.92' (ED25519) to the list of known hosts. 2021/12/28 13:29:16 parsed 1 programs 2021/12/28 13:29:20 executed programs: 0 login: panic: ufs_rename: lost dir entry Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 71894 21511 0 0 0 0 syz-executor.3 *124829 21511 0 0 0x4000000 1K syz-executor.3 db_enter() at db_enter+0x18 panic(ffffffff8245df3b) at panic+0x177 ufs_rename(ffff8000212d9ba8) at ufs_rename+0x15b1 VOP_RENAME(fffffd8070471420,fffffd8070471880,ffff8000212d9d78,fffffd8070471420,0,ffff8000212d9cc8) at VOP_RENAME+0xf0 dorenameat(ffff800021296548,ffffff9c,200000c0,ffffff9c,20000100) at dorenameat+0x29c syscall(ffff8000212d9f10) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x300285b0400, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: ufs_rename: lost dir entry ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff8245df3b) at panic+0x177 ufs_rename(ffff8000212d9ba8) at ufs_rename+0x15b1 VOP_RENAME(fffffd8070471420,fffffd8070471880,ffff8000212d9d78,fffffd8070471420,0,ffff8000212d9cc8) at VOP_RENAME+0xf0 dorenameat(ffff800021296548,ffffff9c,200000c0,ffffff9c,20000100) at dorenameat+0x29c syscall(ffff8000212d9f10) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x300285b0400, count: -7 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000212d9930 rbx 0xffff800020d39bff rdx 0x3fd rcx 0 rax 0x22 r8 0x101010101010101 r9 0x8080808080808080 r10 0x623674457ca9b233 r11 0xe4d26e5007970998 r12 0xffff800020d39a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81410c88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000212d9920 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.3) pid=124829 stat=onproc flags process=0 proc=4000000 pri=17, usrpri=57, nice=20 forw=0xffffffffffffffff, list=0xffff800021296d28,0xffff8000212967f8 process=0xffff8000ffff90a8 user=0xffff8000212d4000, vmspace=0xfffffd807ca03010 estcpu=7, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21442 359818 71008 0 2 0 syz-executor.1 21442 512453 71008 0 3 0x4000080 fsleep syz-executor.1 21442 8443 71008 0 2 0x4000000 syz-executor.1 59696 768 81484 0 3 0x80 nanoslp syz-executor.0 59696 89877 81484 0 3 0x4000080 fsleep syz-executor.0 59696 336899 81484 0 3 0x4000080 fsleep syz-executor.0 21511 71894 99120 0 7 0 syz-executor.3 *21511 124829 99120 0 7 0x4000000 syz-executor.3 21511 111332 99120 0 3 0x4000080 fsleep syz-executor.3 21511 511594 99120 0 2 0x4000000 syz-executor.3 71008 301347 47767 0 3 0x82 nanoslp syz-executor.1 99120 300990 47767 0 3 0x82 nanoslp syz-executor.3 91008 50441 47767 0 3 0x2 biowait syz-executor.2 81484 276560 47767 0 3 0x82 nanoslp syz-executor.0 47767 295683 76651 0 3 0x82 thrsleep syz-execprog 47767 323941 76651 0 3 0x4000082 thrsleep syz-execprog 47767 325075 76651 0 3 0x4000082 kqread syz-execprog 47767 298850 76651 0 3 0x4000082 thrsleep syz-execprog 47767 227569 76651 0 3 0x4000082 thrsleep syz-execprog 47767 361649 76651 0 3 0x4000082 thrsleep syz-execprog 47767 373477 76651 0 3 0x4000082 thrsleep syz-execprog 47767 231908 76651 0 3 0x4000082 thrsleep syz-execprog 47767 167094 76651 0 3 0x4000082 thrsleep syz-execprog 76651 206206 62595 0 3 0x10008a sigsusp ksh 62595 470592 95685 0 3 0x9a poll sshd 29384 8111 1 0 3 0x100083 ttyin getty 95685 269129 1 0 3 0x88 poll sshd 24993 416763 91201 74 3 0x100092 bpf pflogd 91201 322246 1 0 3 0x80 netio pflogd 13004 388384 86254 73 3 0x100090 kqread syslogd 86254 493927 1 0 3 0x100082 netio syslogd 40603 251438 1 0 3 0x100080 kqread resolvd 37011 241940 86012 77 3 0x100092 kqread dhcpleased 71809 417687 86012 77 3 0x100092 kqread dhcpleased 86012 209373 1 0 3 0x80 kqread dhcpleased 48155 506678 0 0 3 0x14200 bored smr 18062 306712 0 0 2 0x14200 zerothread 71569 438472 0 0 3 0x14200 aiodoned aiodoned 90636 290910 0 0 3 0x14200 syncer update 82375 100504 0 0 3 0x14200 cleaner cleaner 31138 387696 0 0 3 0x14200 reaper reaper 14512 157048 0 0 3 0x14200 pgdaemon pagedaemon 74900 324291 0 0 3 0x14200 bored viomb 8634 455552 0 0 3 0x40014200 acpi0 acpi0 43012 319802 0 0 3 0x40014200 idle1 60316 409450 0 0 3 0x14200 bored softnet 4236 298869 0 0 3 0x14200 bored systqmp 49923 509307 0 0 3 0x14200 bored systq 76801 249124 0 0 3 0x40014200 bored softclock 6173 408144 0 0 3 0x40014200 idle0 1 248446 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 21511 (syz-executor.3) thread 0xffff800021296548 (124829) exclusive rrwlock inode r = 0 (0xfffffd80704da5f8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vget+0x1d3 #6 ufs_ihashget+0x121 #7 ffs_vget+0x7c #8 ufs_lookup+0x13ba #9 VOP_LOOKUP+0x58 #10 vfs_relookup+0xb0 #11 ufs_rename+0x13c4 #12 VOP_RENAME+0xf0 #13 dorenameat+0x29c #14 syscall+0x489 #15 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80704da4e8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_relookup+0x53 #6 ufs_rename+0x13c4 #7 VOP_RENAME+0xf0 #8 dorenameat+0x29c #9 syscall+0x489 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82993908) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 #2 mi_switch+0x3d3 #3 sleep_finish+0x1b2 #4 tsleep+0x12c #5 biowait+0x91 #6 bwrite+0x21b #7 VOP_BWRITE+0x4a #8 ufs_direnter+0x8fa #9 ufs_rename+0xb70 #10 VOP_RENAME+0xf0 #11 dorenameat+0x29c #12 syscall+0x489 #13 Xsyscall+0x128 Process 21511 (syz-executor.3) thread 0xffff8000212962a8 (511594) exclusive rwlock futex r = 0 (0xffffffff827a19e0) #0 witness_lock+0x44d #1 sys_futex+0x5c #2 syscall+0x489 #3 Xsyscall+0x128 Process 91008 (syz-executor.2) thread 0xffff80002123d500 (50441) exclusive rrwlock inode r = 0 (0xfffffd80704da0a8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vget+0x1d3 #6 ufs_ihashget+0x121 #7 ffs_vget+0x7c #8 ufs_lookup+0x13ba #9 VOP_LOOKUP+0x58 #10 vfs_lookup+0x6e5 #11 namei+0x36a #12 dounlinkat+0x99 #13 syscall+0x489 #14 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80704da3d8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vget+0x1d3 #6 cache_lookup+0x2b4 #7 ufs_lookup+0x1ac #8 VOP_LOOKUP+0x58 #9 vfs_lookup+0x6e5 #10 namei+0x36a #11 dounlinkat+0x99 #12 syscall+0x489 #13 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10156 6463K 6463K 78643K 11246 0 pcb 13 8K 8K 78643K 13 0 rtable 150 4K 4K 78643K 232 0 ifaddr 58 13K 13K 78643K 60 0 counters 48 34K 34K 78643K 48 0 ioctlops 0 0K 4K 78643K 1483 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1179 74K 74K 78643K 1184 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 9 29K 49K 78643K 187 0 proc 67 87K 111K 78643K 393 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 55 3K 3K 78643K 55 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 453 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 7 26K 26K 78643K 7 0 UVM amap 198 40K 41K 78643K 3581 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 8 0K 1K 78643K 16 0 temp 41 4186K 4250K 78643K 3941 0 kqueue 10 14K 14K 78643K 10 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 25 0 22 1 0 1 1 0 8 0 rtentry 112 67 0 1 2 0 2 2 0 8 0 unpcb 136 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 2 0 1 0 8 0 tcpcb 736 7 0 4 1 0 1 1 0 8 0 arp 120 10 0 0 1 0 1 1 0 8 0 inpcb 304 45 0 39 1 0 1 1 0 8 0 nd6 48 12 0 0 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 11 0 4 2 1 1 1 0 8 0 pfstkey 112 11 0 4 2 1 1 1 0 8 0 pfstate 320 11 0 4 2 1 1 1 0 8 0 pfrule 1360 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 276 0 0 18 0 18 18 0 8 0 art_table 32 277 0 0 3 0 3 3 0 8 0 art_node 16 66 0 6 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1910 0 488 90 0 90 90 0 8 0 ffsino 272 1910 0 488 96 0 96 96 0 8 0 nchpl 144 2260 0 637 61 0 61 61 0 8 0 uvmvnodes 80 1920 0 0 40 0 40 40 0 8 0 vnodes 224 1920 0 0 113 0 113 113 0 8 0 namei 1024 6786 0 6784 3 2 1 1 0 8 0 percpumem 16 36 0 0 1 0 1 1 0 8 0 scxspl 216 8205 0 8204 16 15 1 8 0 8 0 plimitpl 152 20 0 9 1 0 1 1 0 8 0 sigapl 424 429 0 393 5 0 5 5 0 8 0 futexpl 64 1175 0 1170 1 0 1 1 0 8 0 knotepl 112 66 0 0 2 0 2 2 0 8 0 kqueuepl 216 6 0 0 1 0 1 1 0 8 0 pipepl 336 93 0 77 3 1 2 2 0 8 0 fdescpl 496 415 0 393 4 0 4 4 0 8 1 filepl 152 1624 0 1523 4 0 4 4 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 22 0 9 1 0 1 1 0 8 0 pgrppl 48 22 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 410 0 410 3 2 1 1 0 8 1 processpl 1064 429 0 393 3 0 3 3 0 8 0 procpl 672 579 0 528 5 0 5 5 0 8 0 sockpl 480 105 0 81 5 1 4 4 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 62 0 0 8 0 8 8 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 202 0 0 12 0 12 12 0 8 0 bufpl 288 3985 0 134 276 0 276 276 0 8 0 anonpl 24 74144 0 68951 36 3 33 33 0 186 1 amapchunkpl 152 8057 0 7611 21 2 19 19 0 158 1 amappl16 200 454 0 375 5 0 5 5 0 8 0 amappl15 192 75 0 72 1 0 1 1 0 8 0 amappl14 184 37 0 35 1 0 1 1 0 8 0 amappl13 176 72 0 70 1 0 1 1 0 8 0 amappl12 168 18 0 16 2 1 1 1 0 8 0 amappl11 160 52 0 36 1 0 1 1 0 8 0 amappl10 152 61 0 53 1 0 1 1 0 8 0 amappl9 144 481 0 477 1 0 1 1 0 8 0 amappl8 136 340 0 319 2 1 1 1 0 8 0 amappl7 128 76 0 69 1 0 1 1 0 8 0 amappl6 120 209 0 190 1 0 1 1 0 8 0 amappl5 112 259 0 241 1 0 1 1 0 8 0 amappl4 104 660 0 633 1 0 1 1 0 8 0 amappl3 96 162 0 147 1 0 1 1 0 8 0 amappl2 88 410 0 370 2 1 1 2 0 8 0 amappl1 80 10760 0 10243 15 3 12 13 0 8 1 amappl 88 3255 0 3099 4 0 4 4 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 415 0 393 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 415 0 393 1 0 1 1 0 8 0 vmmpekpl 168 7760 0 7737 2 0 2 2 0 8 0 vmmpepl 168 38691 0 37202 76 7 69 69 0 357 1 vmsppl 368 414 0 393 3 0 3 3 0 8 0 rwobjpl 56 12838 0 10051 41 1 40 40 0 8 0 pdppl 4096 838 0 786 76 22 54 62 0 8 2 pvpl 32 217957 0 209452 146 75 71 140 0 265 1 pmappl 248 414 0 393 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 597 0 28 17 0 17 17 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff827f3ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82993700) at __mp_lock+0x122 intr_handler(ffff8000212d32b0,ffff80000004ad00) at intr_handler+0x5e Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x4f Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff5740, count: 7 ddb{0}> trace x86_ipi_db(ffffffff827f3ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82993700) at __mp_lock+0x122 intr_handler(ffff8000212d32b0,ffff80000004ad00) at intr_handler+0x5e Xintr_ioapic_edge21_untramp() at Xintr_ioapic_edge21_untramp+0x18f __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x4f Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff5740, count: -8 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 panic(ffffffff8245df3b) at panic+0x177 ufs_rename(ffff8000212d9ba8) at ufs_rename+0x15b1 VOP_RENAME(fffffd8070471420,fffffd8070471880,ffff8000212d9d78,fffffd8070471420,0,ffff8000212d9cc8) at VOP_RENAME+0xf0 dorenameat(ffff800021296548,ffffff9c,200000c0,ffffff9c,20000100) at dorenameat+0x29c syscall(ffff8000212d9f10) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x300285b0400, count: 8 ddb{1}> trace db_enter() at db_enter+0x18 panic(ffffffff8245df3b) at panic+0x177 ufs_rename(ffff8000212d9ba8) at ufs_rename+0x15b1 VOP_RENAME(fffffd8070471420,fffffd8070471880,ffff8000212d9d78,fffffd8070471420,0,ffff8000212d9cc8) at VOP_RENAME+0xf0 dorenameat(ffff800021296548,ffffff9c,200000c0,ffffff9c,20000100) at dorenameat+0x29c syscall(ffff8000212d9f10) at syscall+0x489 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x300285b0400, count: -7