Warning: Permanently added '10.128.1.88' (ED25519) to the list of known hosts. 2024/10/03 15:37:41 ignoring optional flag "sandboxArg"="0" 2024/10/03 15:37:41 ignoring optional flag "type"="gce" 2024/10/03 15:37:41 parsed 1 programs 2024/10/03 15:37:42 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 *484020 7669 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x25 panic(ffffffff8306d5ca) at panic+0x1cf ufsdirhash_lookup(fffffd80694b0a50,ffffffff82fb35ed,2,fffffd80694b0afc,ffff80002a517040,0) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd8068560cf0,ffff80002a5171e8,ffff80002a517188) at VOP_LOOKUP+0x6e unveil_find_cover(fffffd8068560cf0,ffff80002a4a8f48) at unveil_find_cover+0x16d unveil_start_relative(ffff80002a4a8f48,ffff80002a517528,fffffd8068560cf0) at unveil_start_relative+0x14b namei(ffff80002a517528) at namei+0x62e vn_open(ffff80002a517528,201,0) at vn_open+0x1f4 doopenat(ffff80002a4a8f48,4,20000240,200,0,ffff80002a5176d0) at doopenat+0x31d syscall(ffff80002a517780) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x57b4583b580, count: 3 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(ffffffff8306d5ca) at panic+0x1cf ufsdirhash_lookup(fffffd80694b0a50,ffffffff82fb35ed,2,fffffd80694b0afc,ffff80002a517040,0) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd8068560cf0,ffff80002a5171e8,ffff80002a517188) at VOP_LOOKUP+0x6e unveil_find_cover(fffffd8068560cf0,ffff80002a4a8f48) at unveil_find_cover+0x16d unveil_start_relative(ffff80002a4a8f48,ffff80002a517528,fffffd8068560cf0) at unveil_start_relative+0x14b namei(ffff80002a517528) at namei+0x62e vn_open(ffff80002a517528,201,0) at vn_open+0x1f4 doopenat(ffff80002a4a8f48,4,20000240,200,0,ffff80002a5176d0) at doopenat+0x31d syscall(ffff80002a517780) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x57b4583b580, count: -12 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a516e60 rbx 0xffff800000b442b0 rdx 0x3fd rcx 0 rax 0x33 r8 0x101010101010101 r9 0x8080808080808080 r10 0xb979a79941c29555 r11 0x97f05842b8531732 r12 0 r13 0xffff800001257e00 r14 0 r15 0x1 rip 0xffffffff82bc7195 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a516e50 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) tid=484020 pid=7669 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=0xffff80002a4a9968,0xffffffff8354bbe8 process=0xffff8000ffffaf28 user=0xffff80002a512000, vmspace=0xfffffd807eb93000 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 7669 497438 8130 0 2 0 syz-executor.0 * 7669 484020 8130 0 7 0x4000000 syz-executor.0 8130 315717 53022 0 2 0x482 syz-executor.0 53022 506199 78819 0 3 0x82 thrsleep syz-execprog 53022 297177 78819 0 3 0x4000082 thrsleep syz-execprog 53022 188100 78819 0 3 0x4000082 thrsleep syz-execprog 53022 5979 78819 0 3 0x4000082 kqread syz-execprog 53022 241691 78819 0 3 0x4000082 thrsleep syz-execprog 53022 271531 78819 0 3 0x4000082 wait syz-execprog 53022 290110 78819 0 3 0x4000082 thrsleep syz-execprog 53022 49676 78819 0 3 0x4000082 thrsleep syz-execprog 53022 60270 78819 0 3 0x4000082 thrsleep syz-execprog 53022 194607 78819 0 3 0x4000082 thrsleep syz-execprog 78819 317544 80245 0 3 0x10008a sigsusp ksh 80245 152115 86878 0 3 0x98 kqread sshd-session 86878 177516 41174 0 3 0x92 kqread sshd-session 76028 67223 1 0 3 0x100083 ttyin getty 41174 484193 1 0 3 0x88 kqread sshd 74373 53528 12714 73 3 0x1100090 kqread syslogd 12714 443760 1 0 3 0x100082 sbwait syslogd 14954 125139 1 0 3 0x100080 kqread resolvd 14074 18902 62765 77 3 0x100092 kqread dhcpleased 14512 510511 62765 77 3 0x100092 kqread dhcpleased 62765 355314 1 0 3 0x80 kqread dhcpleased 52117 178441 0 0 3 0x14200 bored smr 70232 266938 0 0 2 0x14200 zerothread 65771 188836 0 0 3 0x14200 aiodoned aiodoned 19613 233145 0 0 3 0x14200 syncer update 56293 96955 0 0 3 0x14200 cleaner cleaner 91538 293835 0 0 3 0x14200 reaper reaper 13575 78773 0 0 3 0x14200 pgdaemon pagedaemon 64768 451475 0 0 3 0x14200 bored viomb 44980 167276 0 0 3 0x40014200 acpi0 acpi0 28676 102881 0 0 3 0x14200 bored softnet3 88478 193308 0 0 3 0x14200 bored softnet2 67191 145485 0 0 3 0x14200 bored softnet1 78014 268436 0 0 3 0x14200 bored softnet0 66148 309972 0 0 3 0x14200 bored systqmp 95744 407570 0 0 3 0x14200 bored systq 61694 168526 0 0 3 0x40014200 tmoslp softclock 17328 494651 0 0 3 0x40014200 idle0 1 402843 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 10147 11024K 11053K 166960K 11228 0 pcb 17 12K 12K 166960K 17 0 rtable 80 2K 2K 166960K 172 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 30 5K 5K 166960K 30 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 3 8K 12K 166960K 35 0 proc 58 66K 67K 166960K 305 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 318 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 162 15K 15K 166960K 3517 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 26 52K 104K 166960K 1182 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 6800K 6864K 166960K 3808 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 25 0 22 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 23 0 0 3 0 3 3 0 8 0 dino2pl 256 1560 0 73 94 0 94 94 0 8 1 ffsino 240 1560 0 73 88 0 88 88 0 8 0 nchpl 144 1823 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 6553 0 6552 2 0 2 2 0 8 1 kstatmem 264 10 0 2 1 0 1 1 0 8 0 scxspl 216 8026 0 8026 8 0 8 8 1 8 8 plimitpl 152 51 0 42 1 0 1 1 0 8 0 sigapl 424 398 0 366 5 0 5 5 0 8 1 futexpl 64 14 0 14 1 0 1 1 0 8 1 knotepl 120 6593 0 6556 2 0 2 2 0 8 0 kqueuepl 184 42 0 33 1 0 1 1 0 8 0 pipepl 288 156 0 149 1 0 1 1 0 8 0 fdescpl 432 382 0 366 4 0 4 4 0 8 2 filepl 120 1824 0 1753 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 366 0 366 1 0 1 1 0 8 1 processpl 1096 398 0 366 4 0 4 4 0 8 1 procpl 648 419 0 377 5 0 5 5 0 8 1 sockpl 504 130 0 106 4 0 4 4 0 8 1 mcl8k 8192 13 0 13 1 0 1 1 0 8 1 mcl4k 4096 10034 0 9976 27 11 16 25 0 8 8 mcl2k 2048 92 0 92 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 13805 0 13733 13 0 13 13 0 8 8 bufpl 280 4209 0 158 290 0 290 290 0 8 0 anonpl 24 283024 0 279660 54 0 54 54 0 187 21 amapchunkpl 152 13355 0 13022 27 0 27 27 0 158 10 amappl16 200 7979 0 7916 5 0 5 5 0 8 1 amappl15 192 15 0 15 1 0 1 1 0 8 1 amappl14 184 196 0 185 2 0 2 2 0 8 1 amappl13 176 19 0 18 1 0 1 1 0 8 0 amappl12 168 966 0 949 2 0 2 2 0 8 0 amappl11 160 96 0 85 1 0 1 1 0 8 0 amappl10 152 124 0 121 1 0 1 1 0 8 0 amappl9 144 345 0 345 1 0 1 1 0 8 1 amappl8 136 147 0 128 1 0 1 1 0 8 0 amappl7 128 210 0 194 2 0 2 2 0 8 1 amappl6 120 220 0 216 1 0 1 1 0 8 0 amappl5 112 173 0 165 1 0 1 1 0 8 0 amappl4 104 464 0 445 2 0 2 2 0 8 1 amappl3 96 3682 0 3635 2 0 2 2 0 8 0 amappl2 88 1102 0 1040 4 0 4 4 0 8 1 amappl1 80 13732 0 13242 25 7 18 22 0 8 8 amappl 88 2829 0 2738 4 0 4 4 0 92 1 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 382 0 366 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 382 0 366 1 0 1 1 0 8 0 vmmpekpl 168 10661 0 10635 2 0 2 2 0 8 0 vmmpepl 168 59270 0 57980 118 0 118 118 0 357 54 vmsppl 344 381 0 366 3 0 3 3 0 8 1 rwobjpl 24 28180 0 25839 20 0 20 20 0 8 2 pdppl 4096 771 0 732 97 42 55 63 0 8 16 pvpl 32 605330 0 597075 394 97 297 394 0 265 212 pmappl 216 381 0 366 2 0 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 348 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(ffffffff8306d5ca) at panic+0x1cf ufsdirhash_lookup(fffffd80694b0a50,ffffffff82fb35ed,2,fffffd80694b0afc,ffff80002a517040,0) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd8068560cf0,ffff80002a5171e8,ffff80002a517188) at VOP_LOOKUP+0x6e unveil_find_cover(fffffd8068560cf0,ffff80002a4a8f48) at unveil_find_cover+0x16d unveil_start_relative(ffff80002a4a8f48,ffff80002a517528,fffffd8068560cf0) at unveil_start_relative+0x14b namei(ffff80002a517528) at namei+0x62e vn_open(ffff80002a517528,201,0) at vn_open+0x1f4 doopenat(ffff80002a4a8f48,4,20000240,200,0,ffff80002a5176d0) at doopenat+0x31d syscall(ffff80002a517780) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x57b4583b580, count: -12 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x25 panic(ffffffff8306d5ca) at panic+0x1cf ufsdirhash_lookup(fffffd80694b0a50,ffffffff82fb35ed,2,fffffd80694b0afc,ffff80002a517040,0) at ufsdirhash_lookup+0xb9a ufs_lookup() at ufs_lookup+0xf58 VOP_LOOKUP(fffffd8068560cf0,ffff80002a5171e8,ffff80002a517188) at VOP_LOOKUP+0x6e unveil_find_cover(fffffd8068560cf0,ffff80002a4a8f48) at unveil_find_cover+0x16d unveil_start_relative(ffff80002a4a8f48,ffff80002a517528,fffffd8068560cf0) at unveil_start_relative+0x14b namei(ffff80002a517528) at namei+0x62e vn_open(ffff80002a517528,201,0) at vn_open+0x1f4 doopenat(ffff80002a4a8f48,4,20000240,200,0,ffff80002a5176d0) at doopenat+0x31d syscall(ffff80002a517780) at syscall+0x97e Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x57b4583b580, count: -12