From: H. Peter Anvin Date: Sat, 31 Aug 2013 00:29:29 +0000 (-0700) Subject: x86-32, ftrace: Fix static ftrace when early microcode is enabled X-Git-Tag: v3.12-rc1~79^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af058ab04d3d11383e5159132fc78a3700be3af5;p=pandora-kernel.git x86-32, ftrace: Fix static ftrace when early microcode is enabled Early microcode loading runs C code before paging is enabled on 32 bits. Since ftrace puts a hook into every function, that hook needs to be safe to execute in the pre-paging environment. This is currently true for dynamic ftrace but not for static ftrace. Static ftrace is obsolescent and assumed to not be performance-critical, so we can simply test that the stack pointer falls within the valid range of kernel addresses. Reported-by: Jan Kiszka Tested-by: Jan Kiszka Signed-off-by: H. Peter Anvin Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed