diff options
| author | Andrea Righi <[email protected]> | 2025-05-15 19:11:43 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2025-05-20 20:24:05 +0000 |
| commit | 686d1337237161833684d8554c6e3ea2d692bd41 (patch) | |
| tree | a6049e6c59698850afb8b8a7df429ac516c9daee /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | sched_ext: Make scx_kf_allowed_if_unlocked() available outside ext.c (diff) | |
| download | kernel-686d1337237161833684d8554c6e3ea2d692bd41.tar.gz kernel-686d1337237161833684d8554c6e3ea2d692bd41.zip | |
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
