All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] arm64: split ARM64_PTR_AUTH option to userspace and kernel
@ 2021-04-16 12:50 Daniel Kiss
  2021-04-16 12:50 ` [PATCH v4 1/2] arm64: Add ARM64_PTR_AUTH_KERNEL config option Daniel Kiss
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel Kiss @ 2021-04-16 12:50 UTC (permalink / raw)
  To: will; +Cc: Ard.Biesheuvel, Catalin.Marinas, linux-arm-kernel, pcc, 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.rc7

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

Changes from v3:
* Removed the duplicated #ifdef block in asm/pointer_auth.h.

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     | 44 +++++++++-------
 arch/arm64/include/asm/processor.h        |  2 +
 arch/arm64/kernel/asm-offsets.c           |  4 ++
 drivers/misc/lkdtm/bugs.c                 |  6 +--
 7 files changed, 90 insertions(+), 64 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] 4+ messages in thread

end of thread, other threads:[~2021-05-26 18:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16 12:50 [PATCH v4 0/2] arm64: split ARM64_PTR_AUTH option to userspace and kernel Daniel Kiss
2021-04-16 12:50 ` [PATCH v4 1/2] arm64: Add ARM64_PTR_AUTH_KERNEL config option Daniel Kiss
2021-04-16 12:50 ` [PATCH v4 2/2] arm64: Conditionally configure PTR_AUTH key of the kernel Daniel Kiss
2021-05-26 17:39 ` [PATCH v4 0/2] arm64: split ARM64_PTR_AUTH option to userspace and kernel Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.