Skip to content

arm64: errata: Spectre-BHB fixes

James Morse linux-arm-kernel stable 1 version Applied

Status from this message: This is a note to let you know that I've just added the patch titled

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: Fix panic() when Spectre-v2 causes Spectre-BHB to re-allocate KVM vectorsarch/arm64/kernel/cpu_errata.c+11 -51 reply
2/2arm64: errata: Fix KVM Spectre-v2 mitigation selection for Cortex-A57/A72arch/arm64/kernel/cpu_errata.c+7 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [stable:PATCH v4.19.267 0/2] arm64: errata: Spectre-BHB fixes

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(-)
Signature · 1 line
2.30.2