public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Ben Hutchings <ben@decadent.org.uk>,
	LKML <linux-kernel@vger.kernel.org>,
	stable <stable@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [add to stable] ftrace: Do not function trace inlined functions
Date: Tue, 8 Jan 2013 14:40:25 -0800	[thread overview]
Message-ID: <20130108224025.GA20323@kroah.com> (raw)
In-Reply-To: <1357683913.5190.47.camel@gandalf.local.home>

On Tue, Jan 08, 2013 at 05:25:13PM -0500, Steven Rostedt wrote:
> On Tue, 2013-01-08 at 14:10 -0800, Greg Kroah-Hartman wrote:
> > On Tue, Jan 08, 2013 at 04:38:41PM -0500, Steven Rostedt wrote:
> > > Hi Greg and Ben,
> > > 
> > > Can you add commit 45959ee7aa645815a5ce303a0ea1e48a21e67c6a to the
> > > stable trees.
> > 
> > That showed up in 3.3-rc1, so I don't think it's needed in 3.2-stable.
> 
> Well, it should have been marked for stable, which means it missed 3.2.

Ugh, you are right, sorry about that, too many kernels being kept track
of here has fried my "which one is newer" circuts...  I was meaning "3.4
and 3.7" here.

> > 
> > But why add it now?  What does it "fix" for 3.4 and 3.7?
> > 
> 
> When gcc doesn't inline a function marked inline (with different
> compilers, it does different things), a function that shouldn't be
> traced gets traced by the function tracer. The result is a kernel crash,
> which usually ends up being a triple fault (automatic reboot, hard to
> debug).
> 
> That's because some low level function like local_irqs_disable() gets
> traced, which is used in the function tracer recursion protection. Which
> means, that it's outside the recursion protection and when you enable
> function tracing, it causes the system to reboot.
> 
> Thomas just hit this on 3.2-rt, and was asking me why it wasn't marked
> for stable. I just didn't think of it at the time.

Ok, fair enough, I'll queue it up for 3.0

greg k-h

  reply	other threads:[~2013-01-08 22:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-08 21:38 [add to stable] ftrace: Do not function trace inlined functions Steven Rostedt
2013-01-08 22:10 ` Greg Kroah-Hartman
2013-01-08 22:25   ` Steven Rostedt
2013-01-08 22:40     ` Greg Kroah-Hartman [this message]
2013-01-13  6:04 ` Ben Hutchings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130108224025.GA20323@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ben@decadent.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=stable@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox