[PATCH v2 1/6] armv8: Disable pointer authentication traps for EL1
Tom Rini
trini at konsulko.com
Fri Sep 3 00:41:47 CEST 2021
On Thu, Aug 19, 2021 at 04:53:09PM +0100, Peter Hoyes wrote:
> From: Peter Hoyes <Peter.Hoyes at arm.com>
>
> The use of ARMv8.3 pointer authentication (PAuth) is governed by fields
> in HCR_EL2, which trigger a 'trap to EL2' if not enabled. The reset
> value of these fields is 'architecturally unknown' so we must ensure
> that the fields are enabled (to disable the traps) if we are entering
> the kernel at EL1.
>
> The APK field disables PAuth instruction traps and the API field
> disables PAuth register traps
>
> Add code to disable the traps in armv8_switch_to_el1_m. Prior to doing
> so, it checks fields in the ID_AA64ISAR1_EL1 register to ensure pointer
> authentication is supported by the hardware.
>
> The runtime checks require a second temporary register, so add this to
> the EL1 transition macro signature and update 2 call sites.
>
> Signed-off-by: Peter Hoyes <Peter.Hoyes at arm.com>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210902/1c585ee6/attachment.sig>
More information about the U-Boot
mailing list