]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/kernel/kprobes.c
ARM kprobes: prevent some functions involved with kprobes from being probed
[linux-2.6-omap-h63xx.git] / arch / arm / kernel / kprobes.c
index a18a8458e99d209491de06dcadb55d6223db1ee0..450ee2cbfe17ebfca26b856388c25880955f70c5 100644 (file)
@@ -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;