[PATCH 0/4] selftests/mm: run all hugetlb cgroup reservation tests

From: Kurt Lin

Date: Fri Dec 04 2026 - 12:32:28 EST


Song's "selftests/mm: restore hidden hugetlb reservation scenarios" was
dropped from mm-unstable because it made the hugetlb category of the
linux-mm CI time out [1]. The time goes into a 60 second wait in the
cases that expect a reservation to fail. As there has been no follow-up,
this series carries Song's patch (3/4, unchanged) behind fixes for that
(1-2/4), and fixes the multiple cgroups test it had to leave skipped
(4/4). That test failed only because of bugs in the script.

Tested in a virtme-ng guest on mm-new: charge_reserved_hugetlb.sh
-cgroup-v2 passes all 84 checks in about 62 seconds, and
run_vmtests.sh -t hugetlb passes in 87 seconds. It also passes with
KASAN and lockdep on an mm-new that includes David's "mm/hugetlb:
various fixes (2)" v1. Not tested with cgroup v1 or other huge page
sizes.

Found and fixed with the help of an AI coding assistant.

[1] https://lore.kernel.org/20260714021630.1063823-1-husong@xxxxxxxxxx

---
Kurt Lin (3):
selftests/mm: don't wait for a hugetlb reservation that is expected to fail
selftests/mm: don't use killall --wait in charge_reserved_hugetlb.sh
selftests/mm: fix and enable the multiple cgroups hugetlb tests

Song Hu (1):
selftests/mm: restore hidden hugetlb reservation scenarios

.../selftests/mm/charge_reserved_hugetlb.sh | 62 +++++++++++-----------
1 file changed, 32 insertions(+), 30 deletions(-)
---
base-commit: 872ceec1e3caf227655a58f7407a9c8493dcf56f
change-id: 20261205-hugetlb-charge-multi-cgroup-c222845080f1

Best regards,
--
Kurt Lin <lylin1023@xxxxxxxxx>