]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] kprobes: NULL out non-relevant fields in struct kretprobe
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>
Thu, 20 Apr 2006 09:43:11 +0000 (02:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 20 Apr 2006 14:54:03 +0000 (07:54 -0700)
commit541943bdb96b28681e165966fb54fb9e447c6be6
tree8729269696269cba4ca477d711490a6c89c20cda
parentda2a1bb22c69ba29e68b391a777b5497bd38a78f
[PATCH] kprobes: NULL out non-relevant fields in struct kretprobe

In cases where a struct kretprobe's *_handler fields are non-NULL, it is
possible to cause a system crash, due to the possibility of calls ending up
in zombie functions.  Documentation clearly states that unused *_handlers
should be set to NULL, but kprobe users sometimes fail to do so.

Fix it by setting the non-relevant fields of the struct kretprobe to NULL.

Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Acked-by: Jim Keniston <jkenisto@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/kprobes.c