diff options
| author | Scott Wood <[email protected]> | 2020-06-17 12:17:42 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2020-06-28 15:01:20 +0000 |
| commit | fd844ba9ae59b51e34e77105d79f8eca780b3bd6 (patch) | |
| tree | d8779a85bb109ea44c61571844a69c753ce134e6 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | sched/core: Fix CONFIG_GCC_PLUGIN_RANDSTRUCT build fail (diff) | |
| download | kernel-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/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
