|
|
Log in / Subscribe / Register

Stackleak for arm64

From:  Laura Abbott <labbott-AT-redhat.com>
To:  Alexander Popov <alex.popov-AT-linux.com>, Kees Cook <keescook-AT-chromium.org>, Mark Rutland <mark.rutland-AT-arm.com>, Ard Biesheuvel <ard.biesheuvel-AT-linaro.org>
Subject:  [PATCH 0/2] Stackleak for arm64
Date:  Wed, 2 May 2018 13:33:24 -0700
Message-ID:  <20180502203326.9491-1-labbott@redhat.com>
Cc:  Laura Abbott <labbott-AT-redhat.com>, kernel-hardening-AT-lists.openwall.com, linux-arm-kernel-AT-lists.infradead.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

This is an extension of the arm64 stackleak plugin, based on top of the
v11 version for x86. The biggest change from the previous version is the
conversion from assembly to C. It's mostly taken straight from the x86
version modulo a few cleanups and seems to work just fine. If this gets
Acks, I'd like Kees to start carrying in his tree for -next.

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

 arch/arm64/Kconfig                     |  1 +
 arch/arm64/include/asm/processor.h     |  6 ++++
 arch/arm64/kernel/Makefile             |  3 ++
 arch/arm64/kernel/entry.S              |  6 ++++
 arch/arm64/kernel/erase.c              | 55 ++++++++++++++++++++++++++++++++++
 arch/arm64/kernel/process.c            | 16 ++++++++++
 drivers/firmware/efi/libstub/Makefile  |  3 +-
 scripts/Makefile.gcc-plugins           |  5 +++-
 scripts/gcc-plugins/stackleak_plugin.c |  4 +++
 9 files changed, 97 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm64/kernel/erase.c

-- 
2.14.3



Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds