arm64: implement TASK_SIZE_OF
authorColin Cross <ccross@android.com>
Wed, 18 Jun 2014 20:10:09 +0000 (21:10 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 24 Oct 2014 12:27:52 +0000 (13:27 +0100)
commit25057d5e48bf16b7a8bf569ed8c22c999ef30980
tree673e819a9a0940c02cb584c929211295afa38e51
parent84f329fa19404c78233f1325a6acb9a45afb5d08
arm64: implement TASK_SIZE_OF

include/linux/sched.h implements TASK_SIZE_OF as TASK_SIZE if it
is not set by the architecture headers.  TASK_SIZE uses the
current task to determine the size of the virtual address space.
On a 64-bit kernel this will cause reading /proc/pid/pagemap of a
64-bit process from a 32-bit process to return EOF when it reads
past 0xffffffff.

Implement TASK_SIZE_OF exactly the same as TASK_SIZE with
test_tsk_thread_flag instead of test_thread_flag.

Cc: stable@vger.kernel.org
Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit fa2ec3ea10bd377f9d55772b1dab65178425a1a2)
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm64/include/asm/memory.h