diff options
author | Andrea Righi <arighi@nvidia.com> | 2025-05-15 21:11:43 +0200 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-05-20 10:24:05 -1000 |
commit | 686d1337237161833684d8554c6e3ea2d692bd41 (patch) | |
tree | a6049e6c59698850afb8b8a7df429ac516c9daee /scripts/lib/kdoc/kdoc_output.py | |
parent | 617a77018f683905ed4e8cd693df51243908353f (diff) |
sched_ext: idle: Validate locking correctness in scx_bpf_select_cpu_and()
Validate locking correctness when accessing p->nr_cpus_allowed and
p->cpus_ptr inside scx_bpf_select_cpu_and(): if the rq lock is held,
access is safe; otherwise, require that p->pi_lock is held.
This allows to catch potential unsafe calls to scx_bpf_select_cpu_and().
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions