Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31e09fa0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: Remove orig_addr_limit check in do_page_fault"

parents 3ddbd32d 9fefaaa3
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -257,10 +257,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);