diff options
| author | Alexei Starovoitov <[email protected]> | 2018-11-26 17:34:25 -0800 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2018-11-26 17:34:25 -0800 |
| commit | fdac315d705a97e9edff1a40889fefd2df594422 (patch) | |
| tree | eaa5f5849390692a575aa95280313f41b5475ebe /include/linux | |
| parent | 69500127424cd90ff2cf8191256b2ac3b0a4af56 (diff) | |
| parent | 8c11ea5ce13da0252fc92f91e90b0cb0c8fe5619 (diff) | |
Merge branch 'arm64-jit-fixes'
Daniel Borkmann says:
====================
This set contains a fix for arm64 BPF JIT. First patch generalizes
ppc64 way of retrieving subprog into bpf_jit_get_func_addr() as core
code and uses the same on arm64 in second patch. Tested on both arm64
and ppc64.
====================
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/filter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/filter.h b/include/linux/filter.h index de629b706d1d..448dcc448f1f 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h @@ -866,6 +866,10 @@ void bpf_jit_binary_free(struct bpf_binary_header *hdr); void bpf_jit_free(struct bpf_prog *fp); +int bpf_jit_get_func_addr(const struct bpf_prog *prog, + const struct bpf_insn *insn, bool extra_pass, + u64 *func_addr, bool *func_addr_fixed); + struct bpf_prog *bpf_jit_blind_constants(struct bpf_prog *fp); void bpf_jit_prog_release_other(struct bpf_prog *fp, struct bpf_prog *fp_other); |