From: Ananth N Mavinakayanahalli Date: Thu, 20 Apr 2006 09:43:11 +0000 (-0700) Subject: [PATCH] kprobes: NULL out non-relevant fields in struct kretprobe X-Git-Tag: v2.6.17-rc3~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7522a8423bed9931cbac5502b9c0657bde2700ea;p=pandora-kernel.git [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 Acked-by: Jim Keniston Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed