diff options
author | Mark Rutland <mark.rutland@arm.com> | 2017-11-02 17:44:28 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-15 14:53:18 (GMT) |
commit | 1541afbfb4a250e6b571801d85c834e2880834b2 (patch) | |
tree | 66708af09092da17e3e2c7a67e303561e1328c28 /tools/perf | |
parent | 8ea52a683f816d65c1c89b78c500814f6e06a01d (diff) | |
download | linux-1541afbfb4a250e6b571801d85c834e2880834b2.tar.xz |
ARM: 8720/1: ensure dump_instr() checks addr_limit
commit b9dd05c7002ee0ca8b676428b2268c26399b5e31 upstream.
When CONFIG_DEBUG_USER is enabled, it's possible for a user to
deliberately trigger dump_instr() with a chosen kernel address.
Let's avoid problems resulting from this by using get_user() rather than
__get_user(), ensuring that we don't erroneously access kernel memory.
So that we can use the same code to dump user instructions and kernel
instructions, the common dumping code is factored out to __dump_instr(),
with the fs manipulated appropriately in dump_instr() around calls to
this.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions