X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Sun, 7 Jun 2009 13:07:40 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ASLR sometimes stops working on Vista with 1.7? [was: Re: 	Cygwin     1.7  release (was ...)]
Message-ID: <20090607170739.GD13658@ednor.casa.cgf.cx>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4A282063.9030804@users.sourceforge.net> <4A286B99.6020702@users.sourceforge.net> <20090605120936.GD23519@calimero.vinschen.de> <4A293237.2010102@cwilson.fastmail.fm> <20090605163510.GF23519@calimero.vinschen.de> <4A296778.2080507@cwilson.fastmail.fm> <20090605213012.GG23519@calimero.vinschen.de> <4A29B510.3020601@gmail.com> <20090606084924.GI23519@calimero.vinschen.de> <20090607082308.GA25832@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20090607082308.GA25832@calimero.vinschen.de>
User-Agent: Mutt/1.5.19 (2009-01-05)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Sun, Jun 07, 2009 at 10:23:08AM +0200, Corinna Vinschen wrote:
>The structure is allocated right after the space occupied by the DLL
>itself, using VirtualAlloc.  I changed the struct layout so that the
>size depends on the length of the pathname to the DLL.  In most, if not
>all cases this will fit into a single 4K page.

It doesn't have to be that way if this is causing problems.  Maybe it
would make sense to store these things in the cygheap now since I think
the allocation-next-to-the-dll predates the cygheap.  If that isn't
appropriate then we could also just store the information in some
easily-relocatable block and copy that block to forked processes.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

