aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/kernel/uprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/uprobes.c b/arch/arm64/kernel/uprobes.c
index 97e9d17d22b..7c6f23e0201 100644
--- a/arch/arm64/kernel/uprobes.c
+++ b/arch/arm64/kernel/uprobes.c
@@ -177,7 +177,7 @@ static int __kprobes uprobe_breakpoint_handler(struct pt_regs *regs,
static int __kprobes uprobe_single_step_handler(struct pt_regs *regs,
unsigned int esr)
{
- if (user_mode(regs)) {
+ if (user_mode(regs) && current->utask) {
WARN_ON(instruction_pointer(regs) !=
current->utask->xol_vaddr + 4);