From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796459755; b=NZU+oD1v11poZ757ShbSFEkbpOHT2ohvH8pOHMH2qdIE30VdQ7FxZvu/2JWeM+MA8nkf DiqWwFcoHg3WbOoAhGQ0eG9Xj/sUkftFJ8rfc6DSgcJoNg9misbmJj3QDxjPlo4Y5WOjZ QDLsd+9jYJ8Ksi1ThO8R5RxuWwT4bFZ5nBk08AiA1Ae6iHvGwQfQ3XnvkLm7OyzOu0rGp yccEunwXgbjRsH8q1jqWbZR6kXzs/PJo4f+JzSIAvdY6Kdxa3BDfYJbvTW+jVBj3/FkEu JJe1P78ugdv6MXBbm/iZum8f/SvaqetiJzwknIWjXNK+HnPJKdyoPXOwKTelYsBtkNg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796459755; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=KnxNq/J96aLsxMiauxJzFRNpjl8X+A1SgcTqGwEAEbo=; b=ifAZjLqu8MbPJ+i/Nq6xHB0kMZc6v+QoU+bws3HHGVEmiq73uvBTMLdrW1b/Q4r93/O8 K/az0ECOC8lpt8IE75v5mhGTj4+KoSK/6wa/NCVJW9H15NQg7MAqs+rTTB8dD82BW0TM0 rDaecC513mxTTVHFlocAQ0Yc56AkYndb+YYNn04paEUasHwDOnbaSsdcNmNQ7xaCPSrsM tW663ZzusyY5R4T/4EB7ak90x0f4ybxj0le+efG6IvYWlI7xo7UKmY65IJYhGm1FgZeUw 1dB2m6lrobxbJXagtp15ioEL1FZEae4rDy6Ds1gh6yUQjIB6RwAkRhwffN8WjkmeAeQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=tg6cRyYi; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9502B606A322 for ; Sat, 5 Dec 2026 08:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=tg6cRyYi Received: by smtp.kernel.org (Postfix) with ESMTPSA id B83091F0092B; Sat, 5 Dec 2026 08:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1796459754; bh=KnxNq/J96aLsxMiauxJzFRNpjl8X+A1SgcTqGwEAEbo=; h=Date:To:From:In-Reply-To:References:Subject; b=tg6cRyYiZkR6ItExDCeiMGHrgUMkcYRIFcviNanZ+dGKydxVTsIFuWtgupcMcIbzO jdsE06BimZkeIJHbk4Ds/GMQowRhDJ13LDdGbsoqm5s99X+RhyQIUtbBCon58ZpNAi M91+f85LYgD680d9/hQaYKp7oNQfvPCChitfWqSk= Date: Sat, 05 Dec 2026 00:35:54 -0800 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org, shuah@kernel.org,sayalip@linux.ibm.com,rppt@kernel.org,mhocko@suse.com, lylin1023@gmail.com,li.wang@linux.dev,liam@infradead.org,david@kernel.org, almasrymina@google.com,husong@kylinos.cn,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261205-hugetlb-charge-multi-cgroup-v1-3-e88105afc12a@gmail.com> References: <20261205-hugetlb-charge-multi-cgroup-v1-3-e88105afc12a@gmail.com> Subject: + selftests-mm-restore-hidden-hugetlb-reservation-scenarios.patch added to mm-new branch Message-Id: <20261205083554.B83091F0092B@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: selftests/mm: restore hidden hugetlb reservation scenarios has been added to the -mm mm-new branch. Its filename is selftests-mm-restore-hidden-hugetlb-reservation-scenarios.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-restore-hidden-hugetlb-reservation-scenarios.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Song Hu Subject: selftests/mm: restore hidden hugetlb reservation scenarios Date: Sat, 05 Dec 2026 01:31:59 +0800 A stray 'continue' in the main loop of charge_reserved_hugetlb.sh made the "more than reservation", "more than cgroup limit", and "multiple cgroups" scenarios unreachable, so they never ran. Remove it so the first two run again. The third, run_multiple_cgroup_test(), is separately broken -- a backslash line-continuation breaks its local declarations and its hugetlb reservation accounting does not charge as expected -- and has never run in CI; skip it explicitly with a comment until fixed. Also correct two `[[ "$method" == 2"" ]]` typos (harmless empty-string concatenation) to plain `2`. Link: https://patch.msgid.link/20261205-hugetlb-charge-multi-cgroup-v1-3-e88105afc12a@gmail.com Signed-off-by: Song Hu Signed-off-by: Kurt Lin Signed-off-by: Andrew Morton Cc: David Hildenbrand Cc: Liam R. Howlett Cc: Vlastimil Babka Cc: Mike Rapoport Cc: Michal Hocko Cc: Shuah Khan Cc: Mina Almasry Cc: Sayali Patil Cc: Zi Yan Cc: Li Wang tools/testing/selftests/mm/charge_reserved_hugetlb.sh | 14 +++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) --- a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh~selftests-mm-restore-hidden-hugetlb-reservation-scenarios +++ a/tools/testing/selftests/mm/charge_reserved_hugetlb.sh @@ -450,11 +450,11 @@ for populate in "" "-o"; do fi # Skip populated shmem tests. Doesn't seem to be supported. - if [[ "$method" == 2"" ]] && [[ "$populate" == "-o" ]]; then + if [[ "$method" == 2 ]] && [[ "$populate" == "-o" ]]; then continue fi - if [[ "$method" == 2"" ]] && [[ "$reserve" == "-n" ]]; then + if [[ "$method" == 2 ]] && [[ "$reserve" == "-n" ]]; then continue fi @@ -507,7 +507,6 @@ for populate in "" "-o"; do echo 'PASS' cleanup - continue echo echo echo @@ -525,6 +524,15 @@ for populate in "" "-o"; do cleanup + # The "multiple cgroups" scenario (run_multiple_cgroup_test) is + # multiply broken and has never run in CI: a backslash + # line-continuation breaks its local declarations, it passes + # reservation sizes in bytes rather than pages (unlike + # run_test), and its assertions compare page counts to byte + # values. Skip it until properly rewritten; the two scenarios + # above are restored by this change. + continue + echo echo echo _ Patches currently in -mm which might be from husong@kylinos.cn are selftests-mm-restore-hidden-hugetlb-reservation-scenarios.patch