]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/fsl: Fix spectre_v2 mitigations reporting
authorDiana Craciun <diana.craciun@nxp.com>
Fri, 29 Mar 2019 11:26:10 +0000 (22:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:25:14 +0000 (06:25 +0200)
commit191adcc50e1155331b230d0120100b211ea2c032
treeec99e5a9659b7be3cc57158bc9fed18aa4023114
parentf7a1d9fabc254ec0c8313b925b4735deccaeeb35
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