Lines Matching refs:vma
840 struct vm_area_struct *vma, u32 pkey, int si_code)
849 vma_end_read(vma);
855 struct vm_area_struct *vma)
865 if (!arch_vma_access_permitted(vma, (error_code & X86_PF_WRITE),
874 struct vm_area_struct *vma)
881 if (bad_area_access_from_pkeys(error_code, vma)) {
886 * the vma and passes it to userspace so userspace can discover
899 * 6. T1 : reaches here, sees vma_pkey(vma)=5, when we really
902 u32 pkey = vma_pkey(vma);
904 __bad_area(regs, error_code, address, mm, vma, pkey, SEGV_PKUERR);
906 __bad_area(regs, error_code, address, mm, vma, 0, SEGV_ACCERR);
1053 access_error(unsigned long error_code, struct vm_area_struct *vma)
1083 if (!arch_vma_access_permitted(vma, (error_code & X86_PF_WRITE),
1092 if (unlikely(!(vma->vm_flags & VM_SHADOW_STACK)))
1094 if (unlikely(!(vma->vm_flags & VM_WRITE)))
1101 if (unlikely(vma->vm_flags & VM_SHADOW_STACK))
1103 if (unlikely(!(vma->vm_flags & VM_WRITE)))
1113 if (unlikely(!vma_is_accessible(vma)))
1215 struct vm_area_struct *vma;
1329 vma = lock_vma_under_rcu(mm, address);
1330 if (!vma)
1333 if (unlikely(access_error(error_code, vma))) {
1334 bad_area_access_error(regs, error_code, address, NULL, vma);
1338 fault = handle_mm_fault(vma, address, flags | FAULT_FLAG_VMA_LOCK, regs);
1340 vma_end_read(vma);
1361 vma = lock_mm_and_find_vma(mm, address, regs);
1362 if (unlikely(!vma)) {
1371 if (unlikely(access_error(error_code, vma))) {
1372 bad_area_access_error(regs, error_code, address, mm, vma);
1389 fault = handle_mm_fault(vma, address, flags, regs);