OSDN Git Service

MIPS: math-emu: Write-protect delay slot emulation pages
[uclinux-h8/linux.git] / arch / mips / kernel / vdso.c
index 48a9c6b..9df3ebd 100644 (file)
@@ -126,8 +126,8 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
 
        /* Map delay slot emulation page */
        base = mmap_region(NULL, STACK_TOP, PAGE_SIZE,
-                          VM_READ|VM_WRITE|VM_EXEC|
-                          VM_MAYREAD|VM_MAYWRITE|VM_MAYEXEC,
+                          VM_READ | VM_EXEC |
+                          VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC,
                           0, NULL);
        if (IS_ERR_VALUE(base)) {
                ret = base;