]> 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)
commita246797ad2d7e5608d33242cb526fd1a67b4b37f
tree8766bb4daed669ad804653cb3b43a27752719289
parenta01dc17ace2fb35b5f9e6f76cf89d7ecbbaa5e10
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