arm64: pointer authentication initialization cleanup
Status from this message: Applied to arm64 (for-next/ptr-auth), thanks!
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | arm64: remove ptrauth_keys_install_kernel sync argarch/ arch/ arch/ | +19 | 0 replies | |
| 2/2 | arm64: simplify ptrauth initializationarch/ arch/ arch/ +4 more | +32 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Amit Daniel Kachhap |
|---|---|
| 1/2 | |
| 2/2 | T-b R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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