Lines Matching refs:execute_only_pkey
25 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()
80 if (vma_pkey(vma) != vma->vm_mm->context.execute_only_pkey) in vma_is_pkey_exec_only()
105 pkey = execute_only_pkey(vma->vm_mm); in __arch_override_mprotect_pkey()