Skip to contentSkip to conversation

mm: Fix typo in VM_MPX definition

PATCH Applied Kirill A. Shutemov 3 participants 3 messages Sep 18, 2017 – Sep 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: Fix typo in VM_MPX definition

There's typo in recent change of VM_MPX definition. We want it to be VM_HIGH_ARCH_4, not VM_HIGH_ARCH_BIT_4.

Fixes df3735c5b40f ("x86,mpx: make mpx depend on x86-64 to free up VMA flag")
Cc Rik van Riel <[email protected]>
Cc Dave Hansen <[email protected]>
---
 include/linux/mm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h +1 -1
index f8c10d336e42..065d99deb847 100644
@@ -240,7 +240,7 @@ extern unsigned int kobjsize(const void *objp);
 
 #if defined(CONFIG_X86_INTEL_MPX)
 /* MPX specific bounds table or bounds directory */
-# define VM_MPX		VM_HIGH_ARCH_BIT_4
+# define VM_MPX		VM_HIGH_ARCH_4
 #else
 # define VM_MPX		VM_NONE
 #endif
Signature · 7 lines
2.14.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Kirill A. Shutemov

There's typo in recent change of VM_MPX definition. We want it to be VM_HIGH_ARCH_4, not VM_HIGH_ARCH_BIT_4.

Ugh, indeed! Good catch!

Quoted 5 lines
Fixes df3735c5b40f ("x86,mpx: make mpx depend on x86-64 to free up

VMA flag")
Cc: Rik van Riel <[email protected]>
Cc: Dave Hansen <[email protected]>

#2 lore raw
In reply to Kirill A. Shutemov

Could we get this patch into the next 4.14 rc too? This "typo" causes a bunch of sections in /proc/N/maps to be incorrectly labelled [mpx] which confuses rr. We could probably work around if it we had to but doing this right is trivial.

Thanks,

- Kyle

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>