diff options
author | Muhammad Usama Anjum <usama.anjum@collabora.com> | 2022-05-17 16:29:31 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-05-18 00:37:05 +0300 |
commit | 38c84c997d40f56273077af5f8ff3e6317d772b7 (patch) | |
tree | 0e9dd64ccf1a2fa5d7b867da9ddd7ae5c0691a5d | |
parent | fc34eec6869a5882fd339f4e200fad21eb284093 (diff) | |
download | linux-38c84c997d40f56273077af5f8ff3e6317d772b7.tar.xz |
selftests/lkdtm: Add configs for stackleak and "after free" tests
Add config options which are needed for LKDTM sub-tests:
STACKLEAK_ERASING test needs GCC_PLUGIN_STACKLEAK config.
READ_AFTER_FREE and READ_BUDDY_AFTER_FREE tests need
INIT_ON_FREE_DEFAULT_ON config.
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220517132932.1484719-1-usama.anjum@collabora.com
-rw-r--r-- | tools/testing/selftests/lkdtm/config | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/lkdtm/config b/tools/testing/selftests/lkdtm/config index 304123688739..5d52f64dfb43 100644 --- a/tools/testing/selftests/lkdtm/config +++ b/tools/testing/selftests/lkdtm/config @@ -2,8 +2,10 @@ CONFIG_LKDTM=y CONFIG_DEBUG_LIST=y CONFIG_SLAB_FREELIST_HARDENED=y CONFIG_FORTIFY_SOURCE=y +CONFIG_GCC_PLUGIN_STACKLEAK=y CONFIG_HARDENED_USERCOPY=y CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y +CONFIG_INIT_ON_FREE_DEFAULT_ON=y CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y CONFIG_UBSAN=y CONFIG_UBSAN_BOUNDS=y |