[Fwd: svn commit: r190949 - head/sys/vm]

From: Alan Cox <alc_at_cs.rice.edu>
Date: Sat, 11 Apr 2009 17:42:47 -0500
It's possible that this could cause problems for "exotic" languages that 
do their own memory management, i.e., they don't use libc's malloc().  
If anyone experiences or hears of such things, please let me know so 
that we can get the problems sorted out well before the 8.0 release.

Alan


attached mail follows:


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)
_at__at_ -117,7 +117,7 _at__at_ 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;
Received on Sat Apr 11 2009 - 21:04:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:46 UTC