[PATCH v2 0/2] selftests/cgroup: Fix false positive failures in test_percpu_basic

From: Li Wang

Date: Thu Apr 30 2026 - 22:21:27 EST


This patch series addresses two separate issues that cause false
positive failures in the test_percpu_basic test within the cgroup
kmem selftests.

The first issue stems from a hardcoded assumption about the system
page size, which breaks the test on architectures with larger page
sizes.

The second issue is an overly strict memory check that fails to
account for the slab metadata allocated during cgroup creation.

v2:
* Replace my email with li.wang@xxxxxxxxx
* Adding Waiman's Reviewed-by tag

Li Wang (2):
selftests/cgroup: Fix hardcoded page size in test_percpu_basic
selftests/cgroup: include slab in test_percpu_basic memory check

tools/testing/selftests/cgroup/test_kmem.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

--
2.54.0