aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins
diff options
context:
space:
mode:
authorScott Wood <[email protected]>2020-06-17 12:17:42 +0000
committerBorislav Petkov <[email protected]>2020-06-28 15:01:20 +0000
commitfd844ba9ae59b51e34e77105d79f8eca780b3bd6 (patch)
treed8779a85bb109ea44c61571844a69c753ce134e6 /scripts/gcc-plugins
parentsched/core: Fix CONFIG_GCC_PLUGIN_RANDSTRUCT build fail (diff)
downloadkernel-fd844ba9ae59b51e34e77105d79f8eca780b3bd6.tar.gz
kernel-fd844ba9ae59b51e34e77105d79f8eca780b3bd6.zip
sched/core: Check cpus_mask, not cpus_ptr in __set_cpus_allowed_ptr(), to fix mask corruption
This function is concerned with the long-term CPU mask, not the transitory mask the task might have while migrate disabled. Before this patch, if a task was migrate-disabled at the time __set_cpus_allowed_ptr() was called, and the new mask happened to be equal to the CPU that the task was running on, then the mask update would be lost. Signed-off-by: Scott Wood <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions