[Bug 1749261] Re: Add amd64/i386 retpoline support
Launchpad Bug Tracker
1749261 at bugs.launchpad.net
Thu Feb 22 07:32:26 UTC 2018
This bug was fixed in the package gcc-4.8 - 4.8.4-2ubuntu1~14.04.4
---------------
gcc-4.8 (4.8.4-2ubuntu1~14.04.4) trusty-security; urgency=medium
* Add retpoline support for x86 via adding -mindirect-branch=,
-mindirect-branch-register, and -mfunction-return= support
(LP: #1749261)
- 0001-i386-Move-struct-ix86_frame-to-machine_function.diff,
0002-i386-Use-reference-of-struct-ix86_frame-to-avoid-cop.diff,
0003-i386-Use-const-reference-of-struct-ix86_frame-to-avo.diff,
0004-x86-Add-mindirect-branch.diff,
0005-x86-Add-mfunction-return.diff,
0006-x86-Add-mindirect-branch-register.diff,
0007-x86-Add-V-register-operand-modifier.diff,
0008-x86-Disallow-mindirect-branch-mfunction-return-with-.diff,
0009-Use-INVALID_REGNUM-in-indirect-thunk-processing.diff:
implement -mindirect-branch=<keep|thunk|thunk-inline|thunk-extern>
with attribute support, -mindirect-branch-register, and
-mfunction-return=<thunk|thunk-inline|thunk-extern> with
attribute support. Thanks to H.J. Lu.
-- Steve Beattie <sbeattie at ubuntu.com> Tue, 13 Feb 2018 10:19:48 -0800
** Changed in: gcc-4.8 (Ubuntu Trusty)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.8 in Ubuntu.
https://bugs.launchpad.net/bugs/1749261
Title:
Add amd64/i386 retpoline support
Status in gcc-4.8 package in Ubuntu:
New
Status in gcc-4.8 source package in Trusty:
Fix Released
Bug description:
To mitigate Spectre Variant 2, gcc needs to have retpoline support
(-mindirect-branch and -mfunction-return arguments on amd64 and i386).
Packages with this will go into the proposed pockets but need to be
published in the -security pockets for their respective releases.
Patches for gcc-4.8 were pulled from H.J. Lu's backport branch to 4.9,
available at https://github.com/hjl-tools/gcc/tree/hjl/indirect/gcc-
4_9-branch/master . Upstream GCC does not seem to be applying patches
to anything older than the gcc-6-branch. H.J. Lu is the author of the
upstream retpoline commits as well.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1749261/+subscriptions
More information about the foundations-bugs
mailing list