mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Chen Baozi <cbz@baozis.org>
Cc: x86@kernel.org, David Woodhouse <dwmw@amazon.co.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] x86/retpoline: check CONFIG_RETPOLINE option when SPECTRE_V2_CMD_AUTO
Date: Fri, 2 Feb 2018 11:35:25 +0100 (CET)	[thread overview]
Message-ID: <alpine.DEB.2.21.1802021134270.1472@nanos.tec.linutronix.de> (raw)
In-Reply-To: <20180202064744.29331-1-cbz@baozis.org>

On Fri, 2 Feb 2018, Chen Baozi wrote:

> Currently, if there is no spectre_v2= or nospectre_v2 specified in the boot
> parameter, the kernel will automatically choose mitigation by default.
> However, when selecting the auto mode, it doesn't check whether the
> retpoline has been built in the kernel. Thus, if someone built a kernel
> without CONFIG_RETPOLINE and booted the system without specifying any
> spectre_v2 kernel parameters, the kernel would still report that it has
> enabled a minimal retpoline mitigation which is not the case. This patch
> adds the checking of CONFIG_RETPOLINE option under the 'auto' mode to fix
> it.

Thanks for sending that patch, but its already fixed and queued for upstream:

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=x86/pti&id=9471eee9186a46893726e22ebb54cade3f9bc043

Thanks,

	tglx

      reply	other threads:[~2018-02-02 10:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-02  6:47 Chen Baozi
2018-02-02 10:35 ` Thomas Gleixner [this message]

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=alpine.DEB.2.21.1802021134270.1472@nanos.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=cbz@baozis.org \
    --cc=dwmw@amazon.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=x86@kernel.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®