Commit 90eefbbe authored by Amit Kachhap's avatar Amit Kachhap

arm64: suspend: restore the kernel ptrauth keys

This patch restores the kernel keys from current task during
cpu resume after the mmu is turned on and ptrauth is enabled.
Signed-off-by: Amit Kachhap's avatarAmit Daniel Kachhap <amit.kachhap@arm.com>
parent 64342f2b
......@@ -2,6 +2,7 @@
#include <linux/errno.h>
#include <linux/linkage.h>
#include <asm/asm-offsets.h>
#include <asm/asm_pointer_auth.h>
#include <asm/assembler.h>
#include <asm/smp.h>
......@@ -134,6 +135,11 @@ ENTRY(_cpu_resume)
*/
bl cpu_do_resume
#ifdef CONFIG_ARM64_PTR_AUTH
get_current_task x1
ptrauth_keys_install_kernel x1, x2, x3, x4
#endif
#ifdef CONFIG_KASAN
mov x0, sp
bl kasan_unpoison_task_stack_below
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment