Skip to content

RFC draft of stack clearing for arm64

Laura Abbott kernel-hardening 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2stackleak: Update for arm64scripts/gcc-plugins/stackleak_plugin.c+20 -50 replies
2/2arm64: Clear the stackarch/arm64/Kconfig arch/arm64/include/asm/processor.h arch/arm64/kernel/asm-offsets.c +4 more+123 -29 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [kernel-hardening] [RFC][PATCH 0/2] draft of stack clearing for arm64

I made an attempt at implementing stack clearing for arm64 using roughly the same algorithm as x86. It passes some level of basic tests but it definitely needs more careful review and thought ("submit early and often").

As an added follow up, self-protection.rst should also be updated with some details about how stackleak actually works for people who want to follow on for other arches.

Laura Abbott (2):
stackleak: Update for arm64
arm64: Clear the stack

 arch/arm64/Kconfig                     |  1 +
 arch/arm64/include/asm/processor.h     |  3 ++
 arch/arm64/kernel/asm-offsets.c        |  3 ++
 arch/arm64/kernel/entry.S              | 92 ++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/process.c            | 18 +++++++
 drivers/firmware/efi/libstub/Makefile  |  3 +-
 scripts/Makefile.gcc-plugins           |  5 +-
 scripts/gcc-plugins/stackleak_plugin.c | 25 +++++++--
 8 files changed, 143 insertions(+), 7 deletions(-)
Signature · 1 line
2.7.5