mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-28 02:32:14 -04:00
mte: use tag 0 for freed slots, stop reserving tag 15
This commit is contained in:
parent
3c1f40aff0
commit
7268189933
4 changed files with 17 additions and 19 deletions
3
memtag.h
3
memtag.h
|
@ -6,7 +6,8 @@
|
|||
#ifdef HAS_ARM_MTE
|
||||
#include "arm_mte.h"
|
||||
#define MEMTAG 1
|
||||
#define RESERVED_TAG 15
|
||||
// Note that bionic libc always reserves tag 0 via PR_MTE_TAG_MASK prctl
|
||||
#define RESERVED_TAG 0
|
||||
#define TAG_WIDTH 4
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue