]> git.baikalelectronics.ru Git - kernel.git/commit
uprobes/x86: Fix arch_uprobe_disable_step() && UTASK_SSTEP_TRAPPED interaction
authorOleg Nesterov <oleg@redhat.com>
Sat, 8 Sep 2012 16:38:15 +0000 (18:38 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sat, 15 Sep 2012 15:37:32 +0000 (17:37 +0200)
commit2f266c5024ee0ce8f8ff97eff80329797008cbf1
treee928315e06a4b6199d173848fac7d08301b32362
parentbe271e3d3c9602ce48b913d8ef95f0cfe7965490
uprobes/x86: Fix arch_uprobe_disable_step() && UTASK_SSTEP_TRAPPED interaction

arch_uprobe_disable_step() should also take UTASK_SSTEP_TRAPPED into
account. In this case the probed insn was not executed, we need to
clear X86_EFLAGS_TF if it was set by us and that is all.

Again, this code will look more clean when we move it into
arch_uprobe_post_xol() and arch_uprobe_abort_xol().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
arch/x86/kernel/uprobes.c