From owner-freebsd-current@FreeBSD.ORG Sun Apr 12 04:48:45 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71866106566B for ; Sun, 12 Apr 2009 04:48:45 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 0C36C8FC08 for ; Sun, 12 Apr 2009 04:48:44 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.local (pooker.samsco.org [168.103.85.57]) by pooker.samsco.org (8.14.2/8.14.2) with ESMTP id n3C4mZih068993; Sat, 11 Apr 2009 22:48:35 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <49E172A3.2000108@samsco.org> Date: Sat, 11 Apr 2009 22:48:35 -0600 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9 MIME-Version: 1.0 To: Alan Cox References: <49E11CE7.5050903@cs.rice.edu> In-Reply-To: <49E11CE7.5050903@cs.rice.edu> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=3.8 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org Cc: current@freebsd.org Subject: Re: [Fwd: svn commit: r190949 - head/sys/vm] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Apr 2009 04:48:45 -0000 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 > Date: > Sat, 11 Apr 2009 22:34:09 +0000 (UTC) > To: > src-committers@freebsd.org, svn-src-all@freebsd.org, > svn-src-head@freebsd.org > > To: > src-committers@freebsd.org, svn-src-all@freebsd.org, > svn-src-head@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) > @@ -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; > > > ------------------------------------------------------------------------ > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"