The ARCH_MMAP_RND_COMPAT_BITS* values are only appropriate for AArch32. For compat64, we do not need separate values, as the address space size is the same as in native.
This patch restores the number of ASLR bits to its appropriate value in compat64 by unselecting HAVE_ARCH_MMAP_RND_COMPAT_BITS, so that the native values are used in compat64 too.
Signed-off-by: Kevin Brodsky kevin.brodsky@arm.com --- arch/arm64/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 1c35447ebb87..83a5817afa7d 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -172,7 +172,7 @@ config ARM64 select HAVE_ARCH_KFENCE select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS - select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT + select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT32 select HAVE_ARCH_PREL32_RELOCATIONS select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET select HAVE_ARCH_SECCOMP_FILTER