All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: harden shadow call stack pointer handling
@ 2022-12-05 20:03 Ard Biesheuvel
  2022-12-05 20:03 ` [PATCH 1/2] arm64: Always load shadow stack pointer directly from the task struct Ard Biesheuvel
  2022-12-05 20:03 ` [PATCH 2/2] arm64: Stash shadow stack pointer in the task struct on interrupt Ard Biesheuvel
  0 siblings, 2 replies; 3+ messages in thread
From: Ard Biesheuvel @ 2022-12-05 20:03 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: will, catalin.marinas, mark.rutland, Ard Biesheuvel,
	Sami Tolvanen, Kees Cook

A couple of tweaks to the arm64 entry code to avoid loading the shadow
call stack pointer in a way that could potentially be unsafe in the
context of ROP attacks.

Cc: Sami Tolvanen <samitolvanen@google.com>
Cc: Kees Cook <keescook@chromium.org>

Ard Biesheuvel (2):
  arm64: Always load shadow stack pointer directly from the task struct
  arm64: Stash shadow stack pointer in the task struct on interrupt

 arch/arm64/include/asm/scs.h |  7 ++++---
 arch/arm64/kernel/entry.S    | 16 +++++++---------
 arch/arm64/kernel/head.S     |  2 +-
 3 files changed, 12 insertions(+), 13 deletions(-)

-- 
2.35.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-05 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-05 20:03 [PATCH 0/2] arm64: harden shadow call stack pointer handling Ard Biesheuvel
2022-12-05 20:03 ` [PATCH 1/2] arm64: Always load shadow stack pointer directly from the task struct Ard Biesheuvel
2022-12-05 20:03 ` [PATCH 2/2] arm64: Stash shadow stack pointer in the task struct on interrupt Ard Biesheuvel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.