diff options
| author | Waiman Long <[email protected]> | 2023-03-17 15:15:05 +0000 |
|---|---|---|
| committer | Tejun Heo <[email protected]> | 2023-03-29 18:37:07 +0000 |
| commit | 292fd843de26c551856e66faf134512c52dd78b4 (patch) | |
| tree | c64dd23e8acc0f98aef4bf91310c321ec18390ee /tools/perf/scripts/python/stat-cpi.py | |
| parent | cgroup: fix display of forceidle time at root (diff) | |
| download | kernel-292fd843de26c551856e66faf134512c52dd78b4.tar.gz kernel-292fd843de26c551856e66faf134512c52dd78b4.zip | |
cgroup/cpuset: Fix partition root's cpuset.cpus update bug
It was found that commit 7a2127e66a00 ("cpuset: Call
set_cpus_allowed_ptr() with appropriate mask for task") introduced a bug
that corrupted "cpuset.cpus" of a partition root when it was updated.
It is because the tmp->new_cpus field of the passed tmp parameter
of update_parent_subparts_cpumask() should not be used at all as
it contains important cpumask data that should not be overwritten.
Fix it by using tmp->addmask instead.
Also update update_cpumask() to make sure that trialcs->cpu_allowed
will not be corrupted until it is no longer needed.
Fixes: 7a2127e66a00 ("cpuset: Call set_cpus_allowed_ptr() with appropriate mask for task")
Signed-off-by: Waiman Long <[email protected]>
Cc: [email protected] # v6.2+
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions
