diff options
author | Mark Rutland <mark.rutland@arm.com> | 2017-11-02 16:12:03 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-08 09:08:32 (GMT) |
commit | 011b44af00774e76903e9f6356b206a8f9d9d6ce (patch) | |
tree | 970b8759b92bc80250430f70d04aaf58ae09550e /net/ipv6/ip6_udp_tunnel.c | |
parent | 43f69519e9f9948b0a5db2840f25ba555586c558 (diff) | |
download | linux-011b44af00774e76903e9f6356b206a8f9d9d6ce.tar.xz |
arm64: ensure __dump_instr() checks addr_limit
commit 7a7003b1da010d2b0d1dc8bf21c10f5c73b389f1 upstream.
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.
Where we use __dump_instr() on kernel text, we already switch to
KERNEL_DS, so this shouldn't adversely affect those cases.
Fixes: 60ffc30d5652810d ("arm64: Exception handling")
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv6/ip6_udp_tunnel.c')
0 files changed, 0 insertions, 0 deletions