Skip to content

Commit 78b1afe

Browse files
committed
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
2 parents a7b36c2 + fe5ed7a commit 78b1afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/events/uprobes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,7 @@ static void handle_swbp(struct pt_regs *regs)
21992199
if (!uprobe) {
22002200
if (is_swbp > 0) {
22012201
/* No matching uprobe; signal SIGTRAP. */
2202-
send_sig(SIGTRAP, current, 0);
2202+
force_sig(SIGTRAP);
22032203
} else {
22042204
/*
22052205
* Either we raced with uprobe_unregister() or we can't

0 commit comments

Comments
 (0)