]> git.baikalelectronics.ru Git - kernel.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)
commit0dd74a31cf6ee48cb522483af2d723ce2b319533
tree593e1c4283a6689441a6ac90d76ada3fd571a303
parentd8cf207ff992b6830e19afa554de7918677f858c
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: cd091043f442 ("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