arm64: Fix __range_ok macro
authorChristopher Covington <cov@codeaurora.org>
Wed, 19 Mar 2014 16:29:37 +0000 (16:29 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 20 Mar 2014 17:41:27 +0000 (17:41 +0000)
commit31b1e940c5d47ee1a01baeccfb1b2b8890822d1a
treed80caf209aa2c68f96365e0c3bcb7a14719fb4c7
parent74397174989e5f704bcefde7af02e12cc32cb164
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>
arch/arm64/include/asm/uaccess.h