Merge "arm64: Remove orig_addr_limit check in do_page_fault"

This commit is contained in:
Linux Build Service Account 2017-03-08 15:47:21 -08:00 committed by Gerrit - the friendly Code Review server
commit 1969f8fe9d

View file

@ -334,10 +334,6 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,
}
if (addr < USER_DS && is_permission_fault(esr, regs)) {
/* regs->orig_addr_limit may be 0 if we entered from EL0 */
if (regs->orig_addr_limit == KERNEL_DS)
die("Accessing user space memory with fs=KERNEL_DS", regs, esr);
if (is_el1_instruction_abort(esr))
die("Attempting to execute userspace memory", regs, esr);