Thread (52 messages) flat view 52 messages, 7 authors, 2024-10-22
STALE685d

Revision v2 of 5 in this series.

Revisions (5)
  1. rfc [diff vs current]
  2. v1 [diff vs current]
  3. v2 current
  4. v3 [diff vs current]
  5. v4 [diff vs current]

[PATCH v2 4/5] tools: testing: update tools UAPI header for mman-common.h

From: Lorenzo Stoakes <hidden>
Date: 2024-10-20 16:21:13
Also in: linux-alpha, linux-arch, linux-kselftest, linux-mips, linux-mm, lkml
Subsystem: the rest · Maintainer: Linus Torvalds

Import the new MADV_GUARD_POISON/UNPOISON madvise flags.

Signed-off-by: Lorenzo Stoakes <redacted>
---
 tools/include/uapi/asm-generic/mman-common.h | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/tools/include/uapi/asm-generic/mman-common.h b/tools/include/uapi/asm-generic/mman-common.h
index 6ce1f1ceb432..5dfd3d442de4 100644
--- a/tools/include/uapi/asm-generic/mman-common.h
+++ b/tools/include/uapi/asm-generic/mman-common.h
@@ -79,6 +79,9 @@
 
 #define MADV_COLLAPSE	25		/* Synchronous hugepage collapse */
 
+#define MADV_GUARD_POISON 102		/* fatal signal on access to range */
+#define MADV_GUARD_UNPOISON 103		/* revoke guard poisoning */
+
 /* compatibility flags */
 #define MAP_FILE	0
 
-- 
2.47.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help