* [BUG][PATCH]Kprobes - No probes on critical path
@ 2005-12-09 19:28 Keshavamurthy Anil S
0 siblings, 0 replies; only message in thread
From: Keshavamurthy Anil S @ 2005-12-09 19:28 UTC (permalink / raw)
To: Linux Kernel
Cc: akpm, Ananth N Mavinakayanahalli, anil.s.keshavamurthy,
Prasanna S Panchamukhi
[BUG][PATCH]Kprobes - No probes on critical path
For Kprobes critical path is the path from debug break exception
handler till the control reaches kprobes exception code. No probes
can be supported in this path as we will end up in recursion.
This patch prevents this by moving the below function to safe
__kprobes section onto which no probes can be inserted.
Please apply.
Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
---------------------------------------------------------------
kernel/sys.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: linux-2.6.15-rc5-mm1/kernel/sys.c
===================================================================
--- linux-2.6.15-rc5-mm1.orig/kernel/sys.c
+++ linux-2.6.15-rc5-mm1/kernel/sys.c
@@ -32,6 +32,7 @@
#include <linux/compat.h>
#include <linux/syscalls.h>
+#include <linux/kprobes.h>
#include <asm/uaccess.h>
#include <asm/io.h>
@@ -168,7 +169,7 @@ EXPORT_SYMBOL(notifier_chain_unregister)
* of the last notifier function called.
*/
-int notifier_call_chain(struct notifier_block **n, unsigned long val, void *v)
+int __kprobes notifier_call_chain(struct notifier_block **n, unsigned long val, void *v)
{
int ret=NOTIFY_DONE;
struct notifier_block *nb = *n;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-09 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 19:28 [BUG][PATCH]Kprobes - No probes on critical path Keshavamurthy Anil S
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®