All of lore.kernel.org
 help / color / mirror / Atom feed
* [stable:PATCH v4.19.267 0/2] arm64: errata: Spectre-BHB fixes
@ 2022-11-30 18:29 ` James Morse
  0 siblings, 0 replies; 8+ messages in thread
From: James Morse @ 2022-11-30 18:29 UTC (permalink / raw)
  To: stable, linux-arm-kernel; +Cc: Catalin Marinas, James Morse

Hello!

The first patch fixes an issue reported by Sami, where linux panic()s
when bringing secondary CPUs online. The problem was the Spectre
workarounds trying to allocate a new slot for mitigating KVM when
those pages are no longer writeable.

While debugging that issue, I spotted the Spectre-BHB KVM mitigation was
over-riding the Spectre-v2 KVM Mitigation. It's supposed to happen the
other way round.

The backports aren't the same as mainline because the spectre mitigation code
was totally rewritten for v5.10, and prior to that the KVM infrastructure
is very different.


Thanks,

James Morse (2):
  arm64: Fix panic() when Spectre-v2 causes Spectre-BHB to re-allocate
    KVM vectors
  arm64: errata: Fix KVM Spectre-v2 mitigation selection for
    Cortex-A57/A72

 arch/arm64/kernel/cpu_errata.c | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2022-12-03 13:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 18:29 [stable:PATCH v4.19.267 0/2] arm64: errata: Spectre-BHB fixes James Morse
2022-11-30 18:29 ` James Morse
2022-11-30 18:29 ` [stable:PATCH v4.19.267 1/2] arm64: Fix panic() when Spectre-v2 causes Spectre-BHB to re-allocate KVM vectors James Morse
2022-11-30 18:29   ` James Morse
2022-12-03 13:55   ` Patch "arm64: Fix panic() when Spectre-v2 causes Spectre-BHB to re-allocate KVM vectors" has been added to the 4.19-stable tree gregkh
2022-11-30 18:29 ` [stable:PATCH v4.19.267 2/2] arm64: errata: Fix KVM Spectre-v2 mitigation selection for Cortex-A57/A72 James Morse
2022-11-30 18:29   ` James Morse
2022-12-03 13:55   ` Patch "arm64: errata: Fix KVM Spectre-v2 mitigation selection for Cortex-A57/A72" has been added to the 4.19-stable tree gregkh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.