Skip to contentSkip to conversation

kfence-test-fail-fast-if-disabled-at-boot.patch removed from -mm tree

merged [email protected] 1 participant 1 message Sep 9, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kfence: test: fail fast if disabled at boot
has been removed from the -mm tree. Its filename was
kfence-test-fail-fast-if-disabled-at-boot.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Marco Elver <[email protected]>
Subject: kfence: test: fail fast if disabled at boot

Fail kfence_test fast if KFENCE was disabled at boot, instead of each test case trying several seconds to allocate from KFENCE and failing. KUnit will fail all test cases if kunit_suite::init returns an error.

Even if KFENCE was disabled, we still want the test to fail, so that CI systems that parse KUnit output will alert on KFENCE being disabled (accidentally or otherwise).

---

 mm/kfence/kfence_test.c |    3 +++
 1 file changed, 3 insertions(+)
mm/kfence/kfence_test.c renamed from mm/kfence/kfence_test.c~kfence-test-fail-fast-if-disabled-at-boot +3 -0
@@ -789,6 +789,9 @@ static int test_init(struct kunit *test)
 	unsigned long flags;
 	int i;
 
+	if (!__kfence_pool)
+		return -EINVAL;
+
 	spin_lock_irqsave(&observed.lock, flags);
 	for (i = 0; i < ARRAY_SIZE(observed.lines); i++)
 		observed.lines[i][0] = '\0';

_

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