mbox series

[0/2] arm64: add Armv8.6 pointer authentication

Message ID 1582117240-15330-1-git-send-email-amit.kachhap@arm.com (mailing list archive)
Headers show
Series arm64: add Armv8.6 pointer authentication | expand

Message

Amit Daniel Kachhap Feb. 19, 2020, 1 p.m. UTC
Hi all,

These patch series adds support for Armv8.6 pointer authentication
enhanced mandatory features. These features are,

 * Enhanced PAC generation algorithm.
 * Generate fault when authenticate instruction fails.

For the first feature no code change is needed and for the second feature
a ptrauth fault handler is added.

More details can be found here [1].

This series is based on kernel version v5.6-rc2 and on recent in-kernel
ptrauth posted patches [2].

Regards,
Amit

[1]: https://community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/arm-architecture-developments-armv8-6-a
[2]: http://lists.infradead.org/pipermail/linux-arm-kernel/2020-February/711699.html

Amit Daniel Kachhap (2):
  arm64: ptrauth: add pointer authentication Armv8.6 enhanced feature
  arm64: kprobe: disable probe of fault prone ptrauth instruction

 arch/arm64/include/asm/esr.h           |  4 +++-
 arch/arm64/include/asm/exception.h     |  1 +
 arch/arm64/include/asm/insn.h          | 13 +++++++------
 arch/arm64/include/asm/sysreg.h        | 24 ++++++++++++++++--------
 arch/arm64/kernel/cpufeature.c         |  4 ++--
 arch/arm64/kernel/entry-common.c       | 25 +++++++++++++++++++++++++
 arch/arm64/kernel/insn.c               |  1 +
 arch/arm64/kernel/probes/decode-insn.c |  2 +-
 arch/arm64/kernel/traps.c              | 18 ++++++++++++++++++
 9 files changed, 74 insertions(+), 18 deletions(-)