Re: [PATCH v4 sched_ext/for-7.3 11/40] sched_ext: Add ops.init_cids() to finalize the cid layout before init

From: Tejun Heo

Date: Thu Jul 09 2026 - 18:29:00 EST


On Wed, 08 Jul 2026 21:54:31 +0000, sashiko-bot@xxxxxxxxxx wrote:
> - [High] scx_bpf_cid_override() partially mutates global CID topology
> mapping tables on failure, leaving them in a corrupted state.

Not in the current form: the kfunc validates the entire snapshot first so
that invalid input leaves the globals untouched, and no abort path exists
once the write loop begins, so a half-written mapping can't occur. It's
also only callable from init_cids, before any scheduling reader exists.
No change.

Thanks.

--
tejun