linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] arm64: split ARM64_PTR_AUTH option to userspace and kernel
@ 2021-02-08 14:55 Daniel Kiss
  2021-02-08 14:55 ` [PATCH v3 1/2] arm64: Add ARM64_PTR_AUTH_KERNEL config option Daniel Kiss
  2021-02-08 14:55 ` [PATCH v3 2/2] arm64: Conditionally configure PTR_AUTH key of the kernel Daniel Kiss
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel Kiss @ 2021-02-08 14:55 UTC (permalink / raw)
  To: linux-arm-kernel, will; +Cc: Catalin.Marinas, pcc, Ard.Biesheuvel, Daniel Kiss

This patch series is to support pointer authentication in userspace
independently from the kernel use.

Use of pointer authentication in kernel depends on toolchain suppport
and might not be desired in production due to deployment problems.
Debugging the kernel also a bit harder with PAC. Let the distributions
choose where the pointer authentication is used. 
Config structure for BTI is similar.

This patch series can be cleanly applied on v5.12.rc6

The patch series has been tested on Arm FVP in all three
config combinations.

Changes from v2:
* Moved the toolchain version check under ARM64_PTR_AUTH_KERNEL.

Changes from v1:
* Keep the A key in register while running in the kernel.

Daniel Kiss (2):
  arm64: Add ARM64_PTR_AUTH_KERNEL config option
  arm64: Conditionally configure PTR_AUTH key of the kernel.

 arch/arm64/Kconfig                        | 33 +++++++-----
 arch/arm64/Makefile                       |  2 +-
 arch/arm64/include/asm/asm_pointer_auth.h | 63 +++++++++++++----------
 arch/arm64/include/asm/pointer_auth.h     | 20 +++++--
 arch/arm64/include/asm/processor.h        |  2 +
 arch/arm64/kernel/asm-offsets.c           |  4 ++
 drivers/misc/lkdtm/bugs.c                 |  6 +--
 7 files changed, 79 insertions(+), 51 deletions(-)

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

end of thread, other threads:[~2021-04-12 20:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 14:55 [PATCH v3 0/2] arm64: split ARM64_PTR_AUTH option to userspace and kernel Daniel Kiss
2021-02-08 14:55 ` [PATCH v3 1/2] arm64: Add ARM64_PTR_AUTH_KERNEL config option Daniel Kiss
2021-03-29 14:51   ` Will Deacon
2021-02-08 14:55 ` [PATCH v3 2/2] arm64: Conditionally configure PTR_AUTH key of the kernel Daniel Kiss
2021-03-29 14:51   ` Will Deacon
2021-04-12 20:17     ` Daniel Kiss

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).