[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47D5CD18.4080400@redhat.com>
Date: Mon, 10 Mar 2008 20:06:48 -0400
From: Masami Hiramatsu <mhiramat@...hat.com>
To: Shaohua Li <shaohua.li@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>
CC: LKML <linux-kernel@...r.kernel.org>,
ia64 <linux-ia64@...r.kernel.org>,
"Luck, Tony" <tony.luck@...el.com>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
Jim Keniston <jkenisto@...ibm.com>,
systemtap-ml <systemtap@...rces.redhat.com>
Subject: [PATCH -mm] kprobes: fix prepare_booster to get correct slot
Fix to get correct slot number from probing address
in prepare_booster.
Signed-off-by: Masami Hiramatsu <mhiramat@...hat.com>
---
Andrew, this is a bugfix of
kprobes-kprobe-booster-for-ia64.patch
arch/ia64/kernel/kprobes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: 2.6.25-rc3-mm1/arch/ia64/kernel/kprobes.c
===================================================================
--- 2.6.25-rc3-mm1.orig/arch/ia64/kernel/kprobes.c
+++ 2.6.25-rc3-mm1/arch/ia64/kernel/kprobes.c
@@ -565,7 +565,7 @@ static int __kprobes can_boost(bundle_t
static void __kprobes prepare_booster(struct kprobe *p)
{
unsigned long addr = (unsigned long)p->addr & ~0xFULL;
- unsigned int slot = addr & 0xf;
+ unsigned int slot = (unsigned long)p->addr & 0xf;
struct kprobe *other_kp;
if (can_boost(&p->ainsn.insn[0].bundle, slot, addr)) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists