uprobes/x86: Don't change the task's state if ->pre_xol() fails
authorOleg Nesterov <oleg@redhat.com>
Tue, 22 Apr 2014 13:20:07 +0000 (15:20 +0200)
committerOleg Nesterov <oleg@redhat.com>
Wed, 30 Apr 2014 17:10:36 +0000 (19:10 +0200)
commitdd91016dfc9ba9236cb0149984da3f0434278b49
tree8766bb4daed669ad804653cb3b43a27752719289
parentb24dc8dace74708fd849312722090169c5da97d3
uprobes/x86: Don't change the task's state if ->pre_xol() fails

Currently this doesn't matter, the only ->pre_xol() hook can't fail,
but we need to fix arch_uprobe_pre_xol() anyway. If ->pre_xol() fails
we should not change regs->ip/flags, we should just return the error
to make restart actually possible.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Jim Keniston <jkenisto@us.ibm.com>
arch/x86/kernel/uprobes.c