+64
−0
+5
−2
Loading
Add feature gating for the arena globals relocation introduced in commit c1f61171. The commit depends on a previous commit in the same patchset that is absent from older kernels (12a1fe6e "bpf/verifier: Do not limit maximum direct offset into arena map"). Without this commit, arena globals relocation with arenas >= 512MiB fails to load and breaks libbpf's backwards compatibility. Introduce a libbpf feature to check whether the running kernel allows for full range ldimm64 offset, and only relocate arena globals if it does. Fixes: c1f61171 ("libbpf: Move arena globals to the end of the arena") Signed-off-by:Emil Tsalapatis <emil@etsalapatis.com> Signed-off-by:
Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20260210184532.255475-1-emil@etsalapatis.com Signed-off-by:
Alexei Starovoitov <ast@kernel.org>