CachyOS / CachyOS/copr-linux-cachyos

Build kernel-cachyos with dwarves >= 1.31 so sched_ext kfuncs get decl_tag_kfuncs

Open Beginner friendly
#107 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.