Lines Matching defs:pkey
20 /* Do we need to assign a pkey for mm's execute-only maps? */
32 * first and assume that if the execute-only pkey is
76 int __arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey)
82 if (pkey != -1)
83 return pkey;
92 pkey = execute_only_pkey(vma->vm_mm);
93 if (pkey > 0)
94 return pkey;
98 * is using the exec-only pkey. This mapping was
100 * the default pkey.
106 * This is a vanilla, non-pkey mprotect (or we failed to
107 * setup execute-only), inherit the pkey from the VMA we
113 #define PKRU_AD_MASK(pkey) (PKRU_AD_BIT << ((pkey) * PKRU_BITS_PER_PKEY))
119 * to data which is pkey-protected later on.
159 * or writes to pkey 0.