delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/23/10:55:08

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-10.2 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F956D30.7010801@redhat.com>
Date: Mon, 23 Apr 2012 08:54:40 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Two probable basing issues causing fork failures: (1) cygreadline7.dll has ASLR enabled, (2) default base address conflicts with ASLR-relocated/system DLLs
References: <00f201cd1f1d$43430230$c9c90690$@motionview3d.com> <20120420205019 DOT GA25994 AT ednor DOT casa DOT cgf DOT cx> <012001cd215c$b521ee20$1f65ca60$@motionview3d.com> <20120423145106 DOT GH7097 AT calimero DOT vinschen DOT de>
In-Reply-To: <20120423145106.GH7097@calimero.vinschen.de>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------enig711DC6E394B5763877A3D297
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 04/23/2012 08:51 AM, Corinna Vinschen wrote:
>> If having Windows randomly rebase cygreadline7.dll in a child process via
>> ASLR is not a problem, I'd simply be interested to know why.  I thought
>> *any* Cygwin DLL relocating itself would cause fork to fail.
>=20
> Yes, it is a problem in the first place if DLLs have the dynamicbase
> flag set, because, obviously, it undermines what rebaseall is doing.
> It's not a problem if the new address it gets rebased to doesn't collide
> with any other used DLL since ASLR on Windows only shuffles ASLR-enabled
> DLL addresses when a DLL is loaded by an application for the first time.
> Afterwards, it will use the new address for that DLL until reboot.
> So, yes, we should make sure that the ASLR flag is not used for Cygwin
> DLLs.
>=20
> Eric, could you create a new package which avoids setting the
> dynamicbase flag for cygreadline and cyghistory?

At the time I created the current cygreadline package, cygwin didn't
have quite as good support for running rebaseall; since things have
improved on that front, I will see about getting a new release of the
readline package this week that disables the ASLR hack I had added way
back when.

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig711DC6E394B5763877A3D297
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPlW0wAAoJEKeha0olJ0NqB5QIAITWUjGxnPNfx/YCLqsV0AnW
FzqyOYzE1FmwNqUYnb3z+q5upA62cU82t7M5R9e4o5dVX32J1fG0HNTdtTFa2Xum
Nsu8BAymXPGCmZSzWPAUYyZ0M8wo632VqyHT3gkOhT3IKCm4UVLyRNczYfiEfqPZ
9nHGeZVOOXJyQpOJJuXvxuK64Ye4iA+xTwPFCkUAC5pkQdr1KfCMFnqtPlPtaglh
+Q1Y92GBkqlD4fnFrwLwDFWXy+ZVGxprjsLgAvy5+aycJ7vlj0Z7Vv0Os9bZmTrs
F00WRI84GehqulbY3n7xVM+aOP0je0docyoJhVWqtqvECuBgFLXSs9MDGaoREs8=
=oxxK
-----END PGP SIGNATURE-----

--------------enig711DC6E394B5763877A3D297--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019