diff options
author | bibo,mao <bibo.mao@intel.com> | 2006-10-02 05:17:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:16 -0400 |
commit | f2aa85a0ccd90110e76c6375535adc3ae358f971 (patch) | |
tree | dc4db8faacd37ec0d09ec719b53b8550cbe0dbc9 /kernel | |
parent | 62c27be0dd8144e11bd3ed054a0fb890579925f8 (diff) |
[PATCH] disallow kprobes on notifier_call_chain
When kprobe is re-entered, the re-entered kprobe kernel path will will call
atomic_notifier_call_chain function, if this function is kprobed that will
incur numerous kprobe recursive fault. This patch disallows kprobes on
atomic_notifier_call_chain function.
Signed-off-by: bibo, mao <bibo.mao@intel.com>
Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 2460581c928c..398d57923f95 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -221,7 +221,7 @@ EXPORT_SYMBOL_GPL(atomic_notifier_chain_unregister); | |||
221 | * of the last notifier function called. | 221 | * of the last notifier function called. |
222 | */ | 222 | */ |
223 | 223 | ||
224 | int atomic_notifier_call_chain(struct atomic_notifier_head *nh, | 224 | int __kprobes atomic_notifier_call_chain(struct atomic_notifier_head *nh, |
225 | unsigned long val, void *v) | 225 | unsigned long val, void *v) |
226 | { | 226 | { |
227 | int ret; | 227 | int ret; |