diff options
| author | 2026-04-24 14:31:35 -1000 | |
|---|---|---|
| committer | 2026-04-24 14:31:35 -1000 | |
| commit | 4fda9f0e7c950da4fe03cedeb2ac818edf5d03e9 (patch) | |
| tree | cd1b6adff1970c12664671392d422a61712383b5 /tools/perf/scripts/python/bin | |
| parent | sched_ext: Unregister sub_kset on scheduler disable (diff) | |
sched_ext: Guard scx_dsq_move() against NULL kit->dsq after failed iter_new
bpf_iter_scx_dsq_new() clears kit->dsq on failure and
bpf_iter_scx_dsq_{next,destroy}() guard against that. scx_dsq_move() doesn't -
it dereferences kit->dsq immediately, so a BPF program that calls
scx_bpf_dsq_move[_vtime]() after a failed iter_new oopses the kernel.
Return false if kit->dsq is NULL.
Fixes: 4c30f5ce4f7a ("sched_ext: Implement scx_bpf_dispatch[_vtime]_from_dsq()")
Cc: stable@vger.kernel.org # v6.12+
Reported-by: Chris Mason <clm@meta.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
