commit | 45819dde10da8fb28a4ce9e6fc17f852839cd2c9 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Thu Jan 09 11:00:43 2020 -0800 |
committer | Peter Collingbourne <pcc@google.com> | Thu Feb 20 15:25:08 2020 -0800 |
tree | eff1d1c5f125f17676aa2f5231cf526371d71de8 | |
parent | f2549c8369d7da5bc62e9d171211eff8fa46b9bd [diff] [blame] |
Allow android_mallopt(M_SET_HEAP_TAGGING_LEVEL) to control scudo heap tagging. The tag level may now be async, which is now the default. When the tag level is set to none, memory tagging is disabled in the allocator using the new API proposed in https://reviews.llvm.org/D70762 . Bug: 135772972 Change-Id: I847f5822a70913c446ed9ffa13792177bbfc96af
diff --git a/libc/platform/bionic/mte_kernel.h b/libc/platform/bionic/mte_kernel.h index 804311c..2c777c9 100644 --- a/libc/platform/bionic/mte_kernel.h +++ b/libc/platform/bionic/mte_kernel.h
@@ -48,4 +48,7 @@ #define PR_MTE_EXCL_SHIFT 3 #define PR_MTE_EXCL_MASK (0xffffUL << PR_MTE_EXCL_SHIFT) +#define SEGV_MTEAERR 6 +#define SEGV_MTESERR 7 + #endif