Skip to content
Commit d053e71a authored by Daniel Kiss's avatar Daniel Kiss Committed by Will Deacon
Browse files

arm64: Conditionally configure PTR_AUTH key of the kernel.



If the kernel is not compiled with CONFIG_ARM64_PTR_AUTH_KERNEL=y,
then no PACI/AUTI instructions are expected while the kernel is running
so the kernel's key will not be used. Write of a system registers
is expensive therefore avoid if not required.

Signed-off-by: default avatarDaniel Kiss <daniel.kiss@arm.com>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210613092632.93591-3-daniel.kiss@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent b27a9f41
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment