|
@@ -287,6 +287,12 @@ extern unsigned int kobjsize(const void *objp);
|
|
/* This mask is used to clear all the VMA flags used by mlock */
|
|
/* This mask is used to clear all the VMA flags used by mlock */
|
|
#define VM_LOCKED_CLEAR_MASK (~(VM_LOCKED | VM_LOCKONFAULT))
|
|
#define VM_LOCKED_CLEAR_MASK (~(VM_LOCKED | VM_LOCKONFAULT))
|
|
|
|
|
|
|
|
+/* Arch-specific flags to clear when updating VM flags on protection change */
|
|
|
|
+#ifndef VM_ARCH_CLEAR
|
|
|
|
+# define VM_ARCH_CLEAR VM_NONE
|
|
|
|
+#endif
|
|
|
|
+#define VM_FLAGS_CLEAR (ARCH_VM_PKEY_FLAGS | VM_ARCH_CLEAR)
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* mapping from the currently active vm_flags protection bits (the
|
|
* mapping from the currently active vm_flags protection bits (the
|
|
* low four bits) to a page protection mask..
|
|
* low four bits) to a page protection mask..
|