mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: linux-arm-kernel@lists.arm.linux.org.uk, linux-kernel@vger.kernel.org
Cc: Abhishek Sagar <sagar.abhishek@gmail.com>,
	Russell King <linux@arm.linux.org.uk>,
	Steven Rostedt <rostedt@rostedt.homelinux.com>,
	Ingo Molnar <mingo@elte.hu>,
	Matthias Kaehlcke <matthias@kaehlcke.net>
Subject: Re: [PATCH] ftrace: fix crash due to tracing of __naked functions
Date: Mon, 9 Mar 2009 21:38:36 +0100	[thread overview]
Message-ID: <20090309203836.GA1458@pengutronix.de> (raw)
In-Reply-To: <1236584800-7686-1-git-send-email-u.kleine-koenig@pengutronix.de>

Hello,

On Mon, Mar 09, 2009 at 08:46:40AM +0100, Uwe Kleine-König wrote:
> This is a fix for the following crash observed in 2.6.29-rc3:
> http://lkml.org/lkml/2009/1/29/150
> 
> On ARM it doesn't make sense to trace a naked function because then
> mcount is called without stack and frame pointer being set up and there
> is no chance to restore the lr register to the value before mcount was
> called.
> 
> Compared to the original fix posted to arm-linux-kernel ML on 29 Jan
> 2009 by Abhishek Sagar I only changed the definition of __naked for ARM.
while talking on #linux-rt about this patch I noticed that ARM is
currently the only user of __naked.  So maybe making __naked include
notrace unconditionally (as Abhishek suggested) is the right thing to
do.

Russell: Steven considers this patch more ARM than ftrace related, so he
(and probably Ingo, too) would prefer this to go via your tree.  Or at
least they want your Ack.
 
What do you think?

Best regards
Uwe

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

  parent reply	other threads:[~2009-03-09 20:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09  7:46 Uwe Kleine-König
2009-03-09 10:27 ` Matthias Kaehlcke
2009-03-09 20:38 ` Uwe Kleine-König [this message]
2009-03-15  1:44 ` Tim Bird
2009-03-15  6:34   ` Uwe Kleine-König
2009-03-15  8:57   ` Russell King - ARM Linux
2009-03-16 16:33     ` Tim Bird

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=20090309203836.GA1458@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=matthias@kaehlcke.net \
    --cc=mingo@elte.hu \
    --cc=rostedt@rostedt.homelinux.com \
    --cc=sagar.abhishek@gmail.com \
    /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

Powered by JetHome