Skip to content

Commit a571a9a

Browse files
rfvirgilshuahkh
authored andcommitted
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/[email protected] Signed-off-by: Richard Fitzgerald <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 8ffd015 commit a571a9a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/kunit/configs/all_tests.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ CONFIG_KUNIT_EXAMPLE_TEST=y
1010
CONFIG_KUNIT_ALL_TESTS=y
1111

1212
CONFIG_FORTIFY_SOURCE=y
13+
CONFIG_INIT_STACK_ALL_PATTERN=y
1314

1415
CONFIG_IIO=y
1516

0 commit comments

Comments
 (0)