diff options
author | Nicolas Pitre <nico@cam.org> | 2007-12-03 21:27:56 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-26 16:25:17 +0100 |
commit | 785d3cd286f0bf67d1bf692559b9ae5de12678f5 (patch) | |
tree | d533f0ab4792b1df11a0f862ec7246bb4455869c /arch/arm/kernel/kprobes.c | |
parent | ARM kprobes: don't let a single-stepped stmdb corrupt the exception stack (diff) | |
download | linux-785d3cd286f0bf67d1bf692559b9ae5de12678f5.tar.xz linux-785d3cd286f0bf67d1bf692559b9ae5de12678f5.zip |
ARM kprobes: prevent some functions involved with kprobes from being probed
Signed-off-by: Nicolas Pitre <nico@marvell.com>
Diffstat (limited to 'arch/arm/kernel/kprobes.c')
-rw-r--r-- | arch/arm/kernel/kprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c index a18a8458e99d..450ee2cbfe17 100644 --- a/arch/arm/kernel/kprobes.c +++ b/arch/arm/kernel/kprobes.c @@ -55,7 +55,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p) unsigned long addr = (unsigned long)p->addr; int is; - if (addr & 0x3) + if (addr & 0x3 || in_exception_text(addr)) return -EINVAL; insn = *p->addr; |