aboutsummaryrefslogtreecommitdiffstats
path: root/init/init_task.c
diff options
context:
space:
mode:
authorWill Deacon <[email protected]>2021-07-30 11:24:32 +0000
committerPeter Zijlstra <[email protected]>2021-08-20 10:32:59 +0000
commit234a503e670be01f72841be9fcf68dfb89a1fa8b (patch)
treeee867fb4f0dc0afd94d240eb949e4d569b85e4d8 /init/init_task.c
parentcpuset: Cleanup cpuset_cpus_allowed_fallback() use in select_fallback_rq() (diff)
downloadkernel-234a503e670be01f72841be9fcf68dfb89a1fa8b.tar.gz
kernel-234a503e670be01f72841be9fcf68dfb89a1fa8b.zip
sched: Reject CPU affinity changes based on task_cpu_possible_mask()
Reject explicit requests to change the affinity mask of a task via set_cpus_allowed_ptr() if the requested mask is not a subset of the mask returned by task_cpu_possible_mask(). This ensures that the 'cpus_mask' for a given task cannot contain CPUs which are incapable of executing it, except in cases where the affinity is forced. Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Reviewed-by: Quentin Perret <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'init/init_task.c')
0 files changed, 0 insertions, 0 deletions