Commit c2d0f625 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

arm64/ipipe: do not propagate fixable access faults

parent c5ce570f
......@@ -97,6 +97,9 @@ static void __do_kernel_fault(struct mm_struct *mm, unsigned long addr,
if (ret)
return;
if (__ipipe_report_trap(IPIPE_TRAP_ACCESS, regs))
return;
/*
* No handler, we'll have to terminate things with extreme prejudice.
*/
......@@ -121,6 +124,9 @@ static void __do_user_fault(struct task_struct *tsk, unsigned long addr,
{
struct siginfo si;
if (__ipipe_report_trap(IPIPE_TRAP_ACCESS, regs))
return;
if (show_unhandled_signals && unhandled_signal(tsk, sig) &&
printk_ratelimit()) {
pr_info("%s[%d]: unhandled %s (%d) at 0x%08lx, esr 0x%03x\n",
......@@ -370,9 +376,6 @@ static int __kprobes do_translation_fault(unsigned long addr,
if (addr < TASK_SIZE)
return do_page_fault(addr, esr, regs);
if (__ipipe_report_trap(IPIPE_TRAP_ACCESS, regs))
return 0;
do_bad_area(addr, esr, regs);
return 0;
......
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