GNU bug report logs

#30111 [PATCH] gnu: gcc@7: Use retpoline options when building itself.

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Full log

Message #21 received at 30111@debbugs.gnu.org (full text, mbox, reply):

Received: (at 30111) by debbugs.gnu.org; 16 Jan 2018 15:24:58 +0000
From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 10:24:58 2018
Received: from localhost ([127.0.0.1]:58873 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1ebT6e-0002No-63
	for submit@debbugs.gnu.org; Tue, 16 Jan 2018 10:24:58 -0500
Received: from mail-pg0-f44.google.com ([74.125.83.44]:43631)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <alexvong1995@gmail.com>) id 1ebT6a-0002NY-Fw
 for 30111@debbugs.gnu.org; Tue, 16 Jan 2018 10:24:54 -0500
Received: by mail-pg0-f44.google.com with SMTP id n17so2082252pgf.10
 for <30111@debbugs.gnu.org>; Tue, 16 Jan 2018 07:24:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=5b6vnPJ0W2h8O+yK/TV56KKrXrnrHYmKlpTAZrWxTIY=;
 b=Z0mXk6vDNHSrrLPW6H4R6QV2kqcccVf/ClaMyGt9evfqyS1HoSqMH6cv2asiy14Up0
 2rmPXRDlRyjHiwxb9fTk5YENZakp9JmDq6dK/tMRQ+AQL8vcY4dmxGxY870JCpKg/xmy
 yTjyZiinnyxXYXJrWefCBwBESFXpPaPYtaEf5AxFHWuii5NOKLlHO1kni0rFRY3Ny7Vw
 t6HgBtyu/uIFR7mCTkIfkRvUuJGWZnnrnW7yTKhPUDtrwO/dC2Pnpx/FIMhkZiTbF2Vy
 qukyXO5ROqBBoOWCFT+jT7m58nl26HBlf9EXogwFgl1b3UhlM0wyE4uzULTkHdechQQx
 ZBIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=5b6vnPJ0W2h8O+yK/TV56KKrXrnrHYmKlpTAZrWxTIY=;
 b=g3A2YGc/1QPcsRT330AXqc2qQulO0lMJ/0g5MtFRpVQ+DuVY12pGGmofic9T2ZXYOO
 rDHNWpU+xe79D99JzVlBGF4YzowlY8kQkos6XYNFly5cjqNvmTOb1B1NSbOoi1p+A9Mf
 xi+Eczw9k7QoTfg96awBWBEn8qOWdDD7TvxbLE/9Wcm5DPMajNQc9fY7zxaOLr9yqpqa
 AUi1nZp3vFdLQhyN6j5Rs5bxJn2AFcJ5nBV2+znZvFN+I+pbNc4sX9SF18tJnpm1w4ff
 cSGETmw5wAfyz4JAoV3imHBoQ13uAwE4T1+KxNDg+qp6EsDn6Cg23I8FAX5GSsyy7PKh
 pzrQ==
X-Gm-Message-State: AKGB3mIU/XyrFcHs8wX9U7M9aoHg7BmWsa5NQVFCh6iPUqTyE54BOdjx
 6Jda8DgVgbB+EqZw1jOZkGU=
X-Google-Smtp-Source: ACJfBov5wsbQc9EIK2Tn9mikLh29SAenSDe9K8rLYzF6mzueR4s1BZarEjwGor0YtSwZ2n928Qn1Hg==
X-Received: by 10.99.189.81 with SMTP id d17mr30987233pgp.370.1516116286716;
 Tue, 16 Jan 2018 07:24:46 -0800 (PST)
Received: from debian (n218250002129.netvigator.com. [218.250.2.129])
 by smtp.gmail.com with ESMTPSA id l8sm3791326pgc.58.2018.01.16.07.24.45
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 16 Jan 2018 07:24:46 -0800 (PST)
From: Alex Vong <alexvong1995@gmail.com>
To: ludo@gnu.org (Ludovic Courtès)
Subject: Re: [bug#30111] gnu: gcc@7: Apply the 'retpoline' mitigation
 technique.
References: <877esksi62.fsf@gmail.com> <87d12bgpqh.fsf@gmail.com>
 <87a7xet06p.fsf@gmail.com> <87a7xd6ffu.fsf@gnu.org>
Date: Tue, 16 Jan 2018 23:24:35 +0800
In-Reply-To: <87a7xd6ffu.fsf@gnu.org> ("Ludovic
 \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\=
 \=\?utf-8\?Q\?s\?\= message of "Tue, 16 Jan 2018 15:33:57 +0100")
Message-ID: <876081u8r0.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 30111
Cc: 30111@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: 0.3 (/)
ludo@gnu.org (Ludovic Courtès) writes:

> Hi Alex,
>
> Alex Vong <alexvong1995@gmail.com> skribis:
>
>> From aea3d11f59e260111bdb8bcac458c97a946fa900 Mon Sep 17 00:00:00 2001
>> From: Alex Vong <alexvong1995@gmail.com>
>> Date: Tue, 16 Jan 2018 20:32:32 +0800
>> Subject: [PATCH] gnu: gcc@7: Apply the 'retpoline' mitigation technique.
>>
>> This is part of Spectre (branch target injection) [CVE-2017-5715]
>> mitigation. Suggested by Mark H Weaver <mhw@netris.org>.
>>
>> * gnu/local.mk (dist_patch_DATA): Add them.
>> * gnu/packages/gcc.scm (gcc@7): Use them.
>> * gnu/packages/patches/gcc-retpoline-Change-V-to-bare-reg-names.patch,
>> gnu/packages/patches/gcc-retpoline-i386-More-use-reference-of-struct-ix86_frame-to-avoi.patch,
>> gnu/packages/patches/gcc-retpoline-i386-Move-struct-ix86_frame-to-machine_function.patch,
>> gnu/packages/patches/gcc-retpoline-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.patch,
>> gnu/packages/patches/gcc-retpoline-indirect-thunk-reg-names.patch,
>> gnu/packages/patches/gcc-retpoline-x86-Add-V-register-operand-modifier.patch,
>> gnu/packages/patches/gcc-retpoline-x86-Add-mfunction-return.patch,
>> gnu/packages/patches/gcc-retpoline-x86-Add-mindirect-branch-register.patch,
>> gnu/packages/patches/gcc-retpoline-x86-Add-mindirect-branch.patch,
>> gnu/packages/patches/gcc-retpoline-x86-Disallow-mindirect-branch-mfunction-return-with-.patch:
>> New files.
>
> I’d suggest removing the test suite changes from the patches (currently
> we don’t run GCC’s test suite.)  Also, ‘guix lint’ may suggest using
> shorter file names.
>
OK, no problem.

> Do you know if a new 7.x including retpoline support is scheduled for
> release soon?
>
Yes, I think they will appear in 7.3 according to [0]. Also, some
changes appear to be in gcc-7-branch already[1]. Do you think we should
wait for it instead?

[0]: https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01400.html
[1]: https://gcc.gnu.org/git/?p=gcc.git;a=shortlog;h=refs/heads/gcc-7-branch

> Thanks,
> Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Fri Jan 3 00:54:48 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.