diff options
| author | Andrea Righi <arighi@nvidia.com> | 2026-08-03 08:08:13 +0200 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-03 06:21:11 -1000 |
| commit | 12da4723b679374ed914dc79f1c33faae212811a (patch) | |
| tree | 850137a4d14a048647b58f5ed8db5eba70ee1014 /tools/perf/scripts/python | |
| parent | ba190ed3f47f0e177e4be525d4a6330bd2fbd1f1 (diff) | |
selftests/sched_ext: Make allowed_cpus idle validation race-free
A remotely selected CPU can be re-advertised as idle by an idle-to-idle
re-pick before the BPF program validates the selection. Checking that
the selected CPU remains absent from the idle mask is therefore
inherently racy.
Validate a stable local invariant instead: a CPU executing
ops.select_cpu() or ops.enqueue() in a non-idle scheduling context must
not be advertised as idle. Read the idle mask without modifying it and
also validate selected CPUs against the requested domain and task
affinity.
Suggested-by: Kuba Piecuch <jpiecuch@google.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Kuba Piecuch <jpiecuch@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
