]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/arm64/include/asm/pointer_auth.h
arm64: add prctl control for resetting ptrauth keys
[linux.git] / arch / arm64 / include / asm / pointer_auth.h
index 5ccf49b4dac38ff4decf900e2a1213ed694bd65a..80eb03afd6771c6a863711df5f8de3dbd6c98378 100644 (file)
@@ -63,6 +63,8 @@ static inline void ptrauth_keys_switch(struct ptrauth_keys *keys)
                __ptrauth_key_install(APGA, keys->apga);
 }
 
+extern int ptrauth_prctl_reset_keys(struct task_struct *tsk, unsigned long arg);
+
 /*
  * The EL0 pointer bits used by a pointer authentication code.
  * This is dependent on TBI0 being enabled, or bits 63:56 would also apply.
@@ -86,6 +88,7 @@ do {                                                                  \
        ptrauth_keys_switch(&(tsk)->thread_info.keys_user)
 
 #else /* CONFIG_ARM64_PTR_AUTH */
+#define ptrauth_prctl_reset_keys(tsk, arg)     (-EINVAL)
 #define ptrauth_strip_insn_pac(lr)     (lr)
 #define ptrauth_thread_init_user(tsk)
 #define ptrauth_thread_switch(tsk)