From b84fc9dc32b56dd8aaf9ab7e83f32b5bf2ce2abe Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Thu, 10 Jan 2019 09:46:00 -0800 Subject: [PATCH] Enable execute-only memory layouts by default. This enables execute-only memory (XOM) layouts to be used by default in the build system. As of now, there's only support for ARM64 devices, so this only affects those. Since userland XOM requires kernel support, devices without the necessary support will continue to allow pages marked execute-only to be read and they should be unaffected by this. Bug: 77958880 Test: Device with and without kernel support boot. Test: Binary throws segfault when reading from XOM on supported device. Test: Debugger works and stack traces are still generated correctly. Test: Teamfooding, stable during regular usage. Change-Id: Ifc7438cd242a824db441b8d557454d1c3cc81eeb --- android/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/config.go b/android/config.go index 925ca9440..7c1278e58 100644 --- a/android/config.go +++ b/android/config.go @@ -649,7 +649,7 @@ func (c *config) EnableCFI() bool { func (c *config) EnableXOM() bool { if c.productVariables.EnableXOM == nil { - return false + return true } else { return Bool(c.productVariables.EnableXOM) }