X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1DC0238618CC Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=nexgo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Stromeko AT nexgo DOT de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexgo.de; s=vfde-smtpout-mb-15sep; t=1614521045; bh=yTaRm9vdErPe23pSDtRgaVGuCY9/cLTSwnAnLSfxSow=; h=From:To:Subject:References:Date:In-Reply-To; b=WI604XUvahcwaCMuKseYN+gUWTwZivnPD4U/Q1ng4Grt5CqZpO8r5GwvddypBqQYf TR6XMaXipmgXn0sLe3C9TlC3pUdA0Qlah4xVjVbXDC6o2xg7zrehE51+i86EdPw9sx EILLTrBjfvBc7jUgFMUQ2YM3p2II68iyD8hQziJ4= From: ASSI To: cygwin AT cygwin DOT com Subject: Re: cygwin + binutils 2.36 + ASLR/dynamicbase defaults References: <87zgzo9zpa DOT fsf AT Otto DOT invalid> Date: Sun, 28 Feb 2021 15:03:50 +0100 In-Reply-To: (Christoph Reiter via Cygwin's message of "Sun, 28 Feb 2021 13:28:08 +0100") Message-ID: <87r1l09tmh.fsf@Otto.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 1318 X-purgate-ID: 155817::1614521045-000006CB-2FA9EE87/0/0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Christoph Reiter via Cygwin writes: > MSYS2 builds all packages with ASLR since 6 months, so things look > good. That doesn't tell you all that much since you will have to wait for some unfavorable address space layout constellation to appear for the problem to announce itself and then you need someone to recognize the reason and report it back to you. I tend to see this only on 32bit on my development machine where I have a large amount of dependencies installed. After a reboot the problem will move somewhere else, which means that you will need to find another reproducer. > We've added a patch that allows reverting the base address if needed: > https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-binutils/2001-ld-option-to-move-default-bases-under-4GB.patch In other words, that should be the default then since you can't know if it works otherwise. Also, I really don't think we should need to change all toolchains to use these options just in order to produce working executables. If "safer" means "it doesn't work", then there are clearly easier ways to get there. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf rackAttack V1.04R1: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple