bpf: Add support for BTF pointers to interpreter
authorAlexei Starovoitov <ast@kernel.org>
Wed, 16 Oct 2019 03:25:02 +0000 (20:25 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 17 Oct 2019 14:44:36 +0000 (16:44 +0200)
commit2a02759ef5f8a34792df22b41d5e10658fd7bbd3
treeebe2c706325515484c567ade7f16e2bee61335c2
parentac4414b5ca47d16c8de3134cc1b868056c4a68ea
bpf: Add support for BTF pointers to interpreter

Pointer to BTF object is a pointer to kernel object or NULL.
The memory access in the interpreter has to be done via probe_kernel_read
to avoid page faults.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20191016032505.2089704-9-ast@kernel.org
include/linux/filter.h
kernel/bpf/core.c
kernel/bpf/verifier.c