summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel
diff options
context:
space:
mode:
authorMauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>2018-05-26 14:27:46 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-05-30 07:51:53 +0200
commitf092a180128e00e520ba721b111b184c09fc3536 (patch)
tree02f7a538282850d161b5d069b6caf3582479e28e /arch/powerpc/kernel
parenta28ff26d5e4426c9d5587e981e020818adde93fb (diff)
downloadlinux-stable-f092a180128e00e520ba721b111b184c09fc3536.tar.gz
linux-stable-f092a180128e00e520ba721b111b184c09fc3536.tar.bz2
linux-stable-f092a180128e00e520ba721b111b184c09fc3536.zip
powerpc: Move default security feature flags
commit e7347a86830f38dc3e40c8f7e28c04412b12a2e7 upstream. This moves the definition of the default security feature flags (i.e., enabled by default) closer to the security feature flags. This can be used to restore current flags to the default flags. Signed-off-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc/kernel')
-rw-r--r--arch/powerpc/kernel/security.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/security.c b/arch/powerpc/kernel/security.c
index 2cee3dcd231b..bab5a27ea805 100644
--- a/arch/powerpc/kernel/security.c
+++ b/arch/powerpc/kernel/security.c
@@ -11,12 +11,7 @@
#include <asm/security_features.h>
-unsigned long powerpc_security_features __read_mostly = \
- SEC_FTR_L1D_FLUSH_HV | \
- SEC_FTR_L1D_FLUSH_PR | \
- SEC_FTR_BNDS_CHK_SPEC_BAR | \
- SEC_FTR_FAVOUR_SECURITY;
-
+unsigned long powerpc_security_features __read_mostly = SEC_FTR_DEFAULT;
ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf)
{