|
@@ -1505,7 +1505,8 @@ static int check_kprobe_address_safe(struct kprobe *p,
|
|
|
/* Ensure it is not in reserved area nor out of text */
|
|
/* Ensure it is not in reserved area nor out of text */
|
|
|
if (!kernel_text_address((unsigned long) p->addr) ||
|
|
if (!kernel_text_address((unsigned long) p->addr) ||
|
|
|
within_kprobe_blacklist((unsigned long) p->addr) ||
|
|
within_kprobe_blacklist((unsigned long) p->addr) ||
|
|
|
- jump_label_text_reserved(p->addr, p->addr)) {
|
|
|
|
|
|
|
+ jump_label_text_reserved(p->addr, p->addr) ||
|
|
|
|
|
+ find_bug((unsigned long)p->addr)) {
|
|
|
ret = -EINVAL;
|
|
ret = -EINVAL;
|
|
|
goto out;
|
|
goto out;
|
|
|
}
|
|
}
|