summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/machine_kexec.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2017-11-02 18:44:28 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2017-11-06 12:00:38 +0000
commitb9dd05c7002ee0ca8b676428b2268c26399b5e31 (patch)
tree726645a75aa6e091da0ea05daa1c64f5d619bdf5 /arch/arm/kernel/machine_kexec.c
parentdad4675388fcb4353aea64174a165fb8494f1c13 (diff)
downloadtalos-obmc-linux-b9dd05c7002ee0ca8b676428b2268c26399b5e31.tar.gz
talos-obmc-linux-b9dd05c7002ee0ca8b676428b2268c26399b5e31.zip
ARM: 8720/1: ensure dump_instr() checks addr_limit
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> Cc: stable@vger.kernel.org Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel/machine_kexec.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud