CachyOS / CachyOS/copr-linux-cachyos
Build kernel-cachyos with dwarves >= 1.31 so sched_ext kfuncs get decl_tag_kfuncs
- Dominant language
- Shell
- Stars
- 349
- Forks
- 34
- Avg merge
- 21h 59m
- Merged PRs (30d)
- 2
Description
Same issue as Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=2514913,
reproduced on kernel-cachyos 7.1.5-cachyos1.fc44 from this copr.
The kernel is built with dwarves 1.30 (Fedora 44 base), which does not emit
DECL_TAG 'bpf_kfunc' for KF_IMPLICIT_ARGS kfuncs. Their BTF prototypes keep the
implicit 'aux' argument, libbpf rejects them, and no sched_ext scheduler can
attach — scx_loader retries five times and gives up with
"func_proto incompatible with vmlinux" / "failed to load BPF skeleton".
Measured on the stock Fedora kernel 7.1.8-200.fc44, regenerating BTF from the
same vmlinux with pahole 1.31: 54 of 54 scx_bpf_* funcs get the tag, versus 40
of 78 in the shipped BTF. Full details and dumps in the Fedora bug above.
dwarves 1.31 is already in your own copr (kernel-cachyos-addons), so bumping the
BuildRequires in the spec should be enough.
Contributor guide
Research direction
Locate the kernel-cachyos package spec and inspect its BuildRequires for dwarves. Update the requirement to version 1.31, then rebuild the package and verify that the resulting BTF supports sched_ext kfuncs without the scx_loader incompatibility errors described in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, shell
- Domain
- build-system, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 74/100