summaryrefslogtreecommitdiff
path: root/cmds
diff options
context:
space:
mode:
authorMitch Phillips <mitchp@google.com>2021-01-20 18:30:07 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-01-20 18:30:07 +0000
commitb3f5d59011b528a40274363c8ad322d805ade33c (patch)
tree8288afef64c1f9285f665990e4c72ea90887513f /cmds
parent2805c9959430d4b43cfc5c195e75b0b7422454af (diff)
parent17de88981f57fd6d323a1b17da5008e53f053309 (diff)
Merge "[MTE] Enable ASYNC MTE in the Zygote."
Diffstat (limited to 'cmds')
-rw-r--r--cmds/app_process/Android.bp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/app_process/Android.bp b/cmds/app_process/Android.bp
index 07221f97c72b..14ebb713b6ae 100644
--- a/cmds/app_process/Android.bp
+++ b/cmds/app_process/Android.bp
@@ -62,4 +62,13 @@ cc_binary {
// Create a symlink from app_process to app_process32 or 64
// depending on the target configuration.
symlink_preferred_arch: true,
+
+ // Enable ASYNC MTE in the zygote, in order to allow apps and the system
+ // server to use MTE. We use ASYNC because we don't expect the pre-fork
+ // zygote to have substantial memory corruption bugs (as it's primarily Java
+ // code), and we don't want to waste memory recording malloc/free stack
+ // traces (which happens in SYNC mode).
+ sanitize: {
+ memtag_heap: true,
+ },
}