libbpf: Add gating for arena globals relocation feature#11014
libbpf: Add gating for arena globals relocation feature#11014kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
Conversation
|
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 3880171584 via email |
a1e329f to
dddd867
Compare
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 --------- v3 -> v4 (https://lore.kernel.org/bpf/20260210005508.3642641-1-emil@etsalapatis.com/) Incorporate feedback from Andrii: - Remove BTF and func_info - Use TRACEPOINT instead of SYSCALL to avoid using the SLEEPABLE flag - Improve string handling sizeof(log_buf) for libbpf buffer v2 -> v3 (https://lore.kernel.org/bpf/20260209234850.2750149-1-emil@etsalapatis.com/) - Rename feature to better specify the verifier feature it probes for (Andrii) 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: a9aabb3 |
01bb894 to
bcdf5e1
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1052850 irrelevant now. Closing PR. |
Pull request for series with
subject: libbpf: Add gating for arena globals relocation feature
version: 4
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1052850