[PATCH openEuler-26.09 396/399] riscv, bpf: Fix out-of-bounds issue when preparing trampoline image