Lines Matching refs:execute_only_pkey
17 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 = execute_only_pkey; in __execute_only_pkey()
59 return execute_only_pkey; in __execute_only_pkey()
67 if (vma_pkey(vma) != vma->vm_mm->context.execute_only_pkey) in vma_is_pkey_exec_only()
92 pkey = execute_only_pkey(vma->vm_mm); in __arch_override_mprotect_pkey()