cregit-Linux how code gets into the kernel

Release 4.7 arch/x86/include/asm/pkeys.h

#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

PersonTokensPropCommitsCommitProp
dave hansendave hansen29100.00%1100.00%
Total29100.00%1100.00%

extern int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey);
static inline int arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) { if (!boot_cpu_has(X86_FEATURE_OSPKE)) return 0; return __arch_override_mprotect_pkey(vma, prot, pkey); }

Contributors

PersonTokensPropCommitsCommitProp
dave hansendave hansen39100.00%1100.00%
Total39100.00%1100.00%

#endif /*_ASM_X86_PKEYS_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
dave hansendave hansen130100.00%3100.00%
Total130100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
{% endraw %}