diff options
author | Jon Medhurst (Tixy) <[email protected]> | 2011-11-29 08:16:02 +0100 |
---|---|---|
committer | Russell King <[email protected]> | 2011-11-30 23:54:54 +0000 |
commit | b5bed7fe801d1460424b7aeb6b06464e23d2a1e6 (patch) | |
tree | d7908f55743de30fa49d5cf01ad2c5aeafebf8eb /tools/perf/scripts/python/Perf-Trace-Util/Context.c | |
parent | 14383c295ab48178c449336f5d74e9e615e36723 (diff) |
ARM: 7181/1: Restrict kprobes probing SWP instructions to ARMv5 and below
The SWP instruction is deprecated on ARMv6 and with ARMv7 it will be
UNDEFINED when CONFIG_SWP_EMULATE is selected. In this case, probing a
SWP instruction will cause an oops when the kprobes emulation code
executes an undefined instruction.
As the SWP instruction should be rare or non-existent in kernels for
ARMv6 and later, we can simply avoid these problems by not allowing
probing of these.
Reported-by: Leif Lindholm <[email protected]>
Tested-by: Leif Lindholm <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
Signed-off-by: Jon Medhurst <[email protected]>
Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/Context.c')
0 files changed, 0 insertions, 0 deletions