summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-07-25 22:55:38 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2020-07-25 22:55:38 +0200
commit78b1afe22d51996c1916a332d43b853ff2b10ade (patch)
tree5665ea2d4ecd101bab0711e4a7aec2463e220de0 /kernel
parentMerge tag 'timers-urgent-2020-07-25' of git://git.kernel.org/pub/scm/linux/ke... (diff)
parentuprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix ... (diff)
downloadlinux-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.c2
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