]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: scx_dsq_move() should validate the task belongs to the right scheduler
authorTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:03 +0000 (07:58 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:03 +0000 (07:58 -1000)
commitbb4d9fd551588165dc918aa2f2108b939e3367db
tree79e53560caf9ba43a0191d8439ad6acb484825fa
parent245d09c594ea40dbd4b8f989f2422dbc8e65a61c
sched_ext: scx_dsq_move() should validate the task belongs to the right scheduler

scx_bpf_dsq_move[_vtime]() calls scx_dsq_move() to move task from a DSQ to
another. However, @p doesn't necessarily have to come form the containing
iteration and can thus be a task which belongs to another scx_sched. Verify
that @p is on the same scx_sched as the DSQ being iterated.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext.c