Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/arm64/Kconfig | 1 +
- arch/arm64/mm/fault.c | 44 +++++++-------------------------------------
- 2 files changed, 8 insertions(+), 37 deletions(-)
+ arch/arm64/mm/fault.c | 46 +++++++++-------------------------------------
+ 2 files changed, 10 insertions(+), 37 deletions(-)
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
* Check that the permissions on the VMA allow for the fault which
* occurred.
*/
-@@ -585,31 +572,14 @@ static int __kprobes do_page_fault(unsig
+@@ -535,6 +522,7 @@ static int __kprobes do_page_fault(unsig
+ unsigned long vm_flags;
+ unsigned int mm_flags = FAULT_FLAG_DEFAULT;
+ unsigned long addr = untagged_addr(far);
++ struct vm_area_struct *vma;
+
+ if (kprobe_page_fault(regs, esr))
+ return 0;
+@@ -585,31 +573,14 @@ static int __kprobes do_page_fault(unsig
perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, addr);
/* Quick path to respond to signals */
if (fault_signal_pending(fault, regs)) {
+@@ -628,6 +599,7 @@ retry:
+ }
+ mmap_read_unlock(mm);
+
++done:
+ /*
+ * Handle the "normal" (no error) case first.
+ */