|
@@ -1804,6 +1804,11 @@ static bool handle_trampoline(struct pt_regs *regs)
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+bool __weak arch_uprobe_ignore(struct arch_uprobe *aup, struct pt_regs *regs)
|
|
|
|
+{
|
|
|
|
+ return false;
|
|
|
|
+}
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* Run handler and ask thread to singlestep.
|
|
* Run handler and ask thread to singlestep.
|
|
* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.
|
|
* Ensure all non-fatal signals cannot interrupt thread while it singlesteps.
|
|
@@ -1858,7 +1863,11 @@ static void handle_swbp(struct pt_regs *regs)
|
|
if (!get_utask())
|
|
if (!get_utask())
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
|
|
+ if (arch_uprobe_ignore(&uprobe->arch, regs))
|
|
|
|
+ goto out;
|
|
|
|
+
|
|
handler_chain(uprobe, regs);
|
|
handler_chain(uprobe, regs);
|
|
|
|
+
|
|
if (can_skip_sstep(uprobe, regs))
|
|
if (can_skip_sstep(uprobe, regs))
|
|
goto out;
|
|
goto out;
|
|
|
|
|