Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 40a97926b7b6
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 0a73111bc295
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 5, 2018

  1. gcc49: backport retpoline support

    To mitigate Spectre Variant 2, GCC needs to have retpoline
    support (-mindirect-branch and -mfunction-return arguments on amd64
    and i386).
    
    Patches were pulled from H.J. Lu's backport branch to
    4.9 (hjl/indirect/gcc-4_9-branch), available at
    https://github.com/hjl-tools/gcc/tree/hjl/indirect/gcc-4_9-branch/master. Upstream
    GCC does not apply patches to anything older than the
    gcc-6-branch. H.J. Lu is the author of the upstream retpoline commits
    as well.
    
    Several Linux distributions already backported these patches to GCC 4
    branches and some old kernels (3.13 for instance) have been recompiled
    with these GCC patches. These kernels only allow to load kernel
    modules that are compiled with the retpoline support.
    
    References:
    - Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1749261
    - Ubuntu package: https://launchpad.net/ubuntu/+source/gcc-4.8/4.8.4-2ubuntu1~14.04.4
    
    Fixes #38394
    
    (cherry picked from commit ada2fc0)
    nlewo committed May 5, 2018
    Configuration menu
    Copy the full SHA
    0a73111 View commit details
    Browse the repository at this point in the history