bpf: Adjust BTF log size limit.
authorAlexei Starovoitov <ast@kernel.org>
Wed, 1 Dec 2021 18:10:29 +0000 (10:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:27 +0000 (11:03 +0100)
commit2571173d3e115c4a79875ae6d820b5986d861004
tree4d8d18c1296843629f74a1b4321041b00ab0da0f
parentd3c4b3c801c0f13deef2b04d7d93dac338dd9552
bpf: Adjust BTF log size limit.

[ Upstream commit c5a2d43e998a821701029f23e25b62f9188e93ff ]

Make BTF log size limit to be the same as the verifier log size limit.
Otherwise tools that progressively increase log size and use the same log
for BTF loading and program loading will be hitting hard to debug EINVAL.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211201181040.23337-7-alexei.starovoitov@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/bpf/btf.c