From: Richard Fitzgerald Date: Fri, 11 Apr 2025 09:59:04 +0000 (+0100) Subject: kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests X-Git-Tag: block-6.16-20250606~30^2~11 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=a571a9a1b120264e24b41eddf1ac5140131bfa84;p=linux-block.git kunit: configs: Enable CONFIG_INIT_STACK_ALL_PATTERN in all_tests 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 Reviewed-by: David Gow Signed-off-by: Shuah Khan --- diff --git a/tools/testing/kunit/configs/all_tests.config b/tools/testing/kunit/configs/all_tests.config index cdd9782f9646..4a60bb71fe72 100644 --- a/tools/testing/kunit/configs/all_tests.config +++ b/tools/testing/kunit/configs/all_tests.config @@ -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