Skip to content
Commit 03487be7 authored by Kristina Martsenko's avatar Kristina Martsenko
Browse files

arm64: initialize and switch ptrauth kernel keys



Set up keys to use pointer authentication within the kernel. The kernel
will be compiled with APIAKey instructions, the other keys are currently
unused. Each task is given its own APIAKey, which is initialized during
fork. The key is changed during context switch and on kernel entry from
EL0.

The keys for idle threads need to be set before calling any C functions,
because it is not possible to enter and exit a function with different
keys.

Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: Kristina Martsenko's avatarKristina Martšenko <kristina.martsenko@arm.com>
parent 6fa2e1c1
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