From: Martin Steigerwald <martin@lichtvoll.de>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Requirements for retpoline in Linux 4.15 (was: Re: Linux 4.15)
Date: Mon, 29 Jan 2018 10:41:15 +0100 [thread overview]
Message-ID: <1620541.3EV38X6Ctd@merkaba> (raw)
In-Reply-To: <CA+55aFzARtx-nA=d1j7vLOLf4FHMJLyRiQ-PKkoexJuTUHogdw@mail.gmail.com>
Hi Linus, hi everyone,
Linus Torvalds - 28.01.18, 22:52:
> details), and perhaps equally importantly, to actually get the biggest
> fix for the indirect branch mitigations, you need not just the kernel
> updates, you need to have a compiler with support for the "retpoline"
> indirect branch model.
>
> You can do
>
> cat /sys/devices/system/cpu/vulnerabilities/spectre_v2
>
> and if you don't have a compiler that supports the retpoline
> mitigations, you'll get:
>
> Vulnerable: Minimal generic ASM retpoline
>
> because only the assembly code (not the C code) will have the
> retpoline mitigation. So keep that in mind.
I have:
% cat /proc/version
Linux version 4.15.0-tp520-btrfstrim+ ([…]) (gcc version 7.3.0 (Debian
7.3.0-1)) #38 SMP PREEMPT Mon Jan 29 09:38:44 CET 2018
% grep RETPO /boot/config-4.15.0-tp520-btrfstrim+
CONFIG_RETPOLINE=y
% gcc --version | head -1
gcc (Debian 7.3.0-1) 7.3.0
% apt changelog gcc-7
gcc-7 (7.3.0-1) unstable; urgency=medium
* GCC 7.3.0 release.
* Ignore bootstrap comparison failures in gcc/d on alpha. Addresses:
#888394.
-- Matthias Klose […] Thu, 25 Jan 2018 12:07:10 +0100
Yet:
% grep . /sys/devices/system/cpu/vulnerabilities/*
/sys/devices/system/cpu/vulnerabilities/meltdown:Mitigation: PTI
/sys/devices/system/cpu/vulnerabilities/spectre_v1:Vulnerable
/sys/devices/system/cpu/vulnerabilities/spectre_v2:Vulnerable: Minimal generic
ASM retpoline
>From what I read gcc 7.3 was supposed to include back ported retpoline
patches. What am I missing here?
Thanks,
--
Martin
next prev parent reply other threads:[~2018-01-29 9:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-28 21:52 Linux 4.15 Linus Torvalds
2018-01-29 9:41 ` Martin Steigerwald [this message]
2018-01-29 9:53 ` Requirements for retpoline in Linux 4.15 (was: Re: Linux 4.15) David Woodhouse
2018-01-29 10:42 ` Martin Steigerwald
2018-01-29 11:19 ` Martin Steigerwald
2018-01-29 11:35 ` David Woodhouse
2018-01-30 3:43 ` Josh Poimboeuf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1620541.3EV38X6Ctd@merkaba \
--to=martin@lichtvoll.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®