Kristina Martsenko be12984256 arm64: install user ptrauth keys at kernel exit time
As we're going to enable pointer auth within the kernel and use a
different APIAKey for the kernel itself, so move the user APIAKey
switch to EL0 exception return.

The other 4 keys could remain switched during task switch, but are also
moved to keep things consistent.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: James Morse <james.morse@arm.com>
Reviewed-by: Vincenzo Frascino <Vincenzo.Frascino@arm.com>
Signed-off-by: Kristina Martsenko <kristina.martsenko@arm.com>
[Amit: commit msg, re-positioned the patch, comments]
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2020-03-18 09:50:19 +00:00
..
2020-02-09 16:05:50 -08:00
2020-02-04 03:05:24 +00:00
2020-02-15 13:16:47 -08:00
2020-02-04 11:58:07 +00:00
2020-02-09 16:05:50 -08:00
2020-02-04 11:58:07 +00:00
2020-02-09 16:05:50 -08:00
2020-02-22 18:02:10 -08:00
2020-02-07 12:22:29 -08:00