Skip to contentSkip to conversation

ARM: fix typo in is_gate_vma() macro

PATCH In review Mathias Krause 2 participants 2 messages Aug 6, 2013 – Aug 7, 2013 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: fix typo in is_gate_vma() macro

Commit a5463cd3 "ARM: make vectors page inaccessible from userspace" introduced a typo making arch_vma_name() always return "[vectors]". Fix up that regression (of the hush-hush security fix).

---
 arch/arm/kernel/process.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/kernel/process.c +1 -1
index 16ed3f7..34fe52d 100644
@@ -462,7 +462,7 @@ int in_gate_area_no_mm(unsigned long addr)
 {
 	return in_gate_area(NULL, addr);
 }
-#define is_gate_vma(vma)	((vma) = &gate_vma)
+#define is_gate_vma(vma)	((vma) == &gate_vma)
 #else
 #define is_gate_vma(vma)	0
 #endif
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 3 lines · Mathias Krause

Commit a5463cd3 "ARM: make vectors page inaccessible from userspace" introduced a typo making arch_vma_name() always return "[vectors]". Fix up that regression (of the hush-hush security fix).

And if you search the list archives, you will see that I've already replied to patches exactly like this many times so far. Thanks.