]> git.baikalelectronics.ru Git - kernel.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)
commitcae021ea71182232c520d8b967db8ef6c32037be
tree70d10a938de18a64f103de01ab2ffa8a66e52178
parentcf74a7447d68a66626c6a6bff2438d3c5856bc7e
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