lkml.org 
[lkml]   [2015]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC PATCH v2 19/26] early kprobes: perhibit probing at early kprobe reserved area.
Date
Signed-off-by: Wang Nan <wangnan0@huawei.com>
---
kernel/kprobes.c | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/kernel/kprobes.c b/kernel/kprobes.c
index fa1e422..b83c406 100644
--- a/kernel/kprobes.c
+++ b/kernel/kprobes.c
@@ -1358,6 +1358,13 @@ static bool within_kprobe_blacklist(unsigned long addr)

if (arch_within_kprobe_blacklist(addr))
return true;
+
+#ifdef CONFIG_EARLY_KPROBES
+ if (addr >= (unsigned long)__early_kprobes_start &&
+ addr < (unsigned long)__early_kprobes_end)
+ return true;
+#endif
+
/*
* If there exists a kprobe_blacklist, verify and
* fail any probe registration in the prohibited area
--
1.8.4


\
 
 \ /
  Last update: 2015-02-12 13:41    [W:0.160 / U:0.812 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site