aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/lkdtm/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2021-04-01 16:23:47 -0700
committerThomas Gleixner <tglx@linutronix.de>2021-04-08 14:05:20 +0200
commit68ef8735d253f3d840082b78f996bf2d89ee6e5f (patch)
tree56d0efc5657399b907ca874ddea2a8140c3976e9 /tools/testing/selftests/lkdtm/Makefile
parentx86/entry: Enable random_kstack_offset support (diff)
downloadwireguard-linux-68ef8735d253f3d840082b78f996bf2d89ee6e5f.tar.xz
wireguard-linux-68ef8735d253f3d840082b78f996bf2d89ee6e5f.zip
lkdtm: Add REPORT_STACK for checking stack offsets
For validating the stack offset behavior, report the offset from a given process's first seen stack address. Add s script to calculate the results to the LKDTM kselftests. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/r/20210401232347.2791257-7-keescook@chromium.org
Diffstat (limited to 'tools/testing/selftests/lkdtm/Makefile')
-rw-r--r--tools/testing/selftests/lkdtm/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/lkdtm/Makefile b/tools/testing/selftests/lkdtm/Makefile
index 1bcc9ee990eb..c71109ceeb2d 100644
--- a/tools/testing/selftests/lkdtm/Makefile
+++ b/tools/testing/selftests/lkdtm/Makefile
@@ -5,6 +5,7 @@ include ../lib.mk
# NOTE: $(OUTPUT) won't get default value if used before lib.mk
TEST_FILES := tests.txt
+TEST_PROGS := stack-entropy.sh
TEST_GEN_PROGS = $(patsubst %,$(OUTPUT)/%.sh,$(shell awk '{print $$1}' tests.txt | sed -e 's/\#//'))
all: $(TEST_GEN_PROGS)