[PATCH 6.10 219/809] riscv, bpf: Fix out-of-bounds issue when preparing trampoline image