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

Commit e070dab7 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: Handle page faults of executable but unreadable pages correctly.



Without this we end taking execeptions in an endless loop hanging the
thread.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 106eccb4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -133,7 +133,8 @@ static void __kprobes __do_page_fault(struct pt_regs *regs, unsigned long write,
#endif
				goto bad_area;
			}
			if (!(vma->vm_flags & VM_READ)) {
			if (!(vma->vm_flags & VM_READ) &&
			    exception_epc(regs) != address) {
#if 0
				pr_notice("Cpu%d[%s:%d:%0*lx:%ld:%0*lx] RI violation\n",
					  raw_smp_processor_id(),