]> Git Repo - J-linux.git/commitdiff
selftests/lkdtm: Add configs for stackleak and "after free" tests
authorMuhammad Usama Anjum <[email protected]>
Tue, 17 May 2022 13:29:31 +0000 (18:29 +0500)
committerKees Cook <[email protected]>
Tue, 17 May 2022 21:37:05 +0000 (14:37 -0700)
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 <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
tools/testing/selftests/lkdtm/config

index 3041236887394db4b518adff1ac896461ce0ecdc..5d52f64dfb43005f70f4309f6e8b73f031a19ad9 100644 (file)
@@ -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
This page took 0.04669 seconds and 4 git commands to generate.