]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb978cf7975e761a64e0fbb08296ab4431e63aa7
tree8766bb4daed669ad804653cb3b43a27752719289
parent480baa0656acaa404c3aa1964625ba62af7bda14
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