linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: pointer authentication initialization cleanup
@ 2020-04-23 10:16 Mark Rutland
  2020-04-23 10:16 ` [PATCH 1/2] arm64: remove ptrauth_keys_install_kernel sync arg Mark Rutland
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mark Rutland @ 2020-04-23 10:16 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: mark.rutland, suzuki.poulose, catalin.marinas, james.morse,
	amit.kachhap, will

These patches refactor the pointer authentication initialization code to make
it easier to reason about and to reduce duplication of code.

The big wins are:

* Moving the initialization after the MMU has been enabled. This means we can
  initialize the keys using the same helpers as context switch, and don't need
  to temporarily duplicate them in secondary_data.

* Moving primary/secondary conditional initialization into the respective
  primary/secondary boot paths. This minimizes potentially-confusing control
  flow and still allows for code sharing via helper macros.

I've given this a spin on a foundation model, with userspace and kernel tests,
playing with CPU hotplug, etc.

Patches based on v5.7-rc2. These have no dependency on my fix queued in
for-next/core.

Thanks,
Mark.

Mark Rutland (2):
  arm64: remove ptrauth_keys_install_kernel sync arg
  arm64: simplify ptrauth initialization

 arch/arm64/include/asm/asm_pointer_auth.h | 43 +++++++++++++++++++++++++----
 arch/arm64/include/asm/smp.h              | 11 --------
 arch/arm64/kernel/asm-offsets.c           |  3 --
 arch/arm64/kernel/entry.S                 |  4 +--
 arch/arm64/kernel/head.S                  | 12 ++++++--
 arch/arm64/kernel/sleep.S                 |  1 -
 arch/arm64/kernel/smp.c                   |  8 ------
 arch/arm64/mm/proc.S                      | 46 +------------------------------
 8 files changed, 51 insertions(+), 77 deletions(-)

-- 
2.11.0


_______________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2020-04-28 10:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23 10:16 [PATCH 0/2] arm64: pointer authentication initialization cleanup Mark Rutland
2020-04-23 10:16 ` [PATCH 1/2] arm64: remove ptrauth_keys_install_kernel sync arg Mark Rutland
2020-04-23 10:16 ` [PATCH 2/2] arm64: simplify ptrauth initialization Mark Rutland
2020-04-23 14:35   ` Amit Kachhap
2020-04-23 16:06     ` Mark Rutland
2020-04-28 10:43 ` [PATCH 0/2] arm64: pointer authentication initialization cleanup Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).