-
- Downloads
lkdtm/bugs: Check that a per-task stack canary exists
Introduce REPORT_STACK_CANARY to check for differing stack canaries between two processes (i.e. that an architecture is correctly implementing per-task stack canaries), using the task_struct canary as the hint to locate in the stack. Requires that one of the processes being tested not be pid 1. Cc: Ard Biesheuvel <ardb@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20211022223826.330653-3-keescook@chromium.org Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- drivers/misc/lkdtm/bugs.c 77 additions, 0 deletionsdrivers/misc/lkdtm/bugs.c
- drivers/misc/lkdtm/core.c 1 addition, 0 deletionsdrivers/misc/lkdtm/core.c
- drivers/misc/lkdtm/lkdtm.h 1 addition, 0 deletionsdrivers/misc/lkdtm/lkdtm.h
- tools/testing/selftests/lkdtm/config 1 addition, 0 deletionstools/testing/selftests/lkdtm/config
- tools/testing/selftests/lkdtm/tests.txt 1 addition, 0 deletionstools/testing/selftests/lkdtm/tests.txt
Loading
Please register or sign in to comment