aboutsummaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2018-09-30 17:22:52 -0400
committerDavid A. Long <dave.long@linaro.org>2018-10-30 23:23:38 -0400
commit4c2280b10e50c7964bd72c893994b9ad92fe01d7 (patch)
tree32de1a73ec75b221927644b492db2ce30e45eac6 /firmware
parent3634d7e481ba2f800b3026b9505c9607ecafbb71 (diff)
ARM: spectre-v2: harden branch predictor on context switches
Commit 06c23f5ffe7ad45b908d0fff604dae08a7e334b9 upstream. Required manual merge of arch/arm/mm/proc-v7.S. Harden the branch predictor against Spectre v2 attacks on context switches for ARMv7 and later CPUs. We do this by: Cortex A9, A12, A17, A73, A75: invalidating the BTB. Cortex A15, Brahma B15: invalidating the instruction cache. Cortex A57 and Cortex A72 are not addressed in this patch. Cortex R7 and Cortex R8 are also not addressed as we do not enforce memory protection on these cores. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Boot-tested-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Tony Lindgren <tony@atomide.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: David A. Long <dave.long@linaro.org>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions