arm: Add BTB invalidation on switch_mm for Cortex-A9, A12 and A17 l4t/l4t-r21 l4t/l4t-r21.7 tegra-l4t-r21.7 tegra-l4t-r21.7.update-01
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 1 Feb 2018 11:07:33 +0000 (11:07 +0000)
committerWinnie Hsu <whsu@nvidia.com>
Sun, 29 Apr 2018 06:31:37 +0000 (23:31 -0700)
commite78bb38b883c42edf81766a1d557aed74458e08f
tree322563e36cd23c70e98ae53fa6f57bbe42097afe
parentdb28d5d9c87a31dd53716ab2bad7a1571212f7e8
arm: Add BTB invalidation on switch_mm for Cortex-A9, A12 and A17

** Not yet queued for inclusion in mainline **

In order to avoid aliasing attacks against the branch predictor,
some implementations require to invalidate the BTB when switching
from one user context to another.

For this, we reuse the existing implementation for Cortex-A8, and
apply it to A9, A12 and A17.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Change-Id: Ibbd99465a5dcf5eda6a29dd23a55f9b21b280e65
Reviewed-on: https://git-master.nvidia.com/r/1704129
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
arch/arm/mm/Kconfig
arch/arm/mm/proc-v7-3level.S
arch/arm/mm/proc-v7.S