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

From: Dan Li
Date: Thu Mar 03 2022 - 02:33:56 EST


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