Skip to contentSkip to conversation

gcc: mitigate the Straight-line Speculation attack

PATCH New Ross Burton 1 participant 1 message Jul 22, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gcc: mitigate the Straight-line Speculation attack

From: Ross Burton <[email protected]>

Straight-line Speculation is a SPECTRE-like attack on Armv8-A, further details can be found in the white paper here:

https://developer.arm.com/support/arm-security-updates/speculative-processor-vulnerability/downloads/straight-line-speculation

Backport the GCC patches to mitigate the attack.

CVE: CVE-2020-13844

---
 meta/recipes-devtools/gcc/gcc-10.1.inc        |   3 +
 ...ight-Line-Speculation-SLS-mitigation.patch | 202 ++++++
 ...e-SLS-mitigation-for-RET-and-BR-inst.patch | 607 ++++++++++++++++
 ...h64-Mitigate-SLS-for-BLR-instruction.patch | 658 ++++++++++++++++++
 4 files changed, 1470 insertions(+)
 create mode 100644 meta/recipes-devtools/gcc/gcc-10.1/0001-aarch64-New-Straight-Line-Speculation-SLS-mitigation.patch
 create mode 100644 meta/recipes-devtools/gcc/gcc-10.1/0002-aarch64-Introduce-SLS-mitigation-for-RET-and-BR-inst.patch
 create mode 100644 meta/recipes-devtools/gcc/gcc-10.1/0003-aarch64-Mitigate-SLS-for-BLR-instruction.patch
meta/recipes-devtools/gcc/gcc-10.1.inc +3 -0
index a3de91a2c6..7c1201a2e3 100644
@@ -66,6 +66,9 @@ SRC_URI = "\
            file://0036-Enable-CET-in-cross-compiler-if-possible.patch \
            file://0037-mingw32-Enable-operation_not_supported.patch \
            file://0038-libatomic-Do-not-enforce-march-on-aarch64.patch \
+           file://0001-aarch64-New-Straight-Line-Speculation-SLS-mitigation.patch \
+           file://0002-aarch64-Introduce-SLS-mitigation-for-RET-and-BR-inst.patch \
+           file://0003-aarch64-Mitigate-SLS-for-BLR-instruction.patch \
 "
 SRC_URI[sha256sum] = "b6898a23844b656f1b68691c5c012036c2e694ac4b53a8918d4712ad876e7ea2"
 
meta/recipes-devtools/gcc/gcc-10.1/0001-aarch64-New-Straight-Line-Speculation-SLS-mitigation.patch new file +202 -0

202 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-10.1/0002-aarch64-Introduce-SLS-mitigation-for-RET-and-BR-inst.patch new file +607 -0

607 lines not on this page · raw message

meta/recipes-devtools/gcc/gcc-10.1/0003-aarch64-Mitigate-SLS-for-BLR-instruction.patch new file +658 -0

658 lines not on this page · raw message

Signature · 1 line
2.26.2