Searched refs:execute_only_pkey (Results 1 – 9 of 9) sorted by relevance
18 int execute_only_pkey = mm->context.execute_only_pkey; in __execute_only_pkey() local22 if (execute_only_pkey == -1) { in __execute_only_pkey()24 execute_only_pkey = mm_pkey_alloc(mm); in __execute_only_pkey()25 if (execute_only_pkey < 0) in __execute_only_pkey()38 !__pkru_allows_read(read_pkru(), execute_only_pkey)) { in __execute_only_pkey()39 return execute_only_pkey; in __execute_only_pkey()46 ret = arch_set_user_pkey_access(current, execute_only_pkey, in __execute_only_pkey()53 mm_set_pkey_free(mm, execute_only_pkey); in __execute_only_pkey()59 mm->context.execute_only_pkey = execute_only_pkey; in __execute_only_pkey()60 return execute_only_pkey; in __execute_only_pkey()[all …]
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() function354 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()
113 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()
27 static inline int execute_only_pkey(struct mm_struct *mm) in execute_only_pkey() function76 if (pkey == mm->context.execute_only_pkey) in mm_pkey_is_allocated()
51 s16 execute_only_pkey; member
11 #define execute_only_pkey(mm) (0) macro
127 extern int execute_only_pkey(struct mm_struct *mm);
131 s16 execute_only_pkey; /* key holding execute-only protection */ member
1463 pkey = execute_only_pkey(mm); in do_mmap()