ARM kprobes: prevent some functions involved with kprobes from being probed
Signed-off-by: Nicolas Pitre <nico@marvell.com>
This commit is contained in:
committed by
Russell King
parent
d30a0c8bf9
commit
785d3cd286
@@ -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;
|
||||
|
Reference in New Issue
Block a user