[LTP] [PATCH 1/2] lapi: add PROT_MTE fallback

Andrea Cervesato andrea.cervesato@suse.de
Wed Jul 15 13:39:26 CEST 2026


From: Andrea Cervesato <andrea.cervesato@suse.com>

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
 include/lapi/mman.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/lapi/mman.h b/include/lapi/mman.h
index edd517c6e0ebad98f01530b9ac2a7c90cdcaced8..ca72ffd484129b9e8c9165816544da0d8d0ea06a 100644
--- a/include/lapi/mman.h
+++ b/include/lapi/mman.h
@@ -11,6 +11,10 @@
 #include "config.h"
 #include "lapi/syscalls.h"
 
+#ifndef PROT_MTE
+# define PROT_MTE 0x20
+#endif
+
 #ifndef HAVE_STRUCT_CACHESTAT_RANGE
 struct cachestat_range {
 	uint64_t off;

-- 
2.51.0



More information about the ltp mailing list