diff options
| author | Chuyi Zhou <zhouchuyi@bytedance.com> | 2025-02-12 15:19:36 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 14:01:21 +0100 |
| commit | 465255d52628a30583f1c050f4493a2ab207372d (patch) | |
| tree | 887d4bf86f9911460175a1e8736a671c55346679 /kernel | |
| parent | 9e6d70a910457cd6eea49b1bbee422358c436ca6 (diff) | |
| download | linux-465255d52628a30583f1c050f4493a2ab207372d.tar.gz linux-465255d52628a30583f1c050f4493a2ab207372d.tar.bz2 linux-465255d52628a30583f1c050f4493a2ab207372d.zip | |
sched_ext: Fix the incorrect bpf_list kfunc API in common.bpf.h.
[ Upstream commit 2e2006c91c842c551521434466f9b4324719c9a7 ]
Now BPF only supports bpf_list_push_{front,back}_impl kfunc, not bpf_list_
push_{front,back}.
This patch fix this issue. Without this patch, if we use bpf_list kfunc
in scx, the BPF verifier would complain:
libbpf: extern (func ksym) 'bpf_list_push_back': not found in kernel or
module BTFs
libbpf: failed to load object 'scx_foo'
libbpf: failed to load BPF skeleton 'scx_foo': -EINVAL
With this patch, the bpf list kfunc will work as expected.
Signed-off-by: Chuyi Zhou <zhouchuyi@bytedance.com>
Fixes: 2a52ca7c98960 ("sched_ext: Add scx_simple and scx_example_qmap example schedulers")
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
