diff options
| author | H. Peter Anvin <[email protected]> | 2013-08-31 00:29:29 +0000 |
|---|---|---|
| committer | Steven Rostedt <[email protected]> | 2013-09-05 13:31:32 +0000 |
| commit | af058ab04d3d11383e5159132fc78a3700be3af5 (patch) | |
| tree | de93ea2d0b82f679cafb788444ed91e127abcf48 /lib/raid6/algos.c | |
| parent | ftrace: Fix a slight race in modifying what function callback gets traced (diff) | |
| download | kernel-af058ab04d3d11383e5159132fc78a3700be3af5.tar.gz kernel-af058ab04d3d11383e5159132fc78a3700be3af5.zip | |
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 <[email protected]>
Tested-by: Jan Kiszka <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Signed-off-by: Steven Rostedt <[email protected]>
Diffstat (limited to 'lib/raid6/algos.c')
0 files changed, 0 insertions, 0 deletions
