Skip to content
Snippets Groups Projects
  1. Jul 02, 2018
  2. Jun 29, 2018
    • Heinrich Schuchardt's avatar
      lib: div64: fix typeo in include/div64.h · 2121bbe4
      Heinrich Schuchardt authored and Tom Rini's avatar Tom Rini committed
      
      %s/reminder/remainder/
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      2121bbe4
    • Nishanth Menon's avatar
      ARM: mach-omap2: omap3/am335x: Enable ACR::IBE on Cortex-A8 SoCs for CVE-2017-5715 · 94c6a89a
      Nishanth Menon authored and Tom Rini's avatar Tom Rini committed
      
      Enable CVE-2017-5715 option to set the IBE bit. This enables kernel
      workarounds necessary for the said CVE.
      
      With this enabled, Linux reports:
      CPU0: Spectre v2: using BPIALL workaround
      
      This workaround may need to be re-applied in OS environment around low
      power transition resume states where context of ACR would be lost (off-mode
      etc).
      
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      94c6a89a
    • Nishanth Menon's avatar
      ARM: mach-omap2: omap5/dra7: Enable ACTLR[0] (Enable invalidates of BTB) to... · dbb7caf1
      Nishanth Menon authored and Tom Rini's avatar Tom Rini committed
      ARM: mach-omap2: omap5/dra7: Enable ACTLR[0] (Enable invalidates of BTB) to facilitate CVE_2017-5715 WA in OS
      
      Enable CVE_2017_5715 and since we have our own v7_arch_cp15_set_acr
      function to setup the bits, we are able to override the settings.
      
      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 CPU1 (on
      OMAP5 and DRA72/AM572 SoCs) and may require additional kernel patches.
      
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      dbb7caf1
    • Nishanth Menon's avatar
      ARM: Introduce ability to enable invalidate of BTB with ICIALLU on Cortex-A15 for CVE-2017-5715 · c2ca3fdf
      Nishanth Menon authored and Tom Rini's avatar Tom Rini committed
      As recommended by Arm in [1], ACTLR[0] (Enable invalidates of BTB)
      needs to be set[2] for BTB to be invalidated on ICIALLU. This needs to
      be done unconditionally for Cortex-A15 processors. Provide a config
      option for platforms to enable this option based on impact analysis
      for products.
      
      NOTE: This patch in itself is NOT the final solution, this requires:
      a) Implementation of v7_arch_cp15_set_acr on SoCs which may not
         provide direct access to ACR register.
      b) Operating Systems such as Linux to provide adequate workaround in the
         right locations.
      c) This workaround applies to only the boot processor. It is important
         to apply workaround as necessary (context-save-restore) around low
         power context loss OR additional processors as necessary in either
         firmware support OR elsewhere in OS.
      
      [1] https://developer.arm.com/support/security-update
      [2] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0438c/BABGHIBG.html
      
      
      
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Andre Przywara <Andre.Przywara@arm.com>
      Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
      
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Tested-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      c2ca3fdf
    • Nishanth Menon's avatar
      ARM: Introduce ability to enable ACR::IBE on Cortex-A8 for CVE-2017-5715 · 7b37a9c7
      Nishanth Menon authored and Tom Rini's avatar Tom Rini committed
      As recommended by Arm in [1], IBE[2] has to be enabled unconditionally
      for BPIALL to be functional on Cortex-A8 processors. Provide a config
      option for platforms to enable this option based on impact analysis
      for products.
      
      NOTE: This patch in itself is NOT the final solution, this requires:
      a) Implementation of v7_arch_cp15_set_acr on SoCs which may not
         provide direct access to ACR register.
      b) Operating Systems such as Linux to provide adequate workaround in the right
         locations.
      c) This workaround applies to only the boot processor. It is important
         to apply workaround as necessary (context-save-restore) around low
         power context loss OR additional processors as necessary in either
         firmware support OR elsewhere in OS.
      
      [1] https://developer.arm.com/support/security-update
      [2] http://infocenter.arm.com/help/topic/com.arm.doc.ddi0344k/Bgbffjhh.html
      
      
      
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Russell King <linux@arm.linux.org.uk>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Florian Fainelli <f.fainelli@gmail.com>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Christoffer Dall <christoffer.dall@linaro.org>
      Cc: Andre Przywara <Andre.Przywara@arm.com>
      Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
      
      Signed-off-by: default avatarNishanth Menon <nm@ti.com>
      Tested-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      7b37a9c7
  3. Jun 28, 2018
  4. Jun 27, 2018
  5. Jun 25, 2018
Loading