Re: [PATCH] sched_ext: Gate cid kfuncs behind the SCX struct_ops check
From: Tejun Heo
Date: Wed Aug 12 2026 - 15:20:22 EST
Hello,
On Wed, Aug 12, 2026 at 02:11:16PM +0800, Qiurong Fang wrote:
> scx_bpf_cid_to_cpu(), scx_bpf_cpu_to_cid() and scx_bpf_cid_topo() live in
> the scx_kfunc_ids_cid set, but scx_kfunc_context_filter() doesn't check
> that set. The filter's first test treats any kfunc outside its known sets
> as non-SCX and allows it, so these three kfuncs can be called from any
> struct_ops program - e.g. a TCP congestion control program.
Applied to sched_ext/for-7.3.
Thanks.
--
tejun