OSDN Git Service

powerpc/fsl: Fix spectre_v2 mitigations reporting
authorDiana Craciun <diana.craciun@nxp.com>
Sun, 21 Apr 2019 14:20:32 +0000 (00:20 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:44:50 +0000 (19:44 +0200)
commit4cbfad23be505ac25a32c4e93519353b8d75b5c3
tree1c7dbbb8b5bb1fedccb3e2404f6dfc201120acd5
parentb76f9074d0f307a499199b0c8de89df09022ff95
powerpc/fsl: Fix spectre_v2 mitigations reporting

commit 7d8bad99ba5a22892f0cad6881289fdc3875a930 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/security.c