svn commit: r190949 - head/sys/vm

Alan Cox alc at FreeBSD.org
Sat Apr 11 22:34:10 UTC 2009


Author: alc
Date: Sat Apr 11 22:34:08 2009
New Revision: 190949
URL: http://svn.freebsd.org/changeset/base/190949

Log:
  Remove execute permission from the memory allocated by sbrk().
  
  Pre-announced on: -arch (3/31/09)
  Discussed with: rwatson
  Tested by: marius (sparc64)

Modified:
  head/sys/vm/vm_unix.c

Modified: head/sys/vm/vm_unix.c
==============================================================================
--- head/sys/vm/vm_unix.c	Sat Apr 11 22:07:19 2009	(r190948)
+++ head/sys/vm/vm_unix.c	Sat Apr 11 22:34:08 2009	(r190949)
@@ -117,7 +117,7 @@ obreak(td, uap)
 			goto done;
 		}
 		rv = vm_map_insert(&vm->vm_map, NULL, 0, old, new,
-		    VM_PROT_ALL, VM_PROT_ALL, 0);
+		    VM_PROT_RW, VM_PROT_ALL, 0);
 		if (rv != KERN_SUCCESS) {
 			error = ENOMEM;
 			goto done;


More information about the svn-src-head mailing list