[PATCH v3 0/2] AARCH64: Enable GCC-based Shadow Call Stack

Dan Li
2022-03-03T07:33:55Z

Shadow call stacks will be available in GCC >= 12, this series makes
the corresponding kernel configuration available when compiling
the kernel with the gcc and adds corresponding tests in lkdtm.

Dan Li (2):
AARCH64: Add gcc Shadow Call Stack support
lkdtm: Add Shadow Call Stack tests

arch/Kconfig | 19 +++----
arch/arm64/Kconfig | 2 +-
drivers/misc/lkdtm/Makefile | 1 +
drivers/misc/lkdtm/core.c | 2 +
drivers/misc/lkdtm/lkdtm.h | 4 ++
drivers/misc/lkdtm/scs.c | 67 +++++++++++++++++++++++++
include/linux/compiler-gcc.h | 4 ++
tools/testing/selftests/lkdtm/tests.txt | 2 +
8 files changed, 91 insertions(+), 10 deletions(-)
create mode 100644 drivers/misc/lkdtm/scs.c

--
2.17.1