Re: [patch 1/1] make PROT_WRITE imply PROT_READ

Ralf Baechle
2006-09-16T00:40:27Z

On Thu, Sep 14, 2006 at 06:39:47PM -0700, akpm@osdl.org wrote:

> (akpm: needs to be split into nine patches and fed through arch trees.
> Later.)
>
> (err, make it's easier to just collect some acks?)

MIPS (with the exception of the 4KSd) is also affected; I've just commited
below patch.

Ralf

diff --git a/arch/mips/mm/fault.c b/arch/mips/mm/fault.c
index e3a6172..a4f8c45 100644
--- a/arch/mips/mm/fault.c
+++ b/arch/mips/mm/fault.c
@@ -89,7 +89,7 @@ good_area:
if (!(vma->vm_flags & VM_WRITE))
goto bad_area;
} else {
- if (!(vma->vm_flags & (VM_READ | VM_EXEC)))
+ if (!(vma->vm_flags & (VM_READ | VM_WRITE | VM_EXEC)))
goto bad_area;
}