libbpf: Add gating for arena globals relocation feature#11002
libbpf: Add gating for arena globals relocation feature#11002kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
Conversation
Add feature gating for the arena globals relocation introduced in commit c1f6117. The commit depends on a previous commit in the same patchset that is absent from older kernels (12a1fe6, "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 includes patch 12a1fe6, and only relocate arena globals if it does. CHANGELOG --------- v1 -> v2 (https://lore.kernel.org/bpf/20260209210240.2051209-1-emil@etsalapatis.com/) - Reworked test to use simpler array-based program (Andrii) Fixes: c1f6117 ("libbpf: Move arena globals to the end of the arena") Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
|
Upstream branch: db975de |
AI reviewed your patch. Please fix the bug or email reply why it's not a bug. In-Reply-To-Subject: AI-authorship-score: low |
|
Forwarding comment 3874573621 via email |
Pull request for series with
subject: libbpf: Add gating for arena globals relocation feature
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1052461