Re: [PATCH] sched_ext: Validate cid override before updating tables
From: Tejun Heo
Date: Tue Jul 14 2026 - 19:56:30 EST
Hello.
for-7.3 already does this. scx_bpf_cid_override() validates the whole
mapping first (cid_valid() and the duplicate check) and only writes
scx_cpu_to_cid_tbl/scx_cid_to_cpu_tbl in a second pass, so a failed
override leaves the tables untouched. It also kmemdup()s the input up
front to avoid a concurrent-mutation race.
The patch is against an older cid.c and no longer applies, so no respin
is needed.
Thanks.
--
tejun