From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebT6q-0000p1-64 for guix-patches@gnu.org; Tue, 16 Jan 2018 10:25:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebT6k-0001Ee-75 for guix-patches@gnu.org; Tue, 16 Jan 2018 10:25:08 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:50976) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebT6k-0001EX-3n for guix-patches@gnu.org; Tue, 16 Jan 2018 10:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebT6j-0002OB-TY for guix-patches@gnu.org; Tue, 16 Jan 2018 10:25:01 -0500 Subject: [bug#30111] gnu: gcc@7: Apply the 'retpoline' mitigation technique. Resent-Message-ID: From: Alex Vong 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30111@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Hi Alex, > > Alex Vong skribis: > >> From aea3d11f59e260111bdb8bcac458c97a946fa900 Mon Sep 17 00:00:00 2001 >> From: Alex Vong >> 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 . >> >> * 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-ix8= 6_frame-to-avoi.patch, >> gnu/packages/patches/gcc-retpoline-i386-Move-struct-ix86_frame-to-machin= e_function.patch, >> gnu/packages/patches/gcc-retpoline-i386-Use-reference-of-struct-ix86_fra= me-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.p= atch, >> gnu/packages/patches/gcc-retpoline-x86-Add-mfunction-return.patch, >> gnu/packages/patches/gcc-retpoline-x86-Add-mindirect-branch-register.pat= ch, >> gnu/packages/patches/gcc-retpoline-x86-Add-mindirect-branch.patch, >> gnu/packages/patches/gcc-retpoline-x86-Disallow-mindirect-branch-mfuncti= on-return-with-.patch: >> New files. > > I=E2=80=99d suggest removing the test suite changes from the patches (cur= rently > we don=E2=80=99t run GCC=E2=80=99s test suite.) Also, =E2=80=98guix lint= =E2=80=99 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=3Dgcc.git;a=3Dshortlog;h=3Drefs/heads/gcc-7= -branch > Thanks, > Ludo=E2=80=99.