Add MISC_MEMTAG_MODE_MEMTAG_OFF.

This can be used as a killswitch to disable MTE from userspace.

Change-Id: I28ab4357c9ac3e088776f92a0e1f7d390b4b0bdc
This commit is contained in:
Florian Mayer 2022-06-14 23:23:27 +00:00
parent 3dbcd4bfd7
commit 29ace0ba4c

View file

@ -109,6 +109,7 @@ struct misc_memtag_message {
#define MISC_MEMTAG_MODE_MEMTAG_ONCE 0x2
#define MISC_MEMTAG_MODE_MEMTAG_KERNEL 0x4
#define MISC_MEMTAG_MODE_MEMTAG_KERNEL_ONCE 0x8
#define MISC_MEMTAG_MODE_MEMTAG_OFF 0x10
#if (__STDC_VERSION__ >= 201112L) || defined(__cplusplus)
static_assert(sizeof(struct misc_virtual_ab_message) == 64,