diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 16b5739c516aa831d11755a93895f6b4d4e91001..0540948e29abf0217fc7e4edded97874aa26605c 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -694,7 +694,7 @@ int __kprobes register_kprobe(struct kprobe *p) p->addr = addr; preempt_disable(); - if (!__kernel_text_address((unsigned long) p->addr) || + if (!kernel_text_address((unsigned long) p->addr) || in_kprobes_functions((unsigned long) p->addr)) { preempt_enable(); return -EINVAL;