libbpf: Reduce bpf_core_apply_relo_insn() stack usage.
authorAlexei Starovoitov <ast@kernel.org>
Fri, 3 Dec 2021 18:28:36 +0000 (10:28 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 3 Dec 2021 21:21:59 +0000 (13:21 -0800)
commit78c1f8d0634cc35da613d844eda7c849fc50f643
tree107e51571324b5bc0cbf35095e5359d1f83115fe
parent0bf40542c05ef62997738cd45eea553415adb045
libbpf: Reduce bpf_core_apply_relo_insn() stack usage.

Reduce bpf_core_apply_relo_insn() stack usage and bump
BPF_CORE_SPEC_MAX_LEN limit back to 64.

Fixes: 29db4bea1d10 ("bpf: Prepare relo_core.c for kernel duty.")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211203182836.16646-1-alexei.starovoitov@gmail.com
kernel/bpf/btf.c
tools/lib/bpf/libbpf.c
tools/lib/bpf/relo_core.c
tools/lib/bpf/relo_core.h