Re: [PATCH v4 sched_ext/for-7.3 13/40] sched_ext: Add shard boundaries to scx_bpf_cid_override()

Tejun Heo <[email protected]>
Newsgroups dev.linux.lists.sched-ext,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Wed, 08 Jul 2026 21:47:38 +0000, [email protected] wrote:
> - [Medium] Unbounded allocation sizes for kmemdup before validation
> trigger kernel warnings and allocation failures.

The __sz arguments are verifier-bounded to the size of an actual BPF
object, the kfunc is only reachable from a privileged scheduler's
init_cids, and a failed allocation lands in the existing NULL bail which
aborts the enable cleanly. Reordering wouldn't buy anything real. No
change.

Thanks.

-- 
tejun
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.