Lines Matching refs:execute_only_pkey
18 int execute_only_pkey = mm->context.execute_only_pkey; in __execute_only_pkey() local
22 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()
68 if (vma_pkey(vma) != vma->vm_mm->context.execute_only_pkey) in vma_is_pkey_exec_only()
93 pkey = execute_only_pkey(vma->vm_mm); in __arch_override_mprotect_pkey()