]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Enforce scheduler ownership when updating slice and dsq_vtime
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)
commit245d09c594ea40dbd4b8f989f2422dbc8e65a61c
tree3202c2d38dbfb07f8e141e8a9eb1f68a85a5f6c0
parenta5fa0708cbfda4d3c2c6a447de7c4b0b23595527
sched_ext: Enforce scheduler ownership when updating slice and dsq_vtime

scx_bpf_task_set_slice() and scx_bpf_task_set_dsq_vtime() now verify that
the calling scheduler has authority over the task before allowing updates.
This prevents schedulers from modifying tasks that don't belong to them in
hierarchical scheduling configurations.

Direct writes to p->scx.slice and p->scx.dsq_vtime are deprecated and now
trigger warnings. They will be disallowed in a future release.

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