Re: [PATCH v4 sched_ext/for-7.3 21/40] sched_ext: Add per-shard cap delegation for sub-schedulers

From: Tejun Heo

Date: Thu Jul 09 2026 - 18:30:59 EST


On Wed, 08 Jul 2026 22:00:56 +0000, sashiko-bot@xxxxxxxxxx wrote:
> - [High] Missing validation for unallocated `pshard` arrays and missing
> arena maps in `scx_bpf_sub_grant()`, `scx_bpf_sub_revoke()`, and
> `scx_bpf_sub_caps()` leads to NULL pointer dereferences and invalid
> memory access Oops.

Same as the v2/v3 rounds - sub-schedulers are always cid-form with an
arena pool (enforced at attach) and their pshards are allocated before
the sched is published, so these paths never see a NULL pshard or a zero
arena base:

https://lore.kernel.org/r/d302edb6cfe897543505d691705e9ea9@xxxxxxxxxx

Thanks.

--
tejun