From: Mark Rutland <mark.rutland@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: mark.rutland@arm.com, suzuki.poulose@arm.com,
catalin.marinas@arm.com, james.morse@arm.com,
amit.kachhap@arm.com, will@kernel.org
Subject: [PATCH 0/2] arm64: pointer authentication initialization cleanup
Date: Thu, 23 Apr 2020 11:16:04 +0100 [thread overview]
Message-ID: <20200423101606.37601-1-mark.rutland@arm.com> (raw)
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
next reply other threads:[~2020-04-23 10:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-23 10:16 Mark Rutland [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200423101606.37601-1-mark.rutland@arm.com \
--to=mark.rutland@arm.com \
--cc=amit.kachhap@arm.com \
--cc=catalin.marinas@arm.com \
--cc=james.morse@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=suzuki.poulose@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).