aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/security.c
diff options
context:
space:
mode:
authorGravatar Diana Craciun <diana.craciun@nxp.com> 2018-12-12 16:03:02 +0200
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2018-12-20 22:59:03 +1100
commit7d8bad99ba5a22892f0cad6881289fdc3875a930 (patch)
treeb3661b72f605cbbd2bdd3edad6a6bf879327c0a3 /arch/powerpc/kernel/security.c
parentpowerpc/fsl: Add macro to flush the branch predictor (diff)
downloadlinux-7d8bad99ba5a22892f0cad6881289fdc3875a930.tar.gz
linux-7d8bad99ba5a22892f0cad6881289fdc3875a930.tar.bz2
linux-7d8bad99ba5a22892f0cad6881289fdc3875a930.zip
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>
Diffstat (limited to 'arch/powerpc/kernel/security.c')
-rw-r--r--arch/powerpc/kernel/security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/security.c b/arch/powerpc/kernel/security.c
index 9703dce36307..9e5f949a7ed8 100644
--- a/arch/powerpc/kernel/security.c
+++ b/arch/powerpc/kernel/security.c
@@ -23,7 +23,7 @@ enum count_cache_flush_type {
COUNT_CACHE_FLUSH_SW = 0x2,
COUNT_CACHE_FLUSH_HW = 0x4,
};
-static enum count_cache_flush_type count_cache_flush_type;
+static enum count_cache_flush_type count_cache_flush_type = COUNT_CACHE_FLUSH_NONE;
bool barrier_nospec_enabled;
static bool no_nospec;