#ifndef _ASM_X86_PKEYS_H #define _ASM_X86_PKEYS_H #define arch_max_pkey() (boot_cpu_has(X86_FEATURE_OSPKE) ? 16 : 1) extern int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, unsigned long init_val); /* * Try to dedicate one of the protection keys to be used as an * execute-only protection key. */ #define PKEY_DEDICATED_EXECUTE_ONLY 15 extern int __execute_only_pkey(struct mm_struct *mm);
static inline int execute_only_pkey(struct mm_struct *mm) { if (!boot_cpu_has(X86_FEATURE_OSPKE)) return 0; return __execute_only_pkey(mm); }Contributors
| Person | Tokens | Prop | Commits | CommitProp | |
| dave hansen | dave hansen | 29 | 100.00% | 1 | 100.00% |
| Total | 29 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| dave hansen | dave hansen | 39 | 100.00% | 1 | 100.00% |
| Total | 39 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp | |
| dave hansen | dave hansen | 130 | 100.00% | 3 | 100.00% |
| Total | 130 | 100.00% | 3 | 100.00% |