diff options
Diffstat (limited to 'kernel/kprobes.c')
| -rw-r--r-- | kernel/kprobes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index d9770a5393c8..ebe8315a756a 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c | |||
| @@ -1514,7 +1514,8 @@ static int check_kprobe_address_safe(struct kprobe *p, | |||
| 1514 | /* Ensure it is not in reserved area nor out of text */ | 1514 | /* Ensure it is not in reserved area nor out of text */ |
| 1515 | if (!kernel_text_address((unsigned long) p->addr) || | 1515 | if (!kernel_text_address((unsigned long) p->addr) || |
| 1516 | within_kprobe_blacklist((unsigned long) p->addr) || | 1516 | within_kprobe_blacklist((unsigned long) p->addr) || |
| 1517 | jump_label_text_reserved(p->addr, p->addr)) { | 1517 | jump_label_text_reserved(p->addr, p->addr) || |
| 1518 | find_bug((unsigned long)p->addr)) { | ||
| 1518 | ret = -EINVAL; | 1519 | ret = -EINVAL; |
| 1519 | goto out; | 1520 | goto out; |
| 1520 | } | 1521 | } |
