* [add to stable] ftrace: Do not function trace inlined functions
@ 2013-01-08 21:38 Steven Rostedt
2013-01-08 22:10 ` Greg Kroah-Hartman
2013-01-13 6:04 ` Ben Hutchings
0 siblings, 2 replies; 5+ messages in thread
From: Steven Rostedt @ 2013-01-08 21:38 UTC (permalink / raw)
To: Greg Kroah-Hartman, Ben Hutchings; +Cc: LKML, stable, Thomas Gleixner
Hi Greg and Ben,
Can you add commit 45959ee7aa645815a5ce303a0ea1e48a21e67c6a to the
stable trees.
Thanks,
-- Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [add to stable] ftrace: Do not function trace inlined functions
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-13 6:04 ` Ben Hutchings
1 sibling, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2013-01-08 22:10 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Ben Hutchings, LKML, stable, Thomas Gleixner
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.
But why add it now? What does it "fix" for 3.4 and 3.7?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [add to stable] ftrace: Do not function trace inlined functions
2013-01-08 22:10 ` Greg Kroah-Hartman
@ 2013-01-08 22:25 ` Steven Rostedt
2013-01-08 22:40 ` Greg Kroah-Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Steven Rostedt @ 2013-01-08 22:25 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Ben Hutchings, LKML, stable, Thomas Gleixner
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.
>
> 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.
-- Steve
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [add to stable] ftrace: Do not function trace inlined functions
2013-01-08 22:25 ` Steven Rostedt
@ 2013-01-08 22:40 ` Greg Kroah-Hartman
0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2013-01-08 22:40 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Ben Hutchings, LKML, stable, Thomas Gleixner
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [add to stable] ftrace: Do not function trace inlined functions
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-13 6:04 ` Ben Hutchings
1 sibling, 0 replies; 5+ messages in thread
From: Ben Hutchings @ 2013-01-13 6:04 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Greg Kroah-Hartman, LKML, stable, Thomas Gleixner
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
On Tue, 2013-01-08 at 16:38 -0500, Steven Rostedt wrote:
> Hi Greg and Ben,
>
> Can you add commit 45959ee7aa645815a5ce303a0ea1e48a21e67c6a to the
> stable trees.
Added to the queue for 3.2, thanks.
Ben.
--
Ben Hutchings
Klipstein's 4th Law of Prototyping and Production:
A fail-safe circuit will destroy others.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-01-13 6:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2013-01-13 6:04 ` Ben Hutchings
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).