summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/armv8_deprecated.c
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2017-05-03 16:09:35 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2017-05-09 17:46:51 +0100
commita06040d7a791a9177581dcf7293941bd92400856 (patch)
treed98c82e80ac702b224342b2e49072319a9545ea8 /arch/arm64/kernel/armv8_deprecated.c
parent994870bead4ab19087a79492400a5478e2906196 (diff)
downloadop-kernel-dev-a06040d7a791a9177581dcf7293941bd92400856.zip
op-kernel-dev-a06040d7a791a9177581dcf7293941bd92400856.tar.gz
arm64: uaccess: ensure extension of access_ok() addr
Our access_ok() simply hands its arguments over to __range_ok(), which implicitly assummes that the addr parameter is 64 bits wide. This isn't necessarily true for compat code, which might pass down a 32-bit address parameter. In these cases, we don't have a guarantee that the address has been zero extended to 64 bits, and the upper bits of the register may contain unknown values, potentially resulting in a suprious failure. Avoid this by explicitly casting the addr parameter to an unsigned long (as is done on other architectures), ensuring that the parameter is widened appropriately. Fixes: 0aea86a2176c ("arm64: User access library functions") Cc: <stable@vger.kernel.org> # 3.7.x- 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>
Diffstat (limited to 'arch/arm64/kernel/armv8_deprecated.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud