Commit 70c8abc2 authored by Catalin Marinas's avatar Catalin Marinas

arm64: User die() instead of panic() in do_page_fault()

The former gives better error reporting on unhandled permission faults
(introduced by the UAO patches).
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent a7f8de16
...@@ -235,10 +235,10 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr, ...@@ -235,10 +235,10 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,
if (permission_fault(esr) && (addr < USER_DS)) { if (permission_fault(esr) && (addr < USER_DS)) {
if (get_fs() == KERNEL_DS) if (get_fs() == KERNEL_DS)
panic("Accessing user space memory with fs=KERNEL_DS"); die("Accessing user space memory with fs=KERNEL_DS", regs, esr);
if (!search_exception_tables(regs->pc)) if (!search_exception_tables(regs->pc))
panic("Accessing user space memory outside uaccess.h routines"); die("Accessing user space memory outside uaccess.h routines", regs, esr);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment