Skip to content

AARCH64: Enable GCC-based Shadow Call Stack

Dan Li linux-arm-kernel linux-hardening linux-kselftest lkml llvm 3 versions – Applied

Status from this message: Applied to for-next/hardening, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 9 repliesApplied
  2. v21 patch 11 repliesSuperseded
  3. v11 patch 11 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2AARCH64: Add gcc Shadow Call Stack supportarch/Kconfig arch/arm64/Kconfig include/linux/compiler-gcc.h+15 -101 reply
2/2lkdtm: Add Shadow Call Stack testsdrivers/misc/lkdtm/Makefile drivers/misc/lkdtm/core.c drivers/misc/lkdtm/lkdtm.h +2 more+76 -012 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchNathan ChancellorKees CookNick Desaulniers
1/2R-b R-b R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

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

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
Signature · 1 line
2.17.1