Repository navigation
linuxPackages.ebpf-headers: init - #569786
Merged
RaitoBezarius merged 2 commits intoOct 5, 2026
Merged
Conversation
Previously vmlinux (and therefore its .BTF section) was only copied to the dev output for modular kernels. BPF CO-RE consumers need the kernel's BTF regardless of whether modules are enabled, so always populate $dev.
There was a problem hiding this comment.
The PR's base branch is set to staging-nixos, but this PR causes 1924 rebuilds.
It is therefore considered a mass rebuild.
Please change the base branch to the right base branch for your changes (probably staging).
nixpkgs-ci
Bot
requested review from
a team,
Atemu,
AxerTheAxe,
JerrySM64,
andir,
eljamm,
lovesegfault,
moni-dz,
thiagokokada,
thoughtpolice and
zzzsyyy
and removed request for
a team
October 3, 2026 12:51
This was referenced Oct 3, 2026
Ma27
dismissed
nixpkgs-branch-check[bot]’s stale review
October 4, 2026 20:02
This only causes rebuilds due to (whitespace) changes to the kernel build. In other words, this can stay on staging-next, no reason to force this through a staging cycle.
Ma27
approved these changes
Oct 4, 2026
Expose, per kernel package set, a vmlinux.h extracted from that kernel's BTF (bpftool btf dump on $dev/vmlinux). This is the pure equivalent of systemd's vmlinux-h=generated, which reads /sys/kernel/btf/vmlinux, and it lets BPF CO-RE consumers compile against the kernel they run on instead of a synthetic one. More on this: BPF CO-RE is not yet a complete solution for a stable BPF ABI. At the time of writing, CO-RE is only about offset/type relocation. The history of the kernel private ABI evolution has shown this is not enough, e.g. task_struct->utime/stime jiffies → nsecs after 4.6. Operational expertise of BPF CO-RE is not great at the moment as well: BPF verifier bugs can lead to rejection of valid programs, see https://ebpfchirp.substack.com/p/why-does-my-ebpf-program-work-on. For reminders, BTF is arch independent, so cross builds are fine.
RaitoBezarius
force-pushed
the
systemd-kernel-vmlinux
branch
from
October 5, 2026 09:31
ce4bc5b to
2d750e5
Compare
RaitoBezarius
enabled auto-merge
October 5, 2026 09:31
There was a problem hiding this comment.
The PR's base branch is set to staging-nixos, but this PR causes 1924 rebuilds.
It is therefore considered a mass rebuild.
Please change the base branch to the right base branch for your changes (probably staging).
3 of 13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Things done
This adds
vmlinux.hextracted from BTF for downstream consumers such as systemd. Discussed multiple times in #404715 #404864.This is part 1.
Next part is to introduce
linuxPackages.systemd(part 2), after that: enable nsresourced/mountfsd with a test (part 3), finally: NixOS can default to the current kernel's systemd (part 4).