Bug 228955

Summary: Speculative fixes for speculative execution (specifically ARM for latest round of issues)
Product: Base System Reporter: Rodney W. Grimes <rgrimes>
Component: armAssignee: Andrew Turner <Andrew>
Status: Closed FIXED    
Severity: Affects Many People CC: Andrew, emaste, op, rgrimes
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
URL: https://reviews.freebsd.org/D15819
Bug Depends on:    
Bug Blocks: 228911    

Description Rodney W. Grimes freebsd_committer freebsd_triage 2018-06-12 16:02:32 UTC
Speculative fixes for speculative execution (specifically ARM for latest round of issues)
Comment 1 Andrew Turner freebsd_committer freebsd_triage 2018-06-12 17:35:21 UTC
Already working this so take
Comment 2 Rodney W. Grimes freebsd_committer freebsd_triage 2018-06-12 17:37:45 UTC
Put emaste back on this bug.

When "taking" an assigned bug one should put the prior assignee in the CC: list.
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-07-31 12:54:21 UTC
A commit references this bug:

Author: andrew
Date: Tue Jul 31 12:53:28 UTC 2018
New revision: 336967
URL: https://svnweb.freebsd.org/changeset/base/336967

Log:
  Implement the SSBD (CVE-2018-3639) workaround on arm64

  This calls into the Arm Trusted Firmware to enable and disable the
  workaround for the Speculative Store Bypass Disable (SSBD) issue, also
  known as Spectre Variant 4.

  As this may have a large performance overhead, and how exploitable SSBD is
  is unknown we follow the Linux lead of allowing the administrator to select
  between always on, always off, or only enabled in the kernel, with the
  latter being the default.

  PR:		228955
  Sponsored by:	DARPA, AFRL
  Differential Revision:	https://reviews.freebsd.org/D15819

Changes:
  head/sys/arm64/arm64/cpu_errata.c
  head/sys/arm64/arm64/exception.S
  head/sys/arm64/arm64/genassym.c
  head/sys/arm64/include/pcpu.h
  head/sys/dev/psci/smccc.c
  head/sys/dev/psci/smccc.h