|
@@ -288,16 +288,6 @@ static inline void arch_unmap(struct mm_struct *mm, struct vm_area_struct *vma,
|
|
|
mpx_notify_unmap(mm, vma, start, end);
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS
|
|
|
-static inline int vma_pkey(struct vm_area_struct *vma)
|
|
|
-{
|
|
|
- unsigned long vma_pkey_mask = VM_PKEY_BIT0 | VM_PKEY_BIT1 |
|
|
|
- VM_PKEY_BIT2 | VM_PKEY_BIT3;
|
|
|
-
|
|
|
- return (vma->vm_flags & vma_pkey_mask) >> VM_PKEY_SHIFT;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
/*
|
|
|
* We only want to enforce protection keys on the current process
|
|
|
* because we effectively have no access to PKRU for other
|