]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] 5421/1: ftrace: fix crash due to tracing of __naked functions
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 12 Mar 2009 17:03:16 +0000 (18:03 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 12 Mar 2009 21:33:03 +0000 (21:33 +0000)
commit446c92b2901bedb3725d29b4e73def8aba623ffc
tree5669761e042f8321214ca5a975fec536fa5f0efd
parent9311c593f24f28de2a339da602644f0f7ae0fc60
[ARM] 5421/1: ftrace: fix crash due to tracing of __naked functions

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.

Reported-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Tested-by: Matthias Kaehlcke <matthias@kaehlcke.net>
Cc: Abhishek Sagar <sagar.abhishek@gmail.com>
Cc: Steven Rostedt <rostedt@home.goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/fiq.c
arch/arm/mm/copypage-feroceon.c
arch/arm/mm/copypage-v3.c
arch/arm/mm/copypage-v4mc.c
arch/arm/mm/copypage-v4wb.c
arch/arm/mm/copypage-v4wt.c
arch/arm/mm/copypage-xsc3.c
arch/arm/mm/copypage-xscale.c
include/linux/compiler-gcc.h