mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] vm_page_prot value
@ 2002-01-17 18:47 David Engebretsen
  2002-01-17 21:16 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: David Engebretsen @ 2002-01-17 18:47 UTC (permalink / raw)
  To: linux-kernel

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;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-01-17 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-17 18:47 [PATCH] vm_page_prot value David Engebretsen
2002-01-17 21:16 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®