aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/security.c
diff options
context:
space:
mode:
authorGravatar Michal Suchanek <msuchanek@suse.de> 2018-04-24 14:15:56 +1000
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2018-06-03 20:43:44 +1000
commit815069ca57c142eb71d27439bc27f41a433a67b3 (patch)
tree776b7b8a934e55dd4aaab3e52051b8e8d895dd2d /arch/powerpc/kernel/security.c
parentpowerpc/64s: Add support for ori barrier_nospec patching (diff)
downloadlinux-815069ca57c142eb71d27439bc27f41a433a67b3.tar.gz
linux-815069ca57c142eb71d27439bc27f41a433a67b3.tar.bz2
linux-815069ca57c142eb71d27439bc27f41a433a67b3.zip
powerpc/64s: Patch barrier_nospec in modules
Note that unlike RFI which is patched only in kernel the nospec state reflects settings at the time the module was loaded. Iterating all modules and re-patching every time the settings change is not implemented. Based on lwsync patching. Signed-off-by: Michal Suchanek <msuchanek@suse.de> 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 b963eae0b0a0..39cc9eae8d7f 100644
--- a/arch/powerpc/kernel/security.c
+++ b/arch/powerpc/kernel/security.c
@@ -14,7 +14,7 @@
unsigned long powerpc_security_features __read_mostly = SEC_FTR_DEFAULT;
-static bool barrier_nospec_enabled;
+bool barrier_nospec_enabled;
static void enable_barrier_nospec(bool enable)
{