linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86/microcode/AMD: Document which patches are not released for late loading
@ 2023-04-15 14:28 Borislav Petkov
  2023-04-17 13:46 ` [tip: x86/microcode] " tip-bot2 for Borislav Petkov (AMD)
  2023-04-21 22:33 ` [PATCH] " Thomas Gleixner
  0 siblings, 2 replies; 3+ messages in thread
From: Borislav Petkov @ 2023-04-15 14:28 UTC (permalink / raw)
  To: X86 ML; +Cc: LKML, Peter Zijlstra

From: "Borislav Petkov (AMD)" <bp@alien8.de>

PeterZ wanted this spelled out explicitly. Add it to the documentation
so that everyone's on the same page wrt to which microcode patches are
not allowed to be late loaded.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
---
 Documentation/x86/microcode.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/x86/microcode.rst b/Documentation/x86/microcode.rst
index 15b52e2b181d..d5ef9184030c 100644
--- a/Documentation/x86/microcode.rst
+++ b/Documentation/x86/microcode.rst
@@ -218,6 +218,10 @@ a fault happens, the whole core will see it either before the microcode
 patch has been applied or after. In either case, T0 and T1 will have the
 same microcode revision and nothing intermediate.
 
+In addition, microcode patches which modify software-visible features
+like CPUID bits, MSRs, chicken bits, etc are not released for late
+loading.
+
 Builtin microcode
 =================
 
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [tip: x86/microcode] x86/microcode/AMD: Document which patches are not released for late loading
  2023-04-15 14:28 [PATCH] x86/microcode/AMD: Document which patches are not released for late loading Borislav Petkov
@ 2023-04-17 13:46 ` tip-bot2 for Borislav Petkov (AMD)
  2023-04-21 22:33 ` [PATCH] " Thomas Gleixner
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot2 for Borislav Petkov (AMD) @ 2023-04-17 13:46 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: Peter Zijlstra (Intel), Borislav Petkov (AMD), x86, linux-kernel

The following commit has been merged into the x86/microcode branch of tip:

Commit-ID:     07cc5639f14dcc3763a926dbe7cc38ac2694de0c
Gitweb:        https://git.kernel.org/tip/07cc5639f14dcc3763a926dbe7cc38ac2694de0c
Author:        Borislav Petkov (AMD) <bp@alien8.de>
AuthorDate:    Sat, 15 Apr 2023 16:23:29 +02:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Mon, 17 Apr 2023 15:38:33 +02:00

x86/microcode/AMD: Document which patches are not released for late loading

PeterZ wanted this spelled out explicitly. Add it to the documentation
so that everyone's on the same page wrt to which microcode patches are
not allowed to be late loaded.

Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230415142821.24725-1-bp@alien8.de
---
 Documentation/x86/microcode.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/x86/microcode.rst b/Documentation/x86/microcode.rst
index 15b52e2..d5ef918 100644
--- a/Documentation/x86/microcode.rst
+++ b/Documentation/x86/microcode.rst
@@ -218,6 +218,10 @@ a fault happens, the whole core will see it either before the microcode
 patch has been applied or after. In either case, T0 and T1 will have the
 same microcode revision and nothing intermediate.
 
+In addition, microcode patches which modify software-visible features
+like CPUID bits, MSRs, chicken bits, etc are not released for late
+loading.
+
 Builtin microcode
 =================
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/microcode/AMD: Document which patches are not released for late loading
  2023-04-15 14:28 [PATCH] x86/microcode/AMD: Document which patches are not released for late loading Borislav Petkov
  2023-04-17 13:46 ` [tip: x86/microcode] " tip-bot2 for Borislav Petkov (AMD)
@ 2023-04-21 22:33 ` Thomas Gleixner
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2023-04-21 22:33 UTC (permalink / raw)
  To: Borislav Petkov, X86 ML; +Cc: LKML, Peter Zijlstra

On Sat, Apr 15 2023 at 16:28, Borislav Petkov wrote:
> From: "Borislav Petkov (AMD)" <bp@alien8.de>
>
> PeterZ wanted this spelled out explicitly. Add it to the documentation
> so that everyone's on the same page wrt to which microcode patches are
> not allowed to be late loaded.
>
> Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
> ---
>  Documentation/x86/microcode.rst | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/Documentation/x86/microcode.rst b/Documentation/x86/microcode.rst
> index 15b52e2b181d..d5ef9184030c 100644
> --- a/Documentation/x86/microcode.rst
> +++ b/Documentation/x86/microcode.rst
> @@ -218,6 +218,10 @@ a fault happens, the whole core will see it either before the microcode
>  patch has been applied or after. In either case, T0 and T1 will have the
>  same microcode revision and nothing intermediate.
>  
> +In addition, microcode patches which modify software-visible features
> +like CPUID bits, MSRs, chicken bits, etc are not released for late
> +loading.

No. Why the heck is AMD any different from Intel vs. late loading?

It does not matter at all that the AMD microcode machinery does not have
the concurrency issues like the Intel one, which just need some extra
care.

The software visible feature change issue is exactly the same and the
problem of late loading is all about that and not about the concurrency.

So Intel got its act together and added a minimal version field into the
microcode header. AMD should do exactly the same and not assume that
late loading is safe by pretending that updates which modify software
visible features are not released.

That's just not true. AMD releases microcode updates with software
visible changes as does Intel, no?

How did all the hardware vulnerability updates, which changed CPUID,
MSRs and chicken bits, get distributed? By not releasing them?

This patch along with the other which claims that AMD is safe is just
wishful thinking material.

Boris, please remove them from the for 6.4 queue.

Thanks,

        tglx

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-21 22:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-15 14:28 [PATCH] x86/microcode/AMD: Document which patches are not released for late loading Borislav Petkov
2023-04-17 13:46 ` [tip: x86/microcode] " tip-bot2 for Borislav Petkov (AMD)
2023-04-21 22:33 ` [PATCH] " Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).