linux/include/linux/sched
Tejun Heo 477869bfaf sched_ext: Reject setting disallow from init_task outside the enable path
The p->scx.disallow revert assumes the root enable path, where the switching
loop reads the reverted policy right afterwards and leaves the task off SCX.
The sub-scheduler disable path also reaches it when re-initializing the
returned tasks on a root parent. Nothing reads the policy there: the task is
enabled on root anyway and keeps running on the ext class with a silently
rewritten policy.

Kill the sched instead, matching the fork and non-root branches, and update
the disallow documentation, which equated !fork with the load path and
pointed at a stale debugfs path for nr_rejected.

Fixes: 337ec00b1d ("sched_ext: Implement cgroup sub-sched enabling and disabling")
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
2026-07-17 21:28:57 -10:00
..
affinity.h
autogroup.h
clock.h sched/clock: Provide !HAVE_UNSTABLE_SCHED_CLOCK stub for sched_clock_stable() 2026-05-19 12:17:35 +02:00
cond_resched.h
coredump.h exec_state: relocate dumpable information 2026-05-26 11:02:01 +02:00
cpufreq.h
cputime.h
deadline.h cgroup/cpuset: Reserve DL bandwidth only for root-domain moves 2026-05-11 10:27:14 -10:00
debug.h
exec_state.h exec_state: relocate dumpable information 2026-05-26 11:02:01 +02:00
ext.h sched_ext: Reject setting disallow from init_task outside the enable path 2026-07-17 21:28:57 -10:00
hotplug.h
idle.h
init.h
isolation.h sched/isolation: Make HK_TYPE_KTHREAD an alias of HK_TYPE_DOMAIN 2026-05-05 01:52:55 +02:00
jobctl.h
loadavg.h
mm.h
nohz.h
numa_balancing.h
posix-timers.h
prio.h
rseq_api.h
rt.h
sd_flags.h
signal.h Locking updates for v7.1: 2026-04-14 12:36:25 -07:00
smt.h sched: Simplify ifdeffery around cpu_smt_mask 2026-05-19 12:17:37 +02:00
stat.h
sysctl.h
task_flags.h
task_stack.h
task.h
thread_info_api.h
topology.h sched/topology: Allow multiple domains to claim sched_domain_shared 2026-05-19 13:35:36 +02:00
types.h
user.h
vhost_task.h
wake_q.h
xacct.h