Thread (12 messages) 12 messages, 3 authors, 2018-09-03
STALE2834d REVIEWED: 2 (2M)

[PATCH 2/7] arm64: cpufeature: Detect SSBS and advertise to userspace

From: Suzuki.Poulose@arm.com (Suzuki K Poulose)
Date: 2018-08-31 12:39:34

On 30/08/18 17:16, Will Deacon wrote:
Armv8.5 introduces a new PSTATE bit known as Speculative Store Bypass
Safe (SSBS) which can be used as a mitigation against Spectre variant 4.

Additionally, a CPU may provide instructions to manipulate PSTATE.SSBS
directly, so that userspace can toggle the SSBS control without trapping
to the kernel.

This patch probes for the existence of SSBS and advertise the new instructions
to userspace if they exist.

Signed-off-by: Will Deacon <redacted>
---
  arch/arm64/include/asm/cpucaps.h    |  3 ++-
  arch/arm64/include/asm/sysreg.h     | 16 ++++++++++++----
  arch/arm64/include/uapi/asm/hwcap.h |  1 +
  arch/arm64/kernel/cpufeature.c      | 19 +++++++++++++++++--
  arch/arm64/kernel/cpuinfo.c         |  1 +
  5 files changed, 33 insertions(+), 7 deletions(-)
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help