This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [BUGFIX PATCH] kprobes: Use kernel_text_address() for checking probe address
- From: Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>
- To: Masami Hiramatsu <mhiramat at redhat dot com>
- Cc: Linus Torvalds<torvalds at linux-foundation dot org>, lkml<linux-kernel at vger dot kernel dot org>, systemtap<systemtap at sources dot redhat dot com>, Jim Keniston <jkenisto at us dot ibm dot com>
- Date: Wed, 29 Jul 2009 09:54:23 +0530
- Subject: Re: [BUGFIX PATCH] kprobes: Use kernel_text_address() for checking probe address
- References: <20090728234723.15708.54455.stgit@localhost.localdomain>
- Reply-to: ananth at in dot ibm dot com
On Tue, Jul 28, 2009 at 07:47:23PM -0400, Masami Hiramatsu wrote:
> Use kernel_text_address() for checking probe address instead of
> __kernel_text_address(), because __kernel_text_address() returns
> !0 for init functions even after relaseing those functions.
> That will hit a BUG() in text_poke().
>
> Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
> Cc: Jim Keniston <jkenisto@us.ibm.com>
Acked-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com>