diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2025-04-11 10:59:04 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2025-04-14 10:02:37 -0600 |
commit | a571a9a1b120264e24b41eddf1ac5140131bfa84 (patch) | |
tree | 7a403f26fe12cd380abd5f7cd5bad8aa855b7436 | |
parent | 8ffd015db85fea3e15a77027fda6c02ced4d2444 (diff) |
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 <rf@opensource.cirrus.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
-rw-r--r-- | tools/testing/kunit/configs/all_tests.config | 1 |
1 files changed, 1 insertions, 0 deletions
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 |