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

Commit 9fefaaa3 authored by Prasad Sodagudi's avatar Prasad Sodagudi Committed by Gerrit - the friendly Code Review server
Browse files

arm64: Remove orig_addr_limit check in do_page_fault



Remove the orig_addr_limit check against KERNEL_DS in
do_page_fault handler for permissions faults. This
check is part of UAO and PAN features and these features
are disabled by default.

Change-Id: I5de760b983edcf14d1c0bee2a53dc091ceca31da
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent b2cc7110
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);