mm-page_frag-reject-invalid-cpus-in-page_frag_test.patch removed from -mm tree
The quilt patch titled
Subject: mm/page_frag: reject invalid CPUs in page_frag_test
has been removed from the -mm tree. Its filename was
mm-page_frag-reject-invalid-cpus-in-page_frag_test.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Samuel Moelius <[email protected]>
Subject: mm/page_frag: reject invalid CPUs in page_frag_test
Date: Fri, 5 Jun 2026 18:41:52 +0000
The page_frag selftest module accepts test_push_cpu and test_pop_cpu as signed module parameters, then validates them by passing them directly to cpu_active().
That validation is itself unsafe for negative or out-of-range CPU numbers. For example, test_push_cpu=-1 is converted to a very large unsigned CPU number before cpu_active() reaches cpumask_test_cpu(), which trips the cpumask range check with CONFIG_DEBUG_PER_CPU_MAPS enabled.
Reject CPU values outside [0, nr_cpu_ids) before asking whether the CPU is active.
---
tools/testing/selftests/mm/page_frag/page_frag_test.c | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/selftests/mm/page_frag/page_frag_test.c renamed from tools/testing/selftests/mm/page_frag/page_frag_test.c~mm-page_frag-reject-invalid-cpus-in-page_frag_test +2 -0
@@ -131,6 +131,8 @@ static int __init page_frag_test_init(voinit_completion (&wait);if (test_alloc_len >PAGE_SIZE || test_alloc_len <=0 || + test_push_cpu <0 || test_push_cpu >= nr_cpu_ids || + test_pop_cpu <0 || test_pop_cpu >= nr_cpu_ids || !cpu_active (test_push_cpu) || !cpu_active (test_pop_cpu))return -EINVAL ;
_
Patches currently in -mm which might be from [email protected] are