Lines Matching full:keys
26 * We give each process its own keys, which are shared by all threads. The keys
50 static __always_inline void ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys) in ptrauth_keys_init_kernel() argument
53 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_keys_init_kernel()
56 static __always_inline void ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys) in ptrauth_keys_switch_kernel() argument
61 __ptrauth_key_install_nosync(APIA, keys->apia); in ptrauth_keys_switch_kernel()
67 static inline void ptrauth_keys_install_user(struct ptrauth_keys_user *keys) in ptrauth_keys_install_user() argument
70 __ptrauth_key_install_nosync(APIB, keys->apib); in ptrauth_keys_install_user()
71 __ptrauth_key_install_nosync(APDA, keys->apda); in ptrauth_keys_install_user()
72 __ptrauth_key_install_nosync(APDB, keys->apdb); in ptrauth_keys_install_user()
76 __ptrauth_key_install_nosync(APGA, keys->apga); in ptrauth_keys_install_user()
79 static inline void ptrauth_keys_init_user(struct ptrauth_keys_user *keys) in ptrauth_keys_init_user() argument
82 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_keys_init_user()
83 get_random_bytes(&keys->apib, sizeof(keys->apib)); in ptrauth_keys_init_user()
84 get_random_bytes(&keys->apda, sizeof(keys->apda)); in ptrauth_keys_init_user()
85 get_random_bytes(&keys->apdb, sizeof(keys->apdb)); in ptrauth_keys_init_user()
89 get_random_bytes(&keys->apga, sizeof(keys->apga)); in ptrauth_keys_init_user()
91 ptrauth_keys_install_user(keys); in ptrauth_keys_init_user()
96 extern int ptrauth_set_enabled_keys(struct task_struct *tsk, unsigned long keys,
121 /* enable all keys */ \
134 #define ptrauth_set_enabled_keys(tsk, keys, enabled) (-EINVAL) argument