]> err.no Git - linux-2.6/commit
[PATCH] kprobes: no probes on critical path
authorKeshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
Mon, 12 Dec 2005 08:37:33 +0000 (00:37 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 12 Dec 2005 16:57:45 +0000 (08:57 -0800)
commit00d7c05ab168c10f9b520e07400923267bc04419
tree5899743965a801e34e7dc6bfe59dba20ba023540
parentcda315aba34ff4fb66bbb2945b723688f3414a75
[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.

Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/kprobes.h
kernel/sys.c