Files
libbpf/src
Mykyta Yatsenko 4ea184df98 libbpf: Defer arena map size check to load time
init_arena_map_data() used the build-host page size while it opened an
object. This could reject skeleton generation when the build host and
target use different page sizes.

Validate the size during load, before libbpf calculates the arena data
offset. This uses the running kernel page size and rejects an
undersized map before relocation.

This problem manifested when cross compiling BPF selftests for
arm64 (64K page) on x86 (4K page). In this setup skeleton generation
fails.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/bpf/20260908-libbpf_arena_thing-v1-1-0092c0e0d91b@meta.com
2026-10-02 05:41:50 -07:00
..
2026-10-02 05:41:50 -07:00
2026-04-09 15:12:21 -07:00
2026-03-12 13:02:22 -07:00
2026-05-30 20:45:51 -07:00
2024-10-11 14:12:43 -07:00