Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750751AbWCBAJF (ORCPT ); Wed, 1 Mar 2006 19:09:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750812AbWCBAJF (ORCPT ); Wed, 1 Mar 2006 19:09:05 -0500 Received: from e33.co.us.ibm.com ([32.97.110.151]:7121 "EHLO e33.co.us.ibm.com") by vger.kernel.org with ESMTP id S1750751AbWCBAJE (ORCPT ); Wed, 1 Mar 2006 19:09:04 -0500 Date: Wed, 1 Mar 2006 16:09:36 -0800 From: "Paul E. McKenney" To: Olof Johansson Cc: Martin Bligh , Andrew Morton , linux-kernel@vger.kernel.org, linuxppc64-dev@ozlabs.org, paulus@samba.org, dipankar@in.ibm.com Subject: Re: [PATCH] Fix powerpc bad_page_fault output (Re: 2.6.16-rc5-mm1) Message-ID: <20060302000936.GE1296@us.ibm.com> Reply-To: paulmck@us.ibm.com References: <20060228042439.43e6ef41.akpm@osdl.org> <4404E328.7070807@mbligh.org> <20060301164531.GA17755@pb15.lixom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060301164531.GA17755@pb15.lixom.net> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2835 Lines: 84 On Wed, Mar 01, 2006 at 10:45:31AM -0600, Olof Johansson wrote: > On Tue, Feb 28, 2006 at 03:56:24PM -0800, Martin Bligh wrote: > > Andrew Morton wrote: > > >ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.16-rc5/2.6.16-rc5-mm1/ > > > > New panic on IBM power4 lpar of P690. 2.6.16-rc5-git3 is OK. > > > > (config: > > http://ftp.kernel.org/pub/linux/kernel/people/mbligh/config/abat/power4) > > > > http://test.kernel.org/24165/debug/console.log > > For what it's worth, this is a NULL pointer dereference in the RCU > code. And in an area where it is tougher than usual to blame the problem on a broken use of RCU, as well. ;-) The "rcp" argument to __rcu_process_callbacks() is C00000076F303F08 and "rdp" is C00000076F303F08, or am I mis-remembering the POWER ABI? Thanx, Paul > Seems that the human-readible parts are printed at a differnet printk level > (well, _at_ a level), so they fell off. Not good. > > Andrew and/or Paulus, see patch below. > > > Thanks, > > Olof > > > --- > > It seems that the die() output is printk'd without any prink level, > so some distros will log the register dumps and the human readible > format differently. > > (I.e. see http://test.kernel.org/24165/debug/console.log, which lacks > the KERN_ALERT parts) > > Changing the die() output to include a level will likely confuse users > that currently rely on getting the output where they're getting it, > so instead remove it from the bad_page_fault() output. > > Signed-off-by: Olof Johansson > > > diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c > index ec4adcb..fee050a 100644 > --- a/arch/powerpc/mm/fault.c > +++ b/arch/powerpc/mm/fault.c > @@ -389,7 +389,7 @@ void bad_page_fault(struct pt_regs *regs > > /* kernel has accessed a bad area */ > > - printk(KERN_ALERT "Unable to handle kernel paging request for "); > + printk("Unable to handle kernel paging request for "); > switch (regs->trap) { > case 0x300: > case 0x380: > @@ -402,8 +402,7 @@ void bad_page_fault(struct pt_regs *regs > default: > printk("unknown fault\n"); > } > - printk(KERN_ALERT "Faulting instruction address: 0x%08lx\n", > - regs->nip); > + printk("Faulting instruction address: 0x%08lx\n", regs->nip); > > die("Kernel access of bad area", regs, sig); > } > - > 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/ > - 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/