[PATCH 0/2] Stackleak for arm64

2018-07-18 Thread Laura Abbott
Hi,

This is the new version of stackleak for arm64 to go with v14 of the
series for x86. I have a cover letter and few more cc's to go along with
some of the prep work.

I also apologize for terrible versioning on these series. Usually I try
to just reply to the top level patch with this addition and not actually
put a version on it. I negelcted to do that last time but as mentioned
this is inteded to go with v14.

Laura Abbott (2):
  arm64: Introduce current_stack_type
  arm64: Clear the stack

 arch/arm64/Kconfig|  1 +
 arch/arm64/include/asm/processor.h| 17 +
 arch/arm64/include/asm/sdei.h |  8 ++-
 arch/arm64/include/asm/stacktrace.h   | 94 ++-
 arch/arm64/kernel/entry.S |  7 ++
 arch/arm64/kernel/process.c   | 32 +
 arch/arm64/kernel/ptrace.c|  2 +-
 arch/arm64/kernel/sdei.c  | 21 +-
 arch/arm64/kvm/hyp/Makefile   |  3 +-
 drivers/firmware/efi/libstub/Makefile |  3 +-
 include/linux/stackleak.h |  1 +
 11 files changed, 165 insertions(+), 24 deletions(-)

-- 
2.17.1



[PATCH 0/2] Stackleak for arm64

2018-07-18 Thread Laura Abbott
Hi,

This is the new version of stackleak for arm64 to go with v14 of the
series for x86. I have a cover letter and few more cc's to go along with
some of the prep work.

I also apologize for terrible versioning on these series. Usually I try
to just reply to the top level patch with this addition and not actually
put a version on it. I negelcted to do that last time but as mentioned
this is inteded to go with v14.

Laura Abbott (2):
  arm64: Introduce current_stack_type
  arm64: Clear the stack

 arch/arm64/Kconfig|  1 +
 arch/arm64/include/asm/processor.h| 17 +
 arch/arm64/include/asm/sdei.h |  8 ++-
 arch/arm64/include/asm/stacktrace.h   | 94 ++-
 arch/arm64/kernel/entry.S |  7 ++
 arch/arm64/kernel/process.c   | 32 +
 arch/arm64/kernel/ptrace.c|  2 +-
 arch/arm64/kernel/sdei.c  | 21 +-
 arch/arm64/kvm/hyp/Makefile   |  3 +-
 drivers/firmware/efi/libstub/Makefile |  3 +-
 include/linux/stackleak.h |  1 +
 11 files changed, 165 insertions(+), 24 deletions(-)

-- 
2.17.1



[PATCH 0/2] Stackleak for arm64

2018-05-02 Thread Laura Abbott
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



[PATCH 0/2] Stackleak for arm64

2018-05-02 Thread Laura Abbott
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



Re: [PATCH 0/2] Stackleak for arm64

2018-02-21 Thread Alexander Popov
On 21.02.2018 04:13, Laura Abbott wrote:
> This is the arm64 version of the STACKLEAK plugin originall from
> grsecurity. See
> https://marc.info/?l=kernel-hardening=151880470609808 for the
> full x86 version. This is based on top of Kees' branch for stackleak
> and has been cleaned up to use a few macros from that branch.
> 
> Comments welcome, if there are no major objections Kees will queue this
> up to get some CI testing. This passed both of the LKDTM tests.

Hello, Laura,

Thank you. I'll take some time to learn your patches and test them on my LeMaker
HiKey board. I'll return with the feedback.

Best regards,
Alexander


Re: [PATCH 0/2] Stackleak for arm64

2018-02-21 Thread Alexander Popov
On 21.02.2018 04:13, Laura Abbott wrote:
> This is the arm64 version of the STACKLEAK plugin originall from
> grsecurity. See
> https://marc.info/?l=kernel-hardening=151880470609808 for the
> full x86 version. This is based on top of Kees' branch for stackleak
> and has been cleaned up to use a few macros from that branch.
> 
> Comments welcome, if there are no major objections Kees will queue this
> up to get some CI testing. This passed both of the LKDTM tests.

Hello, Laura,

Thank you. I'll take some time to learn your patches and test them on my LeMaker
HiKey board. I'll return with the feedback.

Best regards,
Alexander


[PATCH 0/2] Stackleak for arm64

2018-02-20 Thread Laura Abbott
This is the arm64 version of the STACKLEAK plugin originall from
grsecurity. See
https://marc.info/?l=kernel-hardening=151880470609808 for the
full x86 version. This is based on top of Kees' branch for stackleak
and has been cleaned up to use a few macros from that branch.

Comments welcome, if there are no major objections Kees will queue this
up to get some CI testing. This passed both of the LKDTM tests.

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/asm-offsets.c|   3 +
 arch/arm64/kernel/entry.S  | 108 +
 arch/arm64/kernel/process.c|  16 +
 drivers/firmware/efi/libstub/Makefile  |   3 +-
 scripts/Makefile.gcc-plugins   |   5 +-
 scripts/gcc-plugins/stackleak_plugin.c |   5 ++
 8 files changed, 145 insertions(+), 2 deletions(-)

-- 
2.14.3



[PATCH 0/2] Stackleak for arm64

2018-02-20 Thread Laura Abbott
This is the arm64 version of the STACKLEAK plugin originall from
grsecurity. See
https://marc.info/?l=kernel-hardening=151880470609808 for the
full x86 version. This is based on top of Kees' branch for stackleak
and has been cleaned up to use a few macros from that branch.

Comments welcome, if there are no major objections Kees will queue this
up to get some CI testing. This passed both of the LKDTM tests.

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/asm-offsets.c|   3 +
 arch/arm64/kernel/entry.S  | 108 +
 arch/arm64/kernel/process.c|  16 +
 drivers/firmware/efi/libstub/Makefile  |   3 +-
 scripts/Makefile.gcc-plugins   |   5 +-
 scripts/gcc-plugins/stackleak_plugin.c |   5 ++
 8 files changed, 145 insertions(+), 2 deletions(-)

-- 
2.14.3