arm64: Fix __range_ok macro
authorChristopher Covington <cov@codeaurora.org>
Wed, 19 Mar 2014 16:29:37 +0000 (16:29 +0000)
committerMark Brown <broonie@linaro.org>
Wed, 21 May 2014 18:04:06 +0000 (19:04 +0100)
commitedd542927515fbdd8e5341aabada596d620b69c6
tree3468aee9dbfc894358aa03f572cd683cb2b09f62
parent1af7205a961f33b011f9a7f1e6df3c1d0ffa0a90
arm64: Fix __range_ok macro

Without this, the following scenario is incorrectly determined
to be invalid.

addr 0x7f_ffffe000 size 8192 addr_limit 0x80_00000000

This behavior was observed while trying to vmsplice the stack
as part of a CRIU dump of a process on a system started with the
norandmaps kernel parameter.

Signed-off-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit 31b1e940c5d47ee1a01baeccfb1b2b8890822d1a)
Signed-off-by: Mark Brown <broonie@linaro.org>
arch/arm64/include/asm/uaccess.h