diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-07-25 22:55:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-07-25 22:55:38 +0200 |
commit | 78b1afe22d51996c1916a332d43b853ff2b10ade (patch) | |
tree | 5665ea2d4ecd101bab0711e4a7aec2463e220de0 /kernel | |
parent | Merge tag 'timers-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
parent | uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix ... (diff) | |
download | linux-78b1afe22d51996c1916a332d43b853ff2b10ade.tar.xz linux-78b1afe22d51996c1916a332d43b853ff2b10ade.zip |
Merge tag 'perf-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into master
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
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/events/uprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index bb0862873dba..5f8b0c52fd2e 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -2199,7 +2199,7 @@ static void handle_swbp(struct pt_regs *regs) if (!uprobe) { if (is_swbp > 0) { /* No matching uprobe; signal SIGTRAP. */ - send_sig(SIGTRAP, current, 0); + force_sig(SIGTRAP); } else { /* * Either we raced with uprobe_unregister() or we can't |