Re: ftrace introduces instability into kernel 2.6.27(-rc2,-rc3)

From: Benjamin Herrenschmidt
Date: Mon Aug 18 2008 - 21:57:33 EST


On Mon, 2008-08-18 at 11:07 -0400, Steven Rostedt wrote:
> Eran Liberty wrote:
> > After compiling a kernel with ftrace I started to experience all sorts
> > of crashes.
>
> Just to make sure...
>
> ftrace enables markers too, and RCU has tracing with the markers. This
> may not be the problem, but I just want to eliminate as many variables
> as possible.
> Could you disable ftrace, but keep the markers on too. Also, could you
> enable ftrace again and turn on the FTRACE_STARTUP_TEST.

I spent some time last week tracking one of those crashes and it appears
that we are getting corruption of some of the non-volatile registers.

So far, I found out that it -seems- to be coming from stack frame
corruption during a timer interrupt.

I haven't had a chance to dig further yet.

Cheers,
Ben.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/