linux/tools/testing/selftests/cgroup
Waiman Long 9b496a8bbe cgroup/cpuset: Prevent leakage of isolated CPUs into sched domains
Isolated CPUs are not allowed to be used in a non-isolated partition.
The only exception is the top cpuset which is allowed to contain boot
time isolated CPUs.

Commit ccac8e8de9 ("cgroup/cpuset: Fix remote root partition creation
problem") introduces a simplified scheme of including only partition
roots in sched domain generation. However, it does not properly account
for this exception case. This can result in leakage of isolated CPUs
into a sched domain.

Fix it by making sure that isolated CPUs are excluded from the top
cpuset before generating sched domains.

Also update the way the boot time isolated CPUs are handled in
test_cpuset_prs.sh to make sure that those isolated CPUs are really
isolated instead of just skipping them in the tests.

Fixes: ccac8e8de9 ("cgroup/cpuset: Fix remote root partition creation problem")
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2024-12-11 05:45:52 -10:00
..
.gitignore selftests: cgroup: Add basic tests for pids controller 2024-05-26 08:45:10 -10:00
Makefile selftests: cgroup: Add basic tests for pids controller 2024-05-26 08:45:10 -10:00
cgroup_util.c mm, memcg: cg2 memory{.swap,}.peak write tests 2024-09-01 20:25:53 -07:00
cgroup_util.h mm, memcg: cg2 memory{.swap,}.peak write tests 2024-09-01 20:25:53 -07:00
config mm: remove CONFIG_MEMCG_KMEM 2024-07-10 12:14:54 -07:00
memcg_protection.m
test_core.c Revert "selftests/cgroup: Drop define _GNU_SOURCE" 2024-05-20 09:00:15 -06:00
test_cpu.c selftests/cgroup: Fix compile error in test_cpu.c 2024-10-14 15:05:39 -10:00
test_cpuset.c selftests: cgroup: skip test_cgcore_lesser_ns_open when cgroup2 mounted without nsdelegate 2024-04-03 09:42:13 -10:00
test_cpuset_prs.sh cgroup/cpuset: Prevent leakage of isolated CPUs into sched domains 2024-12-11 05:45:52 -10:00
test_cpuset_v1_base.sh cgroup/cpuset: add sefltest for cpuset v1 2024-08-30 10:00:17 -10:00
test_cpuset_v1_hp.sh cgroup/cpuset: Add test_cpuset_v1_hp.sh 2024-04-08 07:39:38 -10:00
test_freezer.c selftests: cgroup: skip test_cgcore_lesser_ns_open when cgroup2 mounted without nsdelegate 2024-04-03 09:42:13 -10:00
test_hugetlb_memcg.c Revert "selftests/cgroup: Drop define _GNU_SOURCE" 2024-05-20 09:00:15 -06:00
test_kill.c selftests: cgroup: skip test_cgcore_lesser_ns_open when cgroup2 mounted without nsdelegate 2024-04-03 09:42:13 -10:00
test_kmem.c Revert "selftests/cgroup: Drop define _GNU_SOURCE" 2024-05-20 09:00:15 -06:00
test_memcontrol.c mm, memcg: cg2 memory{.swap,}.peak write tests 2024-09-01 20:25:53 -07:00
test_pids.c selftests: cgroup: Add basic tests for pids controller 2024-05-26 08:45:10 -10:00
test_stress.sh
test_zswap.c selftests: test_zswap: add test for hierarchical zswap.writeback 2024-09-03 21:15:47 -07:00
wait_inotify.c
with_stress.sh