summaryrefslogtreecommitdiffstats
path: root/kernel/stackleak.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2022-04-27 18:31:26 +0100
committerKees Cook <keescook@chromium.org>2022-05-08 01:33:09 -0700
commitf171d695f3adfd8093272fa5776ef4a2c6b9cf08 (patch)
treef1bca1298a914dfe84352c07ec1394c815ff067d /kernel/stackleak.c
parentf03a50938decaa601f02294e4d057fb0048ca9ca (diff)
downloadlinux-stable-f171d695f3adfd8093272fa5776ef4a2c6b9cf08.tar.gz
linux-stable-f171d695f3adfd8093272fa5776ef4a2c6b9cf08.tar.bz2
linux-stable-f171d695f3adfd8093272fa5776ef4a2c6b9cf08.zip
lkdtm/stackleak: check stack boundaries
The stackleak code relies upon the current SP and lowest recorded SP falling within expected task stack boundaries. Check this at the start of the test. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Alexander Popov <alex.popov@linux.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Kees Cook <keescook@chromium.org> Cc: Will Deacon <will@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20220427173128.2603085-12-mark.rutland@arm.com
Diffstat (limited to 'kernel/stackleak.c')
0 files changed, 0 insertions, 0 deletions