Re: [PATCH sched_ext/for-7.4] sched_ext: Work around pahole 1.32 dropping scx_bpf_task_set_lazy_resched() from BTF

From: bot+bpf-ci

Date: Tue Sep 29 2026 - 21:02:23 EST


> sched_ext: Work around pahole 1.32 dropping scx_bpf_task_set_lazy_resched() from BTF
>
> With clang and pahole 1.32, x86-64 vmlinux BTF lacks
> scx_bpf_task_set_lazy_resched() and sched_ext fails to initialize:
>
> sched_ext: Failed to register kfunc sets (-22)
>
> clang describes the lazy argument only after the prologue moves it into a
> callee-saved register, which pahole 1.32 rejects as not being the argument
> register. Released pahole is affected whatever the eventual fix. Keep the
> argument on the stack with barrier_data() so that its location names no
> register. OPTIMIZER_HIDE_VAR() would fix x86-64 but break arm64.
>
> Fixes: f8e5a4e3f3be ("sched_ext: Add lazy preemption support")

Does the Fixes tag reference a commit that exists in this branch's history?
The tag points to f8e5a4e3f3be, but if that commit is not an ancestor of
this commit, the Fixes tag would be referencing a commit from a different
tree or branch.

Can you verify that f8e5a4e3f3be is reachable from this commit's history,
or clarify which commit in this branch originally introduced the lazy
preemption support that needs the workaround?


---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md

CI run summary: https://github.com/kernel-patches/bpf/actions/runs/36651688234