Home
last modified time | relevance | path

Searched refs:execute_only_pkey (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/arch/x86/mm/
Dpkeys.c25 int execute_only_pkey = mm->context.execute_only_pkey; in __execute_only_pkey() local
29 if (execute_only_pkey == -1) { in __execute_only_pkey()
31 execute_only_pkey = mm_pkey_alloc(mm); in __execute_only_pkey()
32 if (execute_only_pkey < 0) in __execute_only_pkey()
48 !__pkru_allows_read(read_pkru(), execute_only_pkey)) { in __execute_only_pkey()
50 return execute_only_pkey; in __execute_only_pkey()
58 ret = arch_set_user_pkey_access(current, execute_only_pkey, in __execute_only_pkey()
65 mm_set_pkey_free(mm, execute_only_pkey); in __execute_only_pkey()
71 mm->context.execute_only_pkey = execute_only_pkey; in __execute_only_pkey()
72 return execute_only_pkey; in __execute_only_pkey()
[all …]
/Linux-v4.19/arch/powerpc/mm/
Dpkeys.c168 mm->context.execute_only_pkey = execute_only_key; in pkey_mm_init()
320 return mm->context.execute_only_pkey; in __execute_only_pkey()
329 return (vma_pkey(vma) == vma->vm_mm->context.execute_only_pkey); in vma_is_pkey_exec_only()
350 pkey = execute_only_pkey(vma->vm_mm); in __arch_override_mprotect_pkey()
/Linux-v4.19/arch/x86/include/asm/
Dpkeys.h22 static inline int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey() function
71 if (pkey == mm->context.execute_only_pkey) in mm_pkey_is_allocated()
Dmmu.h51 s16 execute_only_pkey; member
Dmmu_context.h194 mm->context.execute_only_pkey = -1; in init_new_context()
/Linux-v4.19/include/linux/
Dpkeys.h11 #define execute_only_pkey(mm) (0) macro
/Linux-v4.19/arch/powerpc/include/asm/book3s/64/
Dmmu.h153 s16 execute_only_pkey; /* key holding execute-only protection */ member
/Linux-v4.19/arch/powerpc/include/asm/
Dpkeys.h151 static inline int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey() function
/Linux-v4.19/mm/
Dmmap.c1418 pkey = execute_only_pkey(mm); in do_mmap()