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

From: Scott Long <scottl_at_samsco.org>
Date: Sat, 11 Apr 2009 22:48:35 -0600
Off the top of my head, I would almost expect this to conflict with
Java.  Haven't tried it, though, so I can't do anything more than
speculate.  However, I would encourage testing here.

Scott


Alan Cox wrote:
> 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
> 
> 
> ------------------------------------------------------------------------
> 
> Subject:
> svn commit: r190949 - head/sys/vm
> From:
> Alan Cox <alc_at_FreeBSD.org>
> Date:
> Sat, 11 Apr 2009 22:34:09 +0000 (UTC)
> To:
> src-committers_at_freebsd.org, svn-src-all_at_freebsd.org, 
> svn-src-head_at_freebsd.org
> 
> To:
> src-committers_at_freebsd.org, svn-src-all_at_freebsd.org, 
> svn-src-head_at_freebsd.org
> 
> 
> 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;
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Sun Apr 12 2009 - 02:48:45 UTC

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