Skip to content

arm64: errata: Speculative SSBS workaround

Mark Rutland stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14arm64: cpufeature: Force HWCAP to be based on the sysreg visible to user-spacearch/arm64/kernel/cpufeature.c+29 -70 replies
2/14arm64: Add Neoverse-V2 partarch/arm64/include/asm/cputype.h+2 -00 replies
3/14arm64: barrier: Restore spec_bar() macroarch/arm64/include/asm/barrier.h+4 -00 replies
4/14arm64: cputype: Add Cortex-X4 definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
5/14arm64: cputype: Add Neoverse-V3 definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
6/14arm64: errata: Add workaround for Arm errata 3194386 and 3312417Documentation/arm64/silicon-errata.rst arch/arm64/Kconfig arch/arm64/kernel/cpu_errata.c +3 more+89 -00 replies
7/14arm64: cputype: Add Cortex-X3 definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
8/14arm64: cputype: Add Cortex-A720 definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
9/14arm64: cputype: Add Cortex-X925 definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
10/14arm64: errata: Unify speculative SSBS errata logicDocumentation/arm64/silicon-errata.rst arch/arm64/Kconfig arch/arm64/kernel/cpu_errata.c +1 more+8 -320 replies
11/14arm64: errata: Expand speculative SSBS workaroundDocumentation/arm64/silicon-errata.rst arch/arm64/Kconfig arch/arm64/kernel/cpu_errata.c+30 -20 replies
12/14arm64: cputype: Add Cortex-X1C definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
13/14arm64: cputype: Add Cortex-A725 definitionsarch/arm64/include/asm/cputype.h+2 -00 replies
14/14arm64: errata: Expand speculative SSBS workaround (again)Documentation/arm64/silicon-errata.rst arch/arm64/Kconfig arch/arm64/kernel/cpu_errata.c+44 -70 replies

Reviews trailers per patch

5 of 14 patches have a Reviewed-by or Acked-by.

PatchSuzuki K PouloseJames ClarkAnshuman KhandualWill Deacon
1/14R-b
2/14R-b
3/14
4/14
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14R-b
13/14R-b
14/14R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 5.15.y 00/14] arm64: errata: Speculative SSBS workaround

Hi,

This series is a v5.15-only backport (based on v5.15.164) of the upstream workaround for SSBS errata on Arm Ltd CPUs, as affected parts are likely to be used with stable kernels. This does not apply to earlier stable trees, which will receive a separate backport.

The errata mean that an MSR to the SSBS special-purpose register does not affect subsequent speculative instructions, permitting speculative store bypassing for a window of time.

The upstream support was original posted as:

* https://lore.kernel.org/linux-arm-kernel/[email protected]/
"arm64: errata: Add workaround for Arm errata 3194386 and 3312417" Present in v6.10

* https://lore.kernel.org/linux-arm-kernel/[email protected]/
"arm64: errata: Expand speculative SSBS workaround"
Present in v6.11-rc1

* https://lore.kernel.org/linux-arm-kernel/[email protected]/
"arm64: errata: Expand speculative SSBS workaround (again)"
Present in v6.11-rc2

This backport applies the patches which are not present in v5.15.y, and as prerequisites backports HWCAP detection based on user-visible id register values, the addition of Neoverse-V2 MIDR values, and the restoration of the spec_bar() macro.

I have tested the backport (when applied to v5.15.164), ensuring that the detection logic works and that the HWCAP and string in /proc/cpuinfo are both hidden when the relevant errata are detected.

Mark.

Besar Wicaksono (1):
arm64: Add Neoverse-V2 part

James Morse (1):
arm64: cpufeature: Force HWCAP to be based on the sysreg visible to
user-space

Mark Rutland (12):
arm64: barrier: Restore spec_bar() macro
arm64: cputype: Add Cortex-X4 definitions
arm64: cputype: Add Neoverse-V3 definitions
arm64: errata: Add workaround for Arm errata 3194386 and 3312417
arm64: cputype: Add Cortex-X3 definitions
arm64: cputype: Add Cortex-A720 definitions
arm64: cputype: Add Cortex-X925 definitions
arm64: errata: Unify speculative SSBS errata logic
arm64: errata: Expand speculative SSBS workaround
arm64: cputype: Add Cortex-X1C definitions
arm64: cputype: Add Cortex-A725 definitions
arm64: errata: Expand speculative SSBS workaround (again)

 Documentation/arm64/silicon-errata.rst | 36 +++++++++++++++++++
 arch/arm64/Kconfig                     | 38 ++++++++++++++++++++
 arch/arm64/include/asm/barrier.h       |  4 +++
 arch/arm64/include/asm/cputype.h       | 16 +++++++++
 arch/arm64/kernel/cpu_errata.c         | 31 +++++++++++++++++
 arch/arm64/kernel/cpufeature.c         | 48 ++++++++++++++++++++++----
 arch/arm64/kernel/proton-pack.c        | 12 +++++++
 arch/arm64/tools/cpucaps               |  1 +
 8 files changed, 179 insertions(+), 7 deletions(-)
Signature · 1 line
2.30.2