git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prevent boosting kprobes on exception address
[safe/jmp/linux-2.6]
/
arch
/
x86
/
kernel
/
kprobes.c
diff --git
a/arch/x86/kernel/kprobes.c
b/arch/x86/kernel/kprobes.c
index
e948b28
..
4558dd3
100644
(file)
--- a/
arch/x86/kernel/kprobes.c
+++ b/
arch/x86/kernel/kprobes.c
@@
-193,6
+193,9
@@
static int __kprobes can_boost(kprobe_opcode_t *opcodes)
kprobe_opcode_t opcode;
kprobe_opcode_t *orig_opcodes = opcodes;
+ if (search_exception_tables(opcodes))
+ return 0; /* Page fault may occur on this address. */
+
retry:
if (opcodes - orig_opcodes > MAX_INSN_SIZE - 1)
return 0;