lkdtm: Add -fstack-protector-strong test
authorKees Cook <keescook@chromium.org>
Fri, 4 Aug 2017 21:34:40 +0000 (14:34 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 15 Aug 2017 19:27:35 +0000 (12:27 -0700)
commit93e78c6b14c42abe4018c815aeea2aa491522fae
treee45b36fdeb5f0daef6b312145783498ce96eba2f
parent7b25a85c9d9f796c5be7ad3fb8b9553d3e2ed958
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>
drivers/misc/lkdtm.h
drivers/misc/lkdtm_bugs.c
drivers/misc/lkdtm_core.c