commit | f9fa32acf34fc5ea10e33ba6adb4f3f9537ea1f5 | [log] [tgz] |
---|---|---|
author | Evgenii Stepanov <eugenis@google.com> | Thu May 12 15:54:38 2022 -0700 |
committer | Evgenii Stepanov <eugenis@google.com> | Thu May 26 16:18:53 2022 -0700 |
tree | 551b3d3f76ded57951ed0b854129670a61da440d | |
parent | 3d425bb8fbe5a7de669324b3e81f0162ce66c5b7 [diff] [blame] |
Basic support for MTE stack tagging. Map all stacks (primary, thread, and sigaltstack) as PROT_MTE when the binary requests it through the ELF note. For the reference, the note is produced by the following toolchain changes: https://reviews.llvm.org/D118948 https://reviews.llvm.org/D119384 https://reviews.llvm.org/D119381 Bug: b/174878242 Test: fvp_mini with ToT LLVM (more tests in a separate change) Change-Id: I04a4e21c966e7309b47b1f549a2919958d93a872
diff --git a/libc/private/bionic_asm_arm64.h b/libc/private/bionic_asm_arm64.h index 5d83d9b..ffc7181 100644 --- a/libc/private/bionic_asm_arm64.h +++ b/libc/private/bionic_asm_arm64.h
@@ -76,3 +76,4 @@ #define NT_MEMTAG_LEVEL_ASYNC 1 #define NT_MEMTAG_LEVEL_SYNC 2 #define NT_MEMTAG_HEAP 4 +#define NT_MEMTAG_STACK 8