lkdtm: isolate stack corruption test
authorKees Cook <keescook@chromium.org>
Fri, 25 Oct 2013 01:05:42 +0000 (18:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:27:56 +0000 (11:27 -0800)
commit5bb21134853f6dc7bc16c7fcb24470e8676a3c54
tree74030287f925e7aa0e8bc90d36c78d7606cfbe67
parentadf0c46683b2c5b3ba261b21b68ad6e6b7592b89
lkdtm: isolate stack corruption test

commit 629c66a22c21b692b6e58b9c1d8fa56a60ccb52d upstream.

When tests were added to lkdtm that grew the stack frame, the stack
corruption test stopped working. This isolates the test in its own
function, and forces it not to be inlined.

Signed-off-by: Kees Cook <keescook@chromium.org>
Fixes: cc33c537c12f ("lkdtm: add "EXEC_*" triggers")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm.c