OSDN Git Service

powerpc/fsl: Fix spectre_v2 mitigations reporting
authorDiana Craciun <diana.craciun@nxp.com>
Wed, 12 Dec 2018 14:03:02 +0000 (16:03 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Dec 2018 11:59:03 +0000 (22:59 +1100)
commit7d8bad99ba5a22892f0cad6881289fdc3875a930
treeb3661b72f605cbbd2bdd3edad6a6bf879327c0a3
parent1cbf8990d79ff69da8ad09e8a3df014e1494462b
powerpc/fsl: Fix spectre_v2 mitigations reporting

Currently for CONFIG_PPC_FSL_BOOK3E the spectre_v2 file is incorrect:

  $ cat /sys/devices/system/cpu/vulnerabilities/spectre_v2
  "Mitigation: Software count cache flush"

Which is wrong. Fix it to report vulnerable for now.

Fixes: ee13cb249fab ("powerpc/64s: Add support for software count cache flush")
Cc: stable@vger.kernel.org # v4.19+
Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/security.c