Re: [PATCH v4 sched_ext/for-7.3 13/40] sched_ext: Add shard boundaries to scx_bpf_cid_override()
From: Tejun Heo
Date: Thu Jul 09 2026 - 18:29:02 EST
On Wed, 08 Jul 2026 21:47:38 +0000, sashiko-bot@xxxxxxxxxx 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