From: bibo,mao Date: Mon, 2 Oct 2006 09:17:34 +0000 (-0700) Subject: [PATCH] disallow kprobes on notifier_call_chain X-Git-Tag: v2.6.19-rc1~455 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f2aa85a0ccd90110e76c6375535adc3ae358f971;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Ananth N Mavinakayanahalli Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sys.c b/kernel/sys.c index 2460581c928..398d57923f9 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -221,7 +221,7 @@ EXPORT_SYMBOL_GPL(atomic_notifier_chain_unregister); * of the last notifier function called. */ -int atomic_notifier_call_chain(struct atomic_notifier_head *nh, +int __kprobes atomic_notifier_call_chain(struct atomic_notifier_head *nh, unsigned long val, void *v) { int ret;