Skip to content

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

Description

@dotwizzy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions