Re: Print taint info in more places.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Jones
Date: Friday, December 14, 2007 - 12:55 am

On Thu, Dec 13, 2007 at 11:25:06PM -0800, Jeremy Fitzhardinge wrote:
 > Dave Jones wrote:
 > > On Fri, Dec 14, 2007 at 01:03:50AM +0100, Adrian Bunk wrote:
 > >
 > >  > >  #ifndef HAVE_ARCH_BUG
 > >  > >  #define BUG() do { \
 > >  > > -	printk("BUG: failure at %s:%d/%s()!\n", __FILE__, __LINE__, __FUNCTION__); \
 > >  > > +	printk(KERN_ERR "BUG: failure at %s:%d/%s()! (%s)\n",
 > >  > > +		__FILE__, __LINE__, __FUNCTION__, print_tainted()); \
 > >  > >  	panic("BUG!"); \
 > >  > >  } while (0)
 > >  > >  #endif
 > >  > >...
 > >  > 
 > >  > Note that this only changes a handful of architectures and most likely 
 > >  > not the ones you are interested in.
 > >
 > > Hmm, it appears that I was mistaken, and we never did patch x86.
 > > Which leaves me wondering if its worth it or not to  patch BUG()
 > > Anyways, here's the latest rev with the out-of-line changes as
 > > suggested by Andi.
 > >
 > > init/main.c may not be the best place for the ool variant. suggestions?
 > >   
 > 
 > lib/bug.c would be the place for architectures using
 > CONFIG_GENERIC_BUG.  x86 could be converted to use the BUG-trapping
 > mechanism for WARN_ON like Power does, so it would be inherently out of
 > line anyway.

The BUG()/WARN_ON() parts of my patch are becoming something of a rathole,
which I don't really have time to dig into right now, so I'm going to split
this up I think into mm/ additions, spinlockdebug additions, and bugon/warnon foo.
The three should be independant, and blocking the first two until I get
time to look at the third seems pointless.

	Dave

-- 
http://www.codemonkey.org.uk
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Print taint info in more places., Dave Jones, (Thu Dec 13, 3:49 pm)
Re: Print taint info in more places., Andi Kleen, (Thu Dec 13, 4:08 pm)
Re: Print taint info in more places., Mauricio Mauad Meneg ..., (Thu Dec 13, 4:43 pm)
Re: Print taint info in more places., Dave Jones, (Thu Dec 13, 4:52 pm)
Re: Print taint info in more places., Adrian Bunk, (Thu Dec 13, 5:03 pm)
Re: Print taint info in more places., Dave Jones, (Thu Dec 13, 5:12 pm)
Re: Print taint info in more places., Dave Jones, (Thu Dec 13, 5:16 pm)
Re: Print taint info in more places., Dave Jones, (Thu Dec 13, 6:30 pm)
Re: Print taint info in more places., Jeremy Fitzhardinge, (Fri Dec 14, 12:25 am)
Re: Print taint info in more places., Dave Jones, (Fri Dec 14, 12:55 am)
Re: Print taint info in more places., Jon Masters, (Fri Dec 14, 5:09 am)
Re: Print taint info in more places., Matt Mackall, (Fri Dec 14, 8:38 am)