aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/events/uprobes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 24b7d6ca871b..3cc8e0bb8acf 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -1828,6 +1828,10 @@ static void handle_swbp(struct pt_regs *regs)
1828 if (unlikely(!test_bit(UPROBE_COPY_INSN, &uprobe->flags))) 1828 if (unlikely(!test_bit(UPROBE_COPY_INSN, &uprobe->flags)))
1829 goto out; 1829 goto out;
1830 1830
1831 /* Tracing handlers use ->utask to communicate with fetch methods */
1832 if (!get_utask())
1833 goto out;
1834
1831 handler_chain(uprobe, regs); 1835 handler_chain(uprobe, regs);
1832 if (can_skip_sstep(uprobe, regs)) 1836 if (can_skip_sstep(uprobe, regs))
1833 goto out; 1837 goto out;