ARM: rmobile: gen2: Enable ACTLR[0] (Enable invalidates of BTB) to facilitate CVE_201...
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 30 Jun 2018 06:07:41 +0000 (08:07 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 24 Jul 2018 22:14:19 +0000 (00:14 +0200)
commita6759e3dfca217ba8cc518edcd4972671a97109a
tree0bbe6f7ee422ea36951ba197fd602572154e9c82
parent323a73adc9a1bf2de43fe03bdd9c3038ce7c2784
ARM: rmobile: gen2: Enable ACTLR[0] (Enable invalidates of BTB) to facilitate CVE_2017-5715 WA in OS

Enable CVE_2017_5715 mitigation on CPU0 on R-Car H2, M2W, M2N, V2H,
which all contain Cortex-A15 cores. R-Car E2 contains only Cortex-A7
cores and is not affected. Without this enabled, Linux kernel reports:

  CPU0: Spectre v2: firmware did not set auxiliary control register IBE bit, system vulnerable

With this enabled, Linux kernel reports:

  CPU0: Spectre v2: using ICIALLU workaround

NOTE: This by itself does not enable the workaround for other CPUs
      than CPU0 and may require additional kernel patches for the
      other CPUs in SMP configurations.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/arm/mach-rmobile/Kconfig.32