arm: Invalidate BTB on prefetch abort outside of user mapping on Cortex A8, A9, A12... imx_4.9.88_2.0.0_ga
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 1 Feb 2018 11:07:34 +0000 (11:07 +0000)
committerNitin Garg <nitin.garg@nxp.com>
Fri, 25 May 2018 20:05:33 +0000 (15:05 -0500)
commit6507266728a7806d850ce22ec923d90cf4aa4318
treea22ac67953bb2ef7e7ed115bd80a56fa8bd0ea1f
parentd61bf993979829ffe106e1e49867b8973fcd5b0d
arm: Invalidate BTB on prefetch abort outside of user mapping on Cortex A8, A9, A12 and A17

** Not yet queued for inclusion in mainline **

In order to prevent aliasing attacks on the branch predictor,
invalidate the BTB on CPUs that are known to be affected when taking
a prefetch abort on a address that is outside of a user task limit.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm/include/asm/cp15.h
arch/arm/mm/fault.c
arch/arm/mm/fsr-2level.c
arch/arm/mm/fsr-3level.c