Re: [PATCH] [revised -- version 2] Info dump on Oops or panic()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joshua Wise <jwise@...>
Cc: Kyle McMartin <kyle@...>, <linux-kernel@...>, <thockin@...>, <mikew@...>, <masouds@...>
Date: Thursday, June 28, 2007 - 7:48 pm

On Thu, 28 Jun 2007 16:12:23 -0700 (PDT)
Joshua Wise <jwise@google.com> wrote:


Your email client is doing space-stuffing.  It's easy enough to fix at this
end, but even easier if you fix it ;)


I worry a bit about doing _anything_ extra at oops-time.  It just decreases
the chances of the kernel generating the info which we want.

So...  Please consider abandoning the notifier-chain and just go for a
simple function call.

If people want to add extra goodies later on, well, they need to patch the
kernel anyway so they can patch your newly-added function rather than
hooking into the notifier chain.



That export isn't needed.


Again, a deref of current->nsproxy->uts_ns->name at oops-time has risks.

This string could be precalculated, no?


<wishes that all nooglers got a copy of K&R>


module_init() is a bit more modern, but equivalent.


do_posix_clock_monotonic_gettime() takes xtime_lock.  So if the kernel
oopses while holding xtime_lock we don't get to see the oops.  This is bad.

I don't know what to do here.  It will be hard to find a read-the-time
function which is a) lockless and b) available on all architectures and
configs.

If you can find a way to use plain old jiffies, that'd be good.


thwap


module_init()
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Info dump on Oops or panic(), Joshua Wise, (Thu Jun 28, 6:05 pm)
Re: [PATCH] Info dump on Oops or panic(), Jiri Kosina, (Thu Jun 28, 8:39 pm)
Re: [PATCH] Info dump on Oops or panic(), Andrew Morton, (Thu Jun 28, 10:01 pm)
Re: [PATCH] Info dump on Oops or panic(), Andi Kleen, (Thu Jun 28, 9:15 pm)
Re: [PATCH] Info dump on Oops or panic(), Kyle McMartin, (Thu Jun 28, 6:18 pm)
Re: [PATCH] Info dump on Oops or panic(), Mike Frysinger, (Thu Jun 28, 7:54 pm)
Re: [PATCH] [revised -- version 2] Info dump on Oops or pani..., Andrew Morton, (Thu Jun 28, 7:48 pm)