From: Waiman Long <longman@redhat.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Borislav Petkov <bp@alien8.de>, Ingo Molnar <mingo@redhat.com>,
"H. Peter Anvin" <hpa@zytor.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Josh Poimboeuf <jpoimboe@redhat.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Pawan Gupta <pawan.kumar.gupta@linux.intel.com>,
Mark Gross <mgross@linux.intel.com>,
Tony Luck <tony.luck@intel.com>
Subject: Re: [PATCH] x86/speculation: Fix incorrect MDS/TAA mitigation status
Date: Thu, 14 Nov 2019 14:11:34 -0500 [thread overview]
Message-ID: <7f898fcb-3f0d-c754-f75d-213519e0b417@redhat.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1911141943150.29616@nanos.tec.linutronix.de>
On 11/14/19 1:48 PM, Thomas Gleixner wrote:
> On Thu, 14 Nov 2019, Waiman Long wrote:
>> On 11/14/19 12:45 PM, Borislav Petkov wrote:
>>>> - /* TAA mitigation is turned off on the cmdline (tsx_async_abort=off) */
>>>> - if (taa_mitigation == TAA_MITIGATION_OFF)
>>>> + /*
>>>> + * TAA mitigation via VERW is turned off if both
>>>> + * tsx_async_abort=off and mds=off are specified.
>>>> + */
>>> So this changes the dependency of switches so if anything, it should be
>>> properly documented first in all three:
>>>
>>> Documentation/admin-guide/hw-vuln/tsx_async_abort.rst
>>> Documentation/x86/tsx_async_abort.rst
>>> Documentation/admin-guide/kernel-parameters.txt
>>>
>>> However, before we do that, we need to agree on functionality:
>> I agree that the documentation needs to be updated. I am going to do
>> that once we have a consensus of what is the right thing to do.
>>> Will the mitigations be disabled only with *both* =off supplied on the
>>> command line or should the mitigations be disabled when *any* of the two
>>> =off is supplied?
>> The mitigation is disabled only with BOTH =off supplied or
>> "mitigations=off". This is the current behavior. This patch is just to
>> make sure that vulnerabilities files reflect the actual behavior. Of
>> course, we can change it to disable mitigation with either =off if this
>> is what the consensus turn out to be.
> I think the current behaviour is correct. It's just a coincidence that both
> issues happen to use the same mitigation technology in the exactly same
> places. So if you leave one on then the other gets mitigated as a side
> effect and the sysfs file should reflect that.
>
> Thanks,
>
> tglx
>
Good to hear that. I will send a v2 patch with document update.
Cheers,
Longman
next prev parent reply other threads:[~2019-11-14 19:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-13 19:33 Waiman Long
2019-11-14 17:45 ` Borislav Petkov
2019-11-14 17:53 ` Waiman Long
2019-11-14 18:48 ` Thomas Gleixner
2019-11-14 19:11 ` Waiman Long [this message]
2019-11-14 20:12 ` Pawan Gupta
2019-11-14 20:35 ` Josh Poimboeuf
2019-11-14 21:48 ` Waiman Long
2019-11-14 21:58 ` Waiman Long
2019-11-14 22:09 ` Borislav Petkov
2019-11-15 14:40 ` Waiman Long
2019-11-14 23:03 ` Thomas Gleixner
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=7f898fcb-3f0d-c754-f75d-213519e0b417@redhat.com \
--to=longman@redhat.com \
--cc=bp@alien8.de \
--cc=gregkh@linuxfoundation.org \
--cc=hpa@zytor.com \
--cc=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgross@linux.intel.com \
--cc=mingo@redhat.com \
--cc=pawan.kumar.gupta@linux.intel.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--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®