[PATCH 405/415] riscv, bpf: Fix out-of-bounds issue when preparing trampoline image