Skip to content

libbpf: Add gating for arena globals relocation feature#11003

Closed
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
series/1052468=>bpf-next
Closed

libbpf: Add gating for arena globals relocation feature#11003
kernel-patches-daemon-bpf[bot] wants to merge 1 commit intobpf-next_basefrom
series/1052468=>bpf-next

Conversation

@kernel-patches-daemon-bpf
Copy link

Pull request for series with
subject: libbpf: Add gating for arena globals relocation feature
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1052468

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
---------

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>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: db975de
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=1052468
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1052468 expired. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/1052468=>bpf-next branch February 12, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant