kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Fri, 11 Apr 2025 09:59:04 +0000 (10:59 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 14 Apr 2025 16:02:37 +0000 (10:02 -0600)
Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests.config. This helps
to detect use of uninitialized local variables.

This option found an uninitialized data bug in the cs_dsp test.

Link: https://lore.kernel.org/r/20250411095904.1593224-1-rf@opensource.cirrus.com
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/kunit/configs/all_tests.config

index cdd9782f9646ae340118102e35fe756a2d8a5673..4a60bb71fe721ccb668cc7e105cfc1aa40d9acb5 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_KUNIT_EXAMPLE_TEST=y
 CONFIG_KUNIT_ALL_TESTS=y
 
 CONFIG_FORTIFY_SOURCE=y
+CONFIG_INIT_STACK_ALL_PATTERN=y
 
 CONFIG_IIO=y