Skip to content

Spectre-v2 detection fixes

Marc Zyngier linux-arm-kernel lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2arm64: Advertise mitigation of Spectre-v2, or lack thereofarch/arm64/kernel/cpu_errata.c+52 -591 reply
2/2arm64: Use firmware to detect CPUs that are not affected by Spectre-v2arch/arm64/kernel/cpu_errata.c+21 -90 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Spectre-v2 detection fixes

These two patches, now built on top of Jeremy's sysfs series, tweak the way we detect the Spectre-v2 vulnerability by switching from a blacklist to a whitelist, making sure we correctly detect unmitigated systems.

We further improve things by relying on firmware to tell us about CPUs that are part of an affected system, but that are not affected themselves (big-little type).

For convenience, I've pushed out a branch containing both Jeremy's v3 series and these patches at [1].

[1] git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git arm64/spectre-sysfs

Marc Zyngier (2):
arm64: Advertise mitigation of Spectre-v2, or lack thereof
arm64: Use firmware to detect CPUs that are not affected by Spectre-v2

 arch/arm64/kernel/cpu_errata.c | 141 +++++++++++++++++----------------
 1 file changed, 73 insertions(+), 68 deletions(-)
Signature · 1 line
2.20.1