Skip to content

Commit

Permalink
gcc: Update version from 5.5.0 to 7.3.0
Browse files Browse the repository at this point in the history
gcc 7.3 supports `-mindirect-branch=thunk-extern` which is used
(if available) by the kernel build to mitigate Spectre attacks
with a method called retpoline. If `-mindirect-branch=thunk-extern`
is not available, the kernel build will not (no longer) emit a
warning [1]. The insufficient protection will be visible on the
running system

    root@dose:/sys# cat /sys/devices/system/cpu/vulnerabilities/spectre_v2
    Vulnerable: Minimal generic ASM retpoline

whereas when the kernel is compiled with gcc 7.3 (`prun gcc-7.3.0-0
./linux-4.14.18-207.bee`) the output is:

    root@dose:~# cat /sys/devices/system/cpu/vulnerabilities/spectre_v2
    Mitigation: Full generic retpoline

1.  Changes GCC 7: https://gcc.gnu.org/gcc-7/changes.html
2.  Changes GCC 6: https://gcc.gnu.org/gcc-6/changes.html

1.  Porting to GCC 7: https://gcc.gnu.org/gcc-7/porting_to.html
2.  Porting to GCC 6: https://gcc.gnu.org/gcc-6/porting_to.html

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?h=linux-4.14.y&id=198660b7a5dd33b114001023d540c9072603e2a8
  • Loading branch information
donald authored and pmenzel committed Feb 12, 2018
1 parent 8f88141 commit f4c8184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc.be0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/env beesh

# BEE_VERSION gcc-5.5.0-1
# BEE_VERSION gcc-7.3.0-0

SRCURL[0]="https://ftp.gnu.org/gnu/gcc/gcc-${PKGVERSION}/gcc-${PKGVERSION}.tar.xz"

Expand Down

0 comments on commit f4c8184

Please sign in to comment.