Skip to contentSkip to conversation

lib-test_vmallocc-restrict-default-test-mask-to-avoid-test-warnings.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 10, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: lib/test_vmalloc.c: restrict default test mask to avoid test warnings
has been removed from the -mm tree. Its filename was
lib-test_vmallocc-restrict-default-test-mask-to-avoid-test-warnings.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: "Uladzislau Rezki (Sony)" <[email protected]>
Subject: lib/test_vmalloc.c: restrict default test mask to avoid test warnings
Date: Mon, 23 Jun 2025 20:40:35 +0200

When the vmalloc test is built into the kernel, it runs automatically during the boot. The current-default "run_test_mask" includes all test cases, including those which are designed to fail and which trigger kernel warnings.

These kernel splats can be misinterpreted as actual kernel bugs, leading to false alarms and unnecessary reports.

To address this, limit the default test mask to only the first few tests which are expected to pass cleanly. These tests are safe and should not generate any warnings unless there is a real bug.

Users who wish to explicitly run specific test cases have to pass the run_test_mask as a boot parameter or at module load time.

---

 lib/test_vmalloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/test_vmalloc.c renamed from lib/test_vmalloc.c~lib-test_vmallocc-restrict-default-test-mask-to-avoid-test-warnings +1 -1
@@ -41,7 +41,7 @@ __param(int, nr_pages, 0,
 __param(bool, use_huge, false,
 	"Use vmalloc_huge in fix_size_alloc_test");
 
-__param(int, run_test_mask, INT_MAX,
+__param(int, run_test_mask, 7,
 	"Set tests specified in the mask.\n\n"
 		"\t\tid: 1,    name: fix_size_alloc_test\n"
 		"\t\tid: 2,    name: full_fit_alloc_test\n"

_

Patches currently in -mm which might be from [email protected] are