OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7aa61f
)
powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used
author
Diana Craciun
<diana.craciun@nxp.com>
Wed, 12 Dec 2018 14:03:08 +0000
(16:03 +0200)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Thu, 20 Dec 2018 11:59:03 +0000
(22:59 +1100)
If the user choses not to use the mitigations, replace
the code sequence with nops.
Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup-common.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/setup-common.c
b/arch/powerpc/kernel/setup-common.c
index
4fe7740
..
ca00fbb
100644
(file)
--- a/
arch/powerpc/kernel/setup-common.c
+++ b/
arch/powerpc/kernel/setup-common.c
@@
-974,6
+974,7
@@
void __init setup_arch(char **cmdline_p)
ppc_md.setup_arch();
setup_barrier_nospec();
+ setup_spectre_v2();
paging_init();