lkdtm: Add REPORT_STACK for checking stack offsets

For validating the stack offset behavior, report the offset from a given
process's first seen stack address. Add s script to calculate the results
to the LKDTM kselftests.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210401232347.2791257-7-keescook@chromium.org
This commit is contained in:
Kees Cook 2021-04-01 16:23:47 -07:00 • committed by Thomas Gleixner
commit 68ef8735d2
6 changed files with 57 additions and 0 deletions