Skip to contentSkip to conversation

include/linux/mm.h: fix typo in VM_MPX definition

PATCH New [email protected] 1 participant 1 message Oct 3, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 4/51 include/linux/mm.h: fix typo in VM_MPX definition

From: "Kirill A. Shutemov" <[email protected]>
Subject: include/linux/mm.h: fix typo in VM_MPX definition

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

This bug does cause visible regressions. In arch_vma_name the vmflags are tested against VM_MPX. With the incorrect value of VM_MPX, a number of vmas (such as the stack) test positive and end up being marked as [mpx] in /proc/N/maps instead of their correct names. This confuses tools like rr which expect to be able to find familiar vmas.

Fixes df3735c5b40f ("x86,mpx: make mpx depend on x86-64 to free up VMA flag")
Cc Dave Hansen <[email protected]>
Cc Kyle Huey <[email protected]>
Cc <[email protected]> [4.14+]

---

 include/linux/mm.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h renamed from include/linux/mm.h~mm-fix-typo-in-vm_mpx-definition +1 -1
diff -puN include/linux/mm.h~mm-fix-typo-in-vm_mpx-definition include/linux/mm.h
@@ -240,7 +240,7 @@ extern unsigned int kobjsize(const void
 
 #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

_