Home
last modified time | relevance | path

Searched refs:execute_only_pkey (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/arch/x86/mm/
H A Dpkeys.c17 int execute_only_pkey = mm->context.execute_only_pkey; in __execute_only_pkey() local
21 if (execute_only_pkey == -1) { in __execute_only_pkey()
23 execute_only_pkey = mm_pkey_alloc(mm); in __execute_only_pkey()
24 if (execute_only_pkey < 0) in __execute_only_pkey()
37 !__pkru_allows_read(read_pkru(), execute_only_pkey)) { in __execute_only_pkey()
38 return execute_only_pkey; in __execute_only_pkey()
45 ret = arch_set_user_pkey_access(current, execute_only_pkey, in __execute_only_pkey()
52 mm_set_pkey_free(mm, execute_only_pkey); in __execute_only_pkey()
58 mm->context.execute_only_pkey in __execute_only_pkey()
[all...]
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dpkeys.c17 int execute_only_pkey = mm->context.execute_only_pkey; in __execute_only_pkey() local
21 if (execute_only_pkey == -1) { in __execute_only_pkey()
23 execute_only_pkey = mm_pkey_alloc(mm); in __execute_only_pkey()
24 if (execute_only_pkey < 0) in __execute_only_pkey()
37 !__pkru_allows_read(read_pkru(), execute_only_pkey)) { in __execute_only_pkey()
38 return execute_only_pkey; in __execute_only_pkey()
45 ret = arch_set_user_pkey_access(current, execute_only_pkey, in __execute_only_pkey()
52 mm_set_pkey_free(mm, execute_only_pkey); in __execute_only_pkey()
58 mm->context.execute_only_pkey in __execute_only_pkey()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s64/
H A Dpkeys.c164 * Mark the execute_only_pkey as not available for in pkey_early_init_devtree()
231 mm->context.execute_only_pkey = execute_only_key; in pkey_mm_init()
352 int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey() function
354 return mm->context.execute_only_pkey; in execute_only_pkey()
363 return (vma_pkey(vma) == vma->vm_mm->context.execute_only_pkey); in vma_is_pkey_exec_only()
384 pkey = execute_only_pkey(vma->vm_mm); in __arch_override_mprotect_pkey()
446 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
/kernel/linux/linux-6.6/arch/powerpc/mm/book3s64/
H A Dpkeys.c172 * Mark the execute_only_pkey as not available for in pkey_early_init_devtree()
311 mm->context.execute_only_pkey = execute_only_key; in pkey_mm_init()
373 int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey() function
375 return mm->context.execute_only_pkey; in execute_only_pkey()
384 return (vma_pkey(vma) == vma->vm_mm->context.execute_only_pkey); in vma_is_pkey_exec_only()
405 pkey = execute_only_pkey(vma->vm_mm); in __arch_override_mprotect_pkey()
467 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dmmu_context.h113 mm->context.execute_only_pkey = -1; in init_new_context()
159 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
H A Dpkeys.h27 static inline int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey() function
76 if (pkey == mm->context.execute_only_pkey) in mm_pkey_is_allocated()
H A Dmmu.h51 s16 execute_only_pkey; member
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dmmu_context.h154 mm->context.execute_only_pkey = -1; in init_new_context()
204 mm->context.execute_only_pkey = oldmm->context.execute_only_pkey; in arch_dup_pkeys()
H A Dpkeys.h25 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()
H A Dmmu.h68 s16 execute_only_pkey; member
/kernel/linux/linux-5.10/include/linux/
H A Dpkeys.h11 #define execute_only_pkey(mm) (0) macro
/kernel/linux/linux-6.6/include/linux/
H A Dpkeys.h13 #define execute_only_pkey(mm) (0) macro
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
H A Dpkeys.h127 extern int execute_only_pkey(struct mm_struct *mm);
/kernel/linux/linux-6.6/arch/powerpc/include/asm/
H A Dpkeys.h127 extern int execute_only_pkey(struct mm_struct *mm);
/kernel/linux/linux-5.10/arch/powerpc/include/asm/book3s/64/
H A Dmmu.h131 s16 execute_only_pkey; /* key holding execute-only protection */ member
/kernel/linux/linux-6.6/arch/powerpc/include/asm/book3s/64/
H A Dmmu.h134 s16 execute_only_pkey; /* key holding execute-only protection */ member
/kernel/linux/linux-5.10/mm/
H A Dmmap.c1477 pkey = execute_only_pkey(mm); in do_mmap()
/kernel/linux/linux-6.6/mm/
H A Dmmap.c1266 pkey = execute_only_pkey(mm); in do_mmap()

Completed in 15 milliseconds