Warning: Permanently added '10.128.1.245' (ED25519) to the list of known hosts. 2024/11/11 23:09:53 ignoring optional flag "sandboxArg"="0" 2024/11/11 23:09:53 ignoring optional flag "type"="gce" 2024/11/11 23:09:53 parsed 1 programs 2024/11/11 23:09:54 executed programs: 0 panic: ufsdirhash_lookup: bad offset in hash array Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *176976 66157 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x25 panic(ffffffff8307ad73) at panic+0x1cf ufsdirhash_lookup(fffffd80692c9b40,ffff80002a47bc00,1,fffffd80692c9bec,ffff80002a562a60,ffff80002a562a78) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd80689f9cf0,ffff80002a562db8,ffff80002a562de8) at VOP_LOOKUP+0x6e vfs_lookup(ffff80002a562d88) at vfs_lookup+0x8e1 namei(ffff80002a562d88) at namei+0x7aa dorenameat(ffff80002a502f50,4,200000c0,3,0) at dorenameat+0x91 syscall(ffff80002a562f80) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeab71971700, count: 5 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: ufsdirhash_lookup: bad offset in hash array ddb> trace db_enter() at db_enter+0x25 panic(ffffffff8307ad73) at panic+0x1cf ufsdirhash_lookup(fffffd80692c9b40,ffff80002a47bc00,1,fffffd80692c9bec,ffff80002a562a60,ffff80002a562a78) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd80689f9cf0,ffff80002a562db8,ffff80002a562de8) at VOP_LOOKUP+0x6e vfs_lookup(ffff80002a562d88) at vfs_lookup+0x8e1 namei(ffff80002a562d88) at namei+0x7aa dorenameat(ffff80002a502f50,4,200000c0,3,0) at dorenameat+0x91 syscall(ffff80002a562f80) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeab71971700, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a562880 rbx 0xffff800000b4b8a0 rdx 0x3fd rcx 0 rax 0x33 r8 0x101010101010101 r9 0x8080808080808080 r10 0x8b119835c8db9c29 r11 0x8a7ea93c99acd6b5 r12 0 r13 0xffff80000125fe00 r14 0 r15 0x1 rip 0xffffffff81e8e5f5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a562870 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=176976 pid=66157 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a503970,0xffffffff8350e678 process=0xffff8000ffffa250 user=0xffff80002a55e000, vmspace=0xfffffd8007c32c60 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66157 319977 2604 0 2 0 syz-executor.0 *66157 176976 2604 0 7 0x4000000 syz-executor.0 2604 215294 82363 0 3 0x82 nanoslp syz-executor.0 82363 192690 10580 0 3 0x82 thrsleep syz-execprog 82363 381855 10580 0 3 0x4000082 thrsleep syz-execprog 82363 61882 10580 0 3 0x4000082 thrsleep syz-execprog 82363 452840 10580 0 3 0x4000082 thrsleep syz-execprog 82363 508778 10580 0 3 0x4000082 thrsleep syz-execprog 82363 459293 10580 0 3 0x4000082 kqread syz-execprog 82363 340900 10580 0 3 0x4000082 thrsleep syz-execprog 82363 87936 10580 0 3 0x4000082 wait syz-execprog 82363 55969 10580 0 3 0x4000082 thrsleep syz-execprog 82363 397155 10580 0 3 0x4000082 thrsleep syz-execprog 10580 380632 27251 0 3 0x10008a sigsusp ksh 27251 285103 40660 0 3 0x98 kqread sshd-session 40660 856 15554 0 3 0x92 kqread sshd-session 76687 271859 1 0 3 0x100083 ttyin getty 15554 476416 1 0 3 0x88 kqread sshd 14168 225580 59656 73 3 0x1100090 kqread syslogd 59656 213253 1 0 3 0x100082 sbwait syslogd 6974 161326 1 0 3 0x100080 kqread resolvd 8712 14121 73448 77 3 0x100092 kqread dhcpleased 56810 131071 73448 77 3 0x100092 kqread dhcpleased 73448 382254 1 0 3 0x80 kqread dhcpleased 80283 314014 0 0 3 0x14200 bored smr 18997 160838 0 0 2 0x14200 zerothread 99830 172940 0 0 3 0x14200 aiodoned aiodoned 21169 179876 0 0 3 0x14200 syncer update 7566 55411 0 0 3 0x14200 cleaner cleaner 11876 522526 0 0 3 0x14200 reaper reaper 43694 440851 0 0 3 0x14200 pgdaemon pagedaemon 36478 159177 0 0 3 0x14200 bored viomb 85463 12720 0 0 3 0x40014200 acpi0 acpi0 37190 404583 0 0 3 0x14200 bored softnet3 35408 197644 0 0 3 0x14200 bored softnet2 98861 31455 0 0 3 0x14200 bored softnet1 64288 436845 0 0 3 0x14200 bored softnet0 68048 352052 0 0 3 0x14200 bored systqmp 32704 252987 0 0 3 0x14200 bored systq 98365 491182 0 0 3 0x40014200 tmoslp softclock 91938 393787 0 0 3 0x40014200 idle0 1 494399 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 10142 11023K 11052K 166960K 11223 0 pcb 17 12K 12K 166960K 17 0 rtable 80 2K 2K 166960K 170 0 pf 16 10K 10K 166960K 19 0 ifaddr 14 2K 2K 166960K 18 0 ifgroup 22 1K 1K 166960K 27 0 counters 23 16K 16K 166960K 24 0 ioctlops 0 0K 2K 166960K 23 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1260 79K 79K 166960K 1276 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 21 3K 3K 166960K 21 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 3 8K 12K 166960K 35 0 proc 57 58K 67K 166960K 304 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 22 1K 1K 166960K 33 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 316 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 154 14K 14K 166960K 3565 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 26 52K 104K 166960K 1175 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 6 0K 0K 166960K 9 0 temp 1 6804K 6868K 166960K 3842 0 kqueue 13 20K 20K 166960K 46 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 24 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 12 1 0 1 1 0 8 0 unpcb 144 67 0 52 1 0 1 1 0 8 0 syncache 336 9 0 9 1 0 1 1 0 8 1 tcpcb 808 12 0 9 1 0 1 1 0 8 0 arp 88 6 0 2 1 0 1 1 0 8 0 inpcb 336 38 0 32 1 0 1 1 0 8 0 nd6 104 6 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 193 0 48 10 0 10 10 0 8 0 art_table 32 194 0 48 2 0 2 2 0 8 0 art_node 16 44 0 14 1 0 1 1 0 8 0 dirhash 1024 20 0 0 3 0 3 3 0 8 0 dino2pl 256 1560 0 73 93 0 93 93 0 8 0 ffsino 240 1560 0 73 88 0 88 88 0 8 0 nchpl 144 1824 0 100 64 0 64 64 0 8 0 uvmvnodes 80 1569 0 0 33 0 33 33 0 8 0 vnodes 216 1569 0 0 88 0 88 88 0 8 0 namei 1024 6540 0 6539 3 0 3 3 0 8 2 kstatmem 264 10 0 2 1 0 1 1 0 8 0 scxspl 216 8257 0 8257 8 0 8 8 1 8 8 plimitpl 152 51 0 42 1 0 1 1 0 8 0 sigapl 424 396 0 364 5 0 5 5 0 8 1 futexpl 64 12 0 12 1 0 1 1 0 8 1 knotepl 120 7183 0 7146 2 0 2 2 0 8 0 kqueuepl 184 42 0 33 1 0 1 1 0 8 0 pipepl 288 155 0 148 1 0 1 1 0 8 0 fdescpl 432 380 0 364 4 0 4 4 0 8 2 filepl 120 1818 0 1748 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 27 0 18 1 0 1 1 0 8 0 pgrppl 48 27 0 18 1 0 1 1 0 8 0 ucredpl 104 111 0 100 1 0 1 1 0 8 0 zombiepl 144 364 0 364 1 0 1 1 0 8 1 processpl 1096 396 0 364 4 0 4 4 0 8 1 procpl 648 417 0 375 5 0 5 5 0 8 0 sockpl 504 129 0 105 4 0 4 4 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 11122 0 11065 23 7 16 19 0 8 8 mcl2k 2048 91 0 91 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 15096 0 15025 10 0 10 10 0 8 5 bufpl 280 4320 0 158 298 0 298 298 0 8 0 anonpl 24 367482 0 364024 49 0 49 49 0 187 18 amapchunkpl 152 15000 0 14669 25 0 25 25 0 158 6 amappl16 200 11393 0 11325 5 0 5 5 0 8 1 amappl15 192 40 0 40 1 0 1 1 0 8 1 amappl14 184 239 0 228 2 0 2 2 0 8 1 amappl13 176 26 0 25 1 0 1 1 0 8 0 amappl12 168 957 0 941 2 0 2 2 0 8 1 amappl11 160 66 0 55 1 0 1 1 0 8 0 amappl10 152 63 0 59 1 0 1 1 0 8 0 amappl9 144 364 0 364 1 0 1 1 0 8 1 amappl8 136 125 0 106 1 0 1 1 0 8 0 amappl7 128 203 0 188 2 0 2 2 0 8 1 amappl6 120 251 0 247 1 0 1 1 0 8 0 amappl5 112 175 0 167 1 0 1 1 0 8 0 amappl4 104 479 0 461 2 0 2 2 0 8 1 amappl3 96 4037 0 3993 2 0 2 2 0 8 0 amappl2 88 1111 0 1049 4 0 4 4 0 8 1 amappl1 80 13703 0 13219 26 7 19 23 0 8 8 amappl 88 2895 0 2809 4 0 4 4 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 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 380 0 364 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 380 0 364 1 0 1 1 0 8 0 vmmpekpl 168 10434 0 10409 2 0 2 2 0 8 0 vmmpepl 168 63336 0 62053 115 0 115 115 0 357 54 vmsppl 352 379 0 364 3 0 3 3 0 8 1 rwobjpl 24 32111 0 29779 20 0 20 20 0 8 2 pdppl 4096 767 0 728 107 46 61 63 0 8 22 pvpl 32 687236 0 678942 358 64 294 358 0 265 213 pmappl 216 379 0 364 2 0 2 2 0 8 1 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 351 0 53 9 0 9 9 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff8307ad73) at panic+0x1cf ufsdirhash_lookup(fffffd80692c9b40,ffff80002a47bc00,1,fffffd80692c9bec,ffff80002a562a60,ffff80002a562a78) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd80689f9cf0,ffff80002a562db8,ffff80002a562de8) at VOP_LOOKUP+0x6e vfs_lookup(ffff80002a562d88) at vfs_lookup+0x8e1 namei(ffff80002a562d88) at namei+0x7aa dorenameat(ffff80002a502f50,4,200000c0,3,0) at dorenameat+0x91 syscall(ffff80002a562f80) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeab71971700, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff8307ad73) at panic+0x1cf ufsdirhash_lookup(fffffd80692c9b40,ffff80002a47bc00,1,fffffd80692c9bec,ffff80002a562a60,ffff80002a562a78) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd80689f9cf0,ffff80002a562db8,ffff80002a562de8) at VOP_LOOKUP+0x6e vfs_lookup(ffff80002a562d88) at vfs_lookup+0x8e1 namei(ffff80002a562d88) at namei+0x7aa dorenameat(ffff80002a502f50,4,200000c0,3,0) at dorenameat+0x91 syscall(ffff80002a562f80) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xeab71971700, count: -10