>From f06c03ef3ce4c21d15416e071d3a7e2bab40928a Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 7 Mar 2019 21:53:48 +0000 Subject: [PATCH 21/22] sys/prctl.h: add PR_PAC_RESET_KEYS from linux v5.0 aarch64 pointer authentication code related prctl that allows reinitializing the key for the thread, added in linux commit ba830885656414101b2f8ca88786524d4bb5e8c1 --- include/sys/prctl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index 07a3490b..4b6c8918 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -146,6 +146,13 @@ struct prctl_mm_map { #define PR_SPEC_DISABLE (1UL << 2) #define PR_SPEC_FORCE_DISABLE (1UL << 3) +#define PR_PAC_RESET_KEYS 54 +# define PR_PAC_APIAKEY (1UL << 0) +# define PR_PAC_APIBKEY (1UL << 1) +# define PR_PAC_APDAKEY (1UL << 2) +# define PR_PAC_APDBKEY (1UL << 3) +# define PR_PAC_APGAKEY (1UL << 4) + int prctl (int, ...); #ifdef __cplusplus -- 2.19.1