]> asedeno.scripts.mit.edu Git - linux.git/commit
bpf: fix BTF limits
authorAlexei Starovoitov <ast@kernel.org>
Tue, 17 Sep 2019 17:45:38 +0000 (10:45 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Sep 2019 12:22:44 +0000 (14:22 +0200)
commita0791f0df7d212c245761538b17a9ea93607b667
tree593e1c4283a6689441a6ac90d76ada3fd571a303
parent9eea984979513d6ee137e545e26c5877d46039dd
bpf: fix BTF limits

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>
include/uapi/linux/btf.h