android_kernel_oneplus_msm8998/kernel/bpf
Alexei Starovoitov 3c4bb079e1 bpf: support 8-byte metafield access
commit cedaf52693f02372010548c63b2e63228b959099 upstream.

The verifier supported only 4-byte metafields in
struct __sk_buff and struct xdp_md. The metafields in upcoming
struct bpf_perf_event are 8-byte to match register width in struct pt_regs.
Teach verifier to recognize 8-byte metafield access.
The patch doesn't affect safety of sockets and xdp programs.
They check for 4-byte only ctx access before these conditions are hit.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-17 21:55:15 +01:00
..
arraymap.c bpf: generally move prog destruction to RCU deferral 2018-11-10 07:41:37 -08:00
core.c bpf: fix divides by zero 2018-02-03 17:04:24 +01:00
hashtab.c bpf: map_get_next_key to return first key on NULL 2018-05-16 10:06:46 +02:00
helpers.c bpf: avoid copying junk bytes in bpf_get_current_comm() 2016-04-20 15:42:01 +09:00
inode.c bpf, inode: disallow userns mounts 2016-06-24 10:18:17 -07:00
Makefile bpf: add support for persistent maps/progs 2015-11-02 22:48:39 -05:00
syscall.c bpf: generally move prog destruction to RCU deferral 2018-11-10 07:41:37 -08:00
verifier.c bpf: support 8-byte metafield access 2018-12-17 21:55:15 +01:00