From: sashiko-bot@kernel.org
To: "Tejun Heo" <tj@kernel.org>
Cc: bpf@vger.kernel.org, sched-ext@lists.linux.dev
Subject: Re: [PATCH sched_ext/for-7.4] sched_ext: Work around pahole 1.32 dropping scx_bpf_task_set_lazy_resched() from BTF
Date: Tue, 29 Sep 2026 17:38:20 +0000 [thread overview]
Message-ID: <20260929173821.125081F000FF@smtp.kernel.org> (raw)
In-Reply-To: <7c139810be5ffc9764ed4236efc28794@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] sched: build failure due to misapplied patch in scx_bpf_task_set_dsq_vtime()
--
commit 16f6b2129331609ed5db39cd3ea7260f54a1df1f
Author: Tejun Heo <tj@kernel.org>
sched_ext: Work around pahole 1.32 dropping scx_bpf_task_set_lazy_resched() from BTF
This commit works around an issue with pahole 1.32 by forcing the lazy
argument onto the stack using barrier_data() so its location doesn't
name a register.
Link: https://lore.kernel.org/r/20260925213619.2187751-1-yonghong.song@linux.dev
> diff --git a/kernel/sched/ext/ext.c b/kernel/sched/ext/ext.c
> index 6b037d27c99d3..feaa784d7a0dc 100644
> --- a/kernel/sched/ext/ext.c
> +++ b/kernel/sched/ext/ext.c
> @@ -10119,6 +10119,11 @@ __bpf_kfunc bool scx_bpf_task_set_dsq_vtime(struct task_struct *p, u64 vtime,
> {
> struct scx_sched *sch;
>
> + /*
> + * clang's register locations for @lazy make pahole 1.32 drop this kfunc
> + * from BTF. Keep @lazy in memory so its location names no register.
> + */
> + barrier_data(&lazy);
[Severity: Low]
Will this cause a build failure? It looks like the lazy variable is not
declared in scx_bpf_task_set_dsq_vtime().
Could it be that this patch was mistakenly applied to
scx_bpf_task_set_dsq_vtime() instead of scx_bpf_task_set_lazy_resched()?
They appear to share identical context lines, meaning the patch might have
matched guard(rcu)(); followed by sch = scx_prog_sched(aux); in the wrong
function.
> guard(rcu)();
> sch = scx_prog_sched(aux);
> if (unlikely(!sch || !scx_task_on_sched(sch, p)))
> return false;
--
Sashiko AI review · https://sashiko.dev/#/patchset/7c139810be5ffc9764ed4236efc28794@kernel.org?part=1
next prev parent reply other threads:[~2026-09-29 17:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 17:32 [PATCH sched_ext/for-7.4] sched_ext: Work around pahole 1.32 dropping scx_bpf_task_set_lazy_resched() from BTF Tejun Heo
2026-09-29 17:38 ` sashiko-bot [this message]
2026-09-29 19:19 ` Andrea Righi
2026-09-29 19:25 ` Tejun Heo
2026-09-29 19:37 ` Andrea Righi
2026-09-29 23:11 ` Tejun Heo
2026-09-30 0:59 ` bot+bpf-ci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260929173821.125081F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=sched-ext@lists.linux.dev \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.