Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755138AbYCKAHa (ORCPT ); Mon, 10 Mar 2008 20:07:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751445AbYCKAHV (ORCPT ); Mon, 10 Mar 2008 20:07:21 -0400 Received: from mx1.redhat.com ([66.187.233.31]:59953 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbYCKAHU (ORCPT ); Mon, 10 Mar 2008 20:07:20 -0400 Message-ID: <47D5CD18.4080400@redhat.com> Date: Mon, 10 Mar 2008 20:06:48 -0400 From: Masami Hiramatsu User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: Shaohua Li , Andrew Morton CC: LKML , ia64 , "Luck, Tony" , Ananth N Mavinakayanahalli , Jim Keniston , systemtap-ml Subject: [PATCH -mm] kprobes: fix prepare_booster to get correct slot References: <47D166E7.2050803@redhat.com> <1205120600.20271.3.camel@sli10-desk.sh.intel.com> <47D57D28.7070100@redhat.com> In-Reply-To: <47D57D28.7070100@redhat.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1091 Lines: 29 Fix to get correct slot number from probing address in prepare_booster. Signed-off-by: Masami Hiramatsu --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/