]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf: prepare bpf_int_jit_compile/bpf_prog_select_runtime apis
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 May 2016 17:08:31 +0000 (19:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:49:32 +0000 (13:49 -0400)
commitd1c55ab5e41fcd72cb0a8bef86d3f652ad9ad9f5
tree70d10a938de18a64f103de01ab2ffa8a66e52178
parentc237ee5eb33bf19fe0591c04ff8db19da7323a83
bpf: prepare bpf_int_jit_compile/bpf_prog_select_runtime apis

Since the blinding is strictly only called from inside eBPF JITs,
we need to change signatures for bpf_int_jit_compile() and
bpf_prog_select_runtime() first in order to prepare that the
eBPF program we're dealing with can change underneath. Hence,
for call sites, we need to return the latest prog. No functional
change in this patch.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/net/bpf_jit_comp.c
arch/s390/net/bpf_jit_comp.c
arch/x86/net/bpf_jit_comp.c
include/linux/filter.h
kernel/bpf/core.c
kernel/bpf/syscall.c
lib/test_bpf.c
net/core/filter.c