Skip to content

arm64: pointer authentication initialization cleanup

Mark Rutland linux-arm-kernel 1 version Applied

Status from this message: Applied to arm64 (for-next/ptr-auth), thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: remove ptrauth_keys_install_kernel sync argarch/arm64/include/asm/asm_pointer_auth.h arch/arm64/kernel/entry.S arch/arm64/mm/proc.S+19 -80 replies
2/2arm64: simplify ptrauth initializationarch/arm64/include/asm/asm_pointer_auth.h arch/arm64/include/asm/smp.h arch/arm64/kernel/asm-offsets.c +4 more+32 -692 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAmit Daniel Kachhap
1/2
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] arm64: pointer authentication initialization cleanup

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(-)
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel