Message ID | 1499782763-31418-3-git-send-email-mark.rutland@arm.com |
---|---|
State | New |
Headers | show |
Series | [1/2] arm64: mm: abort uaccess retries upon fatal signal | expand |
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index ff8b0aa..42f5853 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -315,8 +315,11 @@ static inline bool access_error(unsigned int fsr, struct vm_area_struct *vma) * signal first. We do not need to release the mmap_sem because * it would already be released in __lock_page_or_retry in * mm/filemap.c. */ - if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) + if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) { + if (!user_mode(regs)) + goto no_context; return 0; + } /* * Major/minor page fault accounting is only done on the