diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-09-07 18:22:28 +0100 |
---|---|---|
committer | Ziyan <jaraidaniel@gmail.com> | 2016-10-29 01:34:18 +0200 |
commit | 6b43c1e526d9ec1bc7ab1692a5620568d8e5e0d4 (patch) | |
tree | 9b1f198234910c2ca7e14c6cc50600c8eeff4194 /arch/arm/include/asm/proc-fns.h | |
parent | 43cfdcc8c2289272b21a75e217dc1b011e154338 (diff) | |
download | kernel_samsung_tuna-6b43c1e526d9ec1bc7ab1692a5620568d8e5e0d4.zip kernel_samsung_tuna-6b43c1e526d9ec1bc7ab1692a5620568d8e5e0d4.tar.gz kernel_samsung_tuna-6b43c1e526d9ec1bc7ab1692a5620568d8e5e0d4.tar.bz2 |
ARM: 7527/1: uaccess: explicitly check __user pointer when !CPU_USE_DOMAINS
commit 8404663f81d212918ff85f493649a7991209fa04 upstream.
The {get,put}_user macros don't perform range checking on the provided
__user address when !CPU_HAS_DOMAINS.
This patch reworks the out-of-line assembly accessors to check the user
address against a specified limit, returning -EFAULT if is is out of
range.
[will: changed get_user register allocation to match put_user]
[rmk: fixed building on older ARM architectures]
Change-Id: I9bfb98408bd76da6a342258dd50e72aa283f5416
Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/include/asm/proc-fns.h')
0 files changed, 0 insertions, 0 deletions