Pull uprobe fix from Ingo Molnar: "Fix an interaction/regression between uprobes based shared library tracing & GDB" * tag 'perf-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix GDB regression
Unified · Split
| @@ -2199,7 +2199,7 @@ static void handle_swbp(struct pt_regs *regs) · 2198 unmodified lines | ||
| 2199 | 2199 | if (!uprobe) { |
| 2200 | 2200 | if (is_swbp > 0) { |
| 2201 | 2201 | /* No matching uprobe; signal SIGTRAP. */ |
| 2202 | − send_sig(SIGTRAP, current, 0); | |
| 2202 | + force_sig(SIGTRAP); | |
| 2203 | 2203 | } else { |
| 2204 | 2204 | /* |
| 2205 | 2205 | * Either we raced with uprobe_unregister() or we can't |