OSDN Git Service

bpf: fix BTF limits
authorAlexei Starovoitov <ast@kernel.org>
Tue, 17 Sep 2019 17:45:38 +0000 (10:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:14 +0000 (14:51 +0100)
commit62bce3654c9509fc0ccc8a3eb99a1b0a0153e0ec
treefae3474450332a74dcf371643e0c3f1d437083c7
parent90de8a2f70a3f2f5c1fb75829d8c297246f61ffd
bpf: fix BTF limits

[ Upstream commit a0791f0df7d212c245761538b17a9ea93607b667 ]

vmlinux BTF has more than 64k types.
Its string section is also at the offset larger than 64k.
Adjust both limits to make in-kernel BTF verifier successfully parse in-kernel BTF.

Fixes: 69b693f0aefa ("bpf: btf: Introduce BPF Type Format (BTF)")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/uapi/linux/btf.h