diff options
| -rw-r--r-- | arch/powerpc/net/bpf_jit_comp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/net/bpf_jit_comp.c b/arch/powerpc/net/bpf_jit_comp.c index b2fdf8ff9c60..50103b3794fb 100644 --- a/arch/powerpc/net/bpf_jit_comp.c +++ b/arch/powerpc/net/bpf_jit_comp.c @@ -373,6 +373,13 @@ skip_init_ctx: goto out_addrs; } bpf_prog_fill_jited_linfo(fp, addrs); + /* + * On ABI V1, executable code starts after the function + * descriptor, so adjust base accordingly. + */ + bpf_prog_update_insn_ptrs(fp, addrs, + (void *)fimage + FUNCTION_DESCR_SIZE); + out_addrs: if (!image && priv_stack_ptr) { fp->aux->priv_stack_ptr = NULL; |
