[Devel] [PATCH hci-8.1 2/4] kasan: let a config leave the KUnit test out under KUNIT_ALL_TESTS

Konstantin Khorenko khorenko at virtuozzo.com
Mon Oct 26 21:05:44 MSK 2026


KASAN_KUNIT_TEST hides its prompt when KUNIT_ALL_TESTS is set, so a
config that builds every KUnit test in cannot leave this one out.

The User Mode Linux KUnit kernel needs to. The test provokes KASAN
reports on purpose and expects them on the console, and hci-kunit
fails a UML run on any report it finds in the output.

Show the prompt unconditionally. The default still follows
KUNIT_ALL_TESTS, so configs that do not set the option keep their
value.

https://virtuozzo.atlassian.net/browse/VSTOR-143636
https://virtuozzo.atlassian.net/browse/VSTOR-148112

Feature: KUnit tests on User Mode Linux
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 lib/Kconfig.kasan | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.kasan b/lib/Kconfig.kasan
index f82889a830fae..b729a3eccf4e5 100644
--- a/lib/Kconfig.kasan
+++ b/lib/Kconfig.kasan
@@ -184,7 +184,7 @@ config KASAN_VMALLOC
 	  are checked. There is no additional memory usage.
 
 config KASAN_KUNIT_TEST
-	tristate "KUnit-compatible tests of KASAN bug detection capabilities" if !KUNIT_ALL_TESTS
+	tristate "KUnit-compatible tests of KASAN bug detection capabilities"
 	depends on KASAN && KUNIT && TRACEPOINTS
 	default KUNIT_ALL_TESTS
 	help

-- 
2.43.0



More information about the Devel mailing list