summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/uprobes.c
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2012-11-20 18:19:10 +0900
committerKukjin Kim <kgene.kim@samsung.com>2012-11-20 18:19:10 +0900
commit840ed42942cc1ebbda2ed55f4019673b537fc5de (patch)
tree415644488e3966837eeb5061d96d4ca7db862318 /arch/x86/kernel/uprobes.c
parent0dca30003bc752b2fc15906e562ef4e4925725fd (diff)
parent0a9d5ac307aefbb2c772537d3fe7f75046d563ac (diff)
downloadop-kernel-dev-840ed42942cc1ebbda2ed55f4019673b537fc5de.zip
op-kernel-dev-840ed42942cc1ebbda2ed55f4019673b537fc5de.tar.gz
Merge branch 'next/hdmi-samsung' into next/devel-samsung
Diffstat (limited to 'arch/x86/kernel/uprobes.c')
-rw-r--r--arch/x86/kernel/uprobes.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c
index 9538f00..aafa555 100644
--- a/arch/x86/kernel/uprobes.c
+++ b/arch/x86/kernel/uprobes.c
@@ -651,31 +651,19 @@ void arch_uprobe_abort_xol(struct arch_uprobe *auprobe, struct pt_regs *regs)
/*
* Skip these instructions as per the currently known x86 ISA.
- * 0x66* { 0x90 | 0x0f 0x1f | 0x0f 0x19 | 0x87 0xc0 }
+ * rep=0x66*; nop=0x90
*/
static bool __skip_sstep(struct arch_uprobe *auprobe, struct pt_regs *regs)
{
int i;
for (i = 0; i < MAX_UINSN_BYTES; i++) {
- if ((auprobe->insn[i] == 0x66))
+ if (auprobe->insn[i] == 0x66)
continue;
if (auprobe->insn[i] == 0x90)
return true;
- if (i == (MAX_UINSN_BYTES - 1))
- break;
-
- if ((auprobe->insn[i] == 0x0f) && (auprobe->insn[i+1] == 0x1f))
- return true;
-
- if ((auprobe->insn[i] == 0x0f) && (auprobe->insn[i+1] == 0x19))
- return true;
-
- if ((auprobe->insn[i] == 0x87) && (auprobe->insn[i+1] == 0xc0))
- return true;
-
break;
}
return false;
OpenPOWER on IntegriCloud