summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/pointer_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/pointer_auth.c')
-rw-r--r--arch/arm64/kernel/pointer_auth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm64/kernel/pointer_auth.c b/arch/arm64/kernel/pointer_auth.c
index af5a638207f8..1e77736a4f66 100644
--- a/arch/arm64/kernel/pointer_auth.c
+++ b/arch/arm64/kernel/pointer_auth.c
@@ -19,7 +19,6 @@ int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg)
if (!arg) {
ptrauth_keys_init_user(keys);
- ptrauth_keys_switch_user(keys);
return 0;
}
@@ -41,7 +40,5 @@ int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg)
if (arg & PR_PAC_APGAKEY)
get_random_bytes(&keys->apga, sizeof(keys->apga));
- ptrauth_keys_switch_user(keys);
-
return 0;
}