linux/arch/x86/net
Daniel Borkmann 959a757916 bpf, x86: add support for constant blinding
This patch adds recently added constant blinding helpers into the
x86 eBPF JIT. In the bpf_int_jit_compile() path, requirements are
to utilize bpf_jit_blind_constants()/bpf_jit_prog_release_other()
pair for rewriting the program into a blinded one, and to map the
BPF_REG_AX register to a CPU register. The mapping of BPF_REG_AX
is at non-callee saved register r10, and thus shared with cached
skb->data used for ld_abs/ind and not in every program type needed.
When blinding is not used, there's zero additional overhead in the
generated image.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-16 13:49:32 -04:00
..
Makefile net: filter: Just In Time compiler for x86-64 2011-04-27 23:05:08 -07:00
bpf_jit.S x86/asm/bpf: Create stack frames in bpf_jit.S 2016-02-24 08:35:44 +01:00
bpf_jit_comp.c bpf, x86: add support for constant blinding 2016-05-16 13:49:32 -04:00