diff options
author | Alexander Popov <alex.popov@linux.com> | 2018-08-17 01:17:00 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2018-09-04 20:35:47 +0300 |
commit | f90d1e0c7804b52e12fea501aa46a12c1ff6a567 (patch) | |
tree | f47785497cfa578ec8da7d9941382ff17a3a2063 /drivers/misc/lkdtm/Makefile | |
parent | 10e9ae9fabaf96c8e5227c1cd4827d58b3aa406d (diff) | |
download | linux-f90d1e0c7804b52e12fea501aa46a12c1ff6a567.tar.xz |
lkdtm: Add a test for STACKLEAK
Introduce an lkdtm test for the STACKLEAK feature: check that the
current task stack is properly erased (filled with STACKLEAK_POISON).
Signed-off-by: Alexander Popov <alex.popov@linux.com>
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Tested-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/lkdtm/Makefile')
-rw-r--r-- | drivers/misc/lkdtm/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/lkdtm/Makefile b/drivers/misc/lkdtm/Makefile index 3370a4138e94..951c984de61a 100644 --- a/drivers/misc/lkdtm/Makefile +++ b/drivers/misc/lkdtm/Makefile @@ -8,7 +8,9 @@ lkdtm-$(CONFIG_LKDTM) += perms.o lkdtm-$(CONFIG_LKDTM) += refcount.o lkdtm-$(CONFIG_LKDTM) += rodata_objcopy.o lkdtm-$(CONFIG_LKDTM) += usercopy.o +lkdtm-$(CONFIG_LKDTM) += stackleak.o +KASAN_SANITIZE_stackleak.o := n KCOV_INSTRUMENT_rodata.o := n OBJCOPYFLAGS := |