arm64/mm: Limit TASK_SIZE_64 for compatibility
authorBen Hutchings <ben@decadent.org.uk>
Fri, 16 Sep 2016 15:32:23 +0000 (16:32 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 2 Dec 2016 05:35:22 +0000 (05:35 +0000)
commita75ebca022ded3eb8e9393c1f28251cefa1e16ea
treec76fe19ecc69046b37f8292d8921634bc0bc1966
parent3fcc7187e0a4c1e72b7005590b50f98b56b82d31
arm64/mm: Limit TASK_SIZE_64 for compatibility

Some programs assume they can use 17 tag bits in a 64-bit pointer,
which works on most other 64-bit architectures but not on arm64 with
CONFIG_ARM64_VA_BITS_48.  To maintain compatibility with these
programs, limit TASK_SIZE_64 to a maximum of 1 << 47.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/arm64
Gbp-Pq: Name arm64-mm-limit-task_size_64-for-compatibility.patch
arch/arm64/include/asm/memory.h