Re: [PATCH] sched_ext: Validate cid override before updating tables
Tejun Heo <[email protected]> Tue, 14 Jul 2026 13:56:15 -1000
| Newsgroups | dev.linux.lists.sched-ext,org.kernel.vger.bpf,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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