lkml.org 
[lkml]   [2002]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] vm_page_prot value
Following is a patch against 2.4.18-pre3 which fixes a problem where the 
protection on user stack pages are not marked executable even though
the flags indicate the page is executable. Some more aggressive cache
flush optimizations may rely on the execution marking to indicate if a page
needs to be flushed as it might be present in an icache which is not
coherent with the dcache.

Pat Mccarthy, Don Reed, Dave Engebretsen


diff -Naur linux.orig/fs/exec.c linuxppc64_2_4/fs/exec.c
--- linux.orig/fs/exec.c Fri Dec 21 11:41:55 2001
+++ linuxppc64_2_4/fs/exec.c Thu Jan 10 11:32:48 2002
@@ -313,7 +312,7 @@
mpnt->vm_mm = current->mm;
mpnt->vm_start = PAGE_MASK & (unsigned long) bprm->p;
mpnt->vm_end = STACK_TOP;
- mpnt->vm_page_prot = PAGE_COPY;
+ mpnt->vm_page_prot = protection_map[VM_STACK_FLAGS & 0xf];
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/
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.030 / U:0.984 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site