Skip to content

cgroup/cpuset: Fix v1 task migration failure from empty cpuset

Waiman Long cgroups lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v23 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Drop patch 3
- Further simplify patch 2 by dropping the flag and only check for v1 cpuset with no CPU to disable security check.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cgroup/cpuset: Simplify setsched decision check in task iteration loop of cpuset_can_attach()kernel/cgroup/cpuset.c+10 -90 replies
2/2cgroup/cpuset: Skip security check for hotplug induced v1 task migrationkernel/cgroup/cpuset.c+10 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] cgroup/cpuset: Fix v1 task migration failure from empty cpuset

v3:
- Drop patch 3
- Further simplify patch 2 by dropping the flag and only check for v1 cpuset with no CPU to disable security check.

v2:
- Add a new CS_TASKS_OUT flag to signal that task migration out of empty cpuset is allowed without setsched security check as suggested by Tejun.
- Add 2 more patches with minor changes.

As it is found that the cpuset v1 task migration out of cpuset with no CPU can be blocked by a strict security policy, we need to work around that issue by treating it as an exceptional case that is allowed without security check in cpuset_can_attach().

Waiman Long (2):
cgroup/cpuset: Simplify setsched decision check in task iteration loop
of cpuset_can_attach()
cgroup/cpuset: Skip security check for hotplug induced v1 task
migration

 kernel/cgroup/cpuset.c | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)
Signature · 1 line
2.53.0