Messages in this thread Patch in this message | | | Date | Wed, 9 Apr 2003 16:00:35 -0700 | From | David Mosberger <> | Subject | [patch] correct vm_page_prot on stack pages |
| |
The patch below is needed to make it possible to map stack pages without execution permission (as we do on ia64).
--david
diff -Nru a/fs/exec.c b/fs/exec.c --- a/fs/exec.c Wed Apr 9 14:49:49 2003 +++ b/fs/exec.c Wed Apr 9 14:49:49 2003 @@ -407,7 +407,7 @@ mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p; mpnt->vm_end = STACK_TOP; #endif - mpnt->vm_page_prot = PAGE_COPY; + mpnt->vm_page_prot = protection_map[VM_STACK_FLAGS & 0x7]; mpnt->vm_flags = VM_STACK_FLAGS; mpnt->vm_ops = NULL; mpnt->vm_pgoff = 0; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |