summaryrefslogtreecommitdiffstats
path: root/drivers/misc/lkdtm.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-08-04 14:34:40 -0700
committerKees Cook <keescook@chromium.org>2017-08-15 12:27:35 -0700
commit93e78c6b14c42abe4018c815aeea2aa491522fae (patch)
treee45b36fdeb5f0daef6b312145783498ce96eba2f /drivers/misc/lkdtm.h
parent7b25a85c9d9f796c5be7ad3fb8b9553d3e2ed958 (diff)
downloadlinux-93e78c6b14c42abe4018c815aeea2aa491522fae.tar.gz
linux-93e78c6b14c42abe4018c815aeea2aa491522fae.tar.bz2
linux-93e78c6b14c42abe4018c815aeea2aa491522fae.zip
lkdtm: Add -fstack-protector-strong test
There wasn't an LKDTM test to distinguish between -fstack-protector and -fstack-protector-strong in use. This adds CORRUPT_STACK_STRONG to see the difference. Also adjusts the stack-clobber value to 0xff so execution won't potentially jump into userspace when the stack protector is missing. Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers/misc/lkdtm.h')
-rw-r--r--drivers/misc/lkdtm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/lkdtm.h b/drivers/misc/lkdtm.h
index 3c8627ca5f42..bfb6c45b6130 100644
--- a/drivers/misc/lkdtm.h
+++ b/drivers/misc/lkdtm.h
@@ -14,6 +14,7 @@ void lkdtm_EXCEPTION(void);
void lkdtm_LOOP(void);
void lkdtm_OVERFLOW(void);
void lkdtm_CORRUPT_STACK(void);
+void lkdtm_CORRUPT_STACK_STRONG(void);
void lkdtm_UNALIGNED_LOAD_STORE_WRITE(void);
void lkdtm_SOFTLOCKUP(void);
void lkdtm_HARDLOCKUP(void);