]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Sanitize global functions
authorAlexei Starovoitov <ast@kernel.org>
Fri, 10 Jan 2020 06:41:19 +0000 (22:41 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 10 Jan 2020 16:20:07 +0000 (17:20 +0100)
commit1b2f1528ff299fd824fbb23bce4b1ecbc6111219
tree5af845b22b56292a359da753e7dff4d53aa49aa6
parente4447d8238dbba3fa79346e8699bd209c1ca0a34
libbpf: Sanitize global functions

In case the kernel doesn't support BTF_FUNC_GLOBAL sanitize BTF produced by the
compiler for global functions.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200110064124.1760511-2-ast@kernel.org
tools/include/uapi/linux/btf.h
tools/lib/bpf/libbpf.c