[trusty,1/1] UBUNTU: [Config] CONFIG_DEFAULT_MMAP_MIN_ADDR needs to match on armhf and arm64
diff mbox

Message ID 1427392354-14809-2-git-send-email-apw@canonical.com
State New
Headers show

Commit Message

Andy Whitcroft March 26, 2015, 5:52 p.m. UTC
Attempting to run 32bit binaries on arm64 triggers applications to be
Killed, as the CONFIG_DEFAULT_MMAP_MIN_ADDR used on armhf is not valid on
arm64.  While this can be overriden via sysctl, the default should be sane.

BugLink: http://bugs.launchpad.net/bugs/1418140
Signed-off-by: Andy Whitcroft <apw@canonical.com>
---
 debian.master/config/arm64/config.common.arm64 | 2 +-
 debian.master/config/enforce                   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox

diff --git a/debian.master/config/arm64/config.common.arm64 b/debian.master/config/arm64/config.common.arm64
index 6764617..530b4ce 100644
--- a/debian.master/config/arm64/config.common.arm64
+++ b/debian.master/config/arm64/config.common.arm64
@@ -22,7 +22,7 @@  CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
 # CONFIG_DEFAULT_CFQ is not set
 CONFIG_DEFAULT_DEADLINE=y
 CONFIG_DEFAULT_IOSCHED="deadline"
-CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
+CONFIG_DEFAULT_MMAP_MIN_ADDR=32768
 CONFIG_EXYNOS_VIDEO=y
 # CONFIG_EZX_PCAP is not set
 CONFIG_FB_ATY128=m
diff --git a/debian.master/config/enforce b/debian.master/config/enforce
index 43cde6d..4e5f90f 100644
--- a/debian.master/config/enforce
+++ b/debian.master/config/enforce
@@ -24,8 +24,8 @@  value CONFIG_DEBUG_INFO y
 # For architectures which support this option ensure it is disabled.
 !exists CONFIG_COMPAT_VDSO | value CONFIG_COMPAT_VDSO n
 !exists CONFIG_ACPI_CUSTOM_METHOD | value CONFIG_ACPI_CUSTOM_METHOD n
-# Default to 32768 on ARM, 65536 for everything else.
-(arch armel armhf &/ value CONFIG_DEFAULT_MMAP_MIN_ADDR 32768) | \
+# Default to 32768 on ARM, 65536 for everything else -- arm64 and armhf must match (LP:1418140)
+(arch armel armhf arm64 &/ value CONFIG_DEFAULT_MMAP_MIN_ADDR 32768) | \
  value CONFIG_DEFAULT_MMAP_MIN_ADDR 65536
 
 # upstart requires DEVTMPFS be enabled and mounted by default.