2018-02-02 20:43:09

by Darren Kenny

[permalink] [raw]
Subject: [PATCH] Fix typo IBRS_ATT, which should be IBRS_ALL

Fixes a typo in commit 117cc7a908c83697b0b737d15ae1eb5943afe35b
("x86/retpoline: Fill return stack buffer on vmexit")

Signed-off-by: Darren Kenny <[email protected]>
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
---
arch/x86/include/asm/nospec-branch.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/nospec-branch.h b/arch/x86/include/asm/nospec-branch.h
index 4ad4108..5b778d2 100644
--- a/arch/x86/include/asm/nospec-branch.h
+++ b/arch/x86/include/asm/nospec-branch.h
@@ -201,7 +201,7 @@ extern char __indirect_thunk_end[];
* On VMEXIT we must ensure that no RSB predictions learned in the guest
* can be followed in the host, by overwriting the RSB completely. Both
* retpoline and IBRS mitigations for Spectre v2 need this; only on future
- * CPUs with IBRS_ATT *might* it be avoided.
+ * CPUs with IBRS_ALL *might* it be avoided.
*/
static inline void vmexit_fill_RSB(void)
{
--
2.9.5



Subject: [tip:x86/pti] x86/speculation: Fix typo IBRS_ATT, which should be IBRS_ALL

Commit-ID: af189c95a371b59f493dbe0f50c0a09724868881
Gitweb: https://git.kernel.org/tip/af189c95a371b59f493dbe0f50c0a09724868881
Author: Darren Kenny <[email protected]>
AuthorDate: Fri, 2 Feb 2018 19:12:20 +0000
Committer: Thomas Gleixner <[email protected]>
CommitDate: Fri, 2 Feb 2018 23:13:57 +0100

x86/speculation: Fix typo IBRS_ATT, which should be IBRS_ALL

Fixes: 117cc7a908c83 ("x86/retpoline: Fill return stack buffer on vmexit")
Signed-off-by: Darren Kenny <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Arjan van de Ven <[email protected]>
Cc: David Woodhouse <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]

---
arch/x86/include/asm/nospec-branch.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/nospec-branch.h b/arch/x86/include/asm/nospec-branch.h
index d15d471..4d57894 100644
--- a/arch/x86/include/asm/nospec-branch.h
+++ b/arch/x86/include/asm/nospec-branch.h
@@ -150,7 +150,7 @@ extern char __indirect_thunk_end[];
* On VMEXIT we must ensure that no RSB predictions learned in the guest
* can be followed in the host, by overwriting the RSB completely. Both
* retpoline and IBRS mitigations for Spectre v2 need this; only on future
- * CPUs with IBRS_ATT *might* it be avoided.
+ * CPUs with IBRS_ALL *might* it be avoided.
*/
static inline void vmexit_fill_RSB(void)
{

2018-02-03 01:25:47

by David Woodhouse

[permalink] [raw]
Subject: Re: [PATCH] Fix typo IBRS_ATT, which should be IBRS_ALL

On Fri, 2018-02-02 at 19:12 +0000, Darren Kenny wrote:
> Fixes a typo in commit 117cc7a908c83697b0b737d15ae1eb5943afe35b
> ("x86/retpoline: Fill return stack buffer on vmexit")
>
> Signed-off-by: Darren Kenny <[email protected]>
> Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>

Not strictly a typo; that was the original name for it. "IBRS all the
time". But yes, it should be IBRS_ALL now.

Acked-by: David Woodhouse <[email protected]>


Attachments:
smime.p7s (5.09 kB)

2018-02-05 11:16:33

by David Woodhouse

[permalink] [raw]
Subject: Re: [PATCH] Fix typo IBRS_ATT, which should be IBRS_ALL

On Mon, 2018-02-05 at 11:00 +0000, Darren Kenny wrote:
> On Fri, Feb 02, 2018 at 11:42:12PM +0000, David Woodhouse wrote:
> >
> > On Fri, 2018-02-02 at 19:12 +0000, Darren Kenny wrote:
> > >
> > > Fixes a typo in commit 117cc7a908c83697b0b737d15ae1eb5943afe35b
> > > ("x86/retpoline: Fill return stack buffer on vmexit")
> > >
> > > Signed-off-by: Darren Kenny <[email protected]>
> > > Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
> > Not strictly a typo; that was the original name for it. "IBRS all
> > the
> > time". But yes, it should be IBRS_ALL now.
> >
> > Acked-by: David Woodhouse <[email protected]>
> Thanks David.
>
> I'll send out another patch with this snippet of information in it
> too, and including your Acked-by.

It's in Linus's tree already.


Attachments:
smime.p7s (5.09 kB)

2018-02-05 11:17:36

by Darren Kenny

[permalink] [raw]
Subject: Re: [PATCH] Fix typo IBRS_ATT, which should be IBRS_ALL

On Fri, Feb 02, 2018 at 11:42:12PM +0000, David Woodhouse wrote:
>On Fri, 2018-02-02 at 19:12 +0000, Darren Kenny wrote:
>> Fixes a typo in commit 117cc7a908c83697b0b737d15ae1eb5943afe35b
>> ("x86/retpoline: Fill return stack buffer on vmexit")
>>
>> Signed-off-by: Darren Kenny <[email protected]>
>> Reviewed-by: Konrad Rzeszutek Wilk <[email protected]>
>
>Not strictly a typo; that was the original name for it. "IBRS all the
>time". But yes, it should be IBRS_ALL now.
>
>Acked-by: David Woodhouse <[email protected]>

Thanks David.

I'll send out another patch with this snippet of information in it
too, and including your Acked-by.

(The subject like will be slightly different)

Thanks,

Darren.