Commit 6b4c1360 authored by Michael Ellerman's avatar Michael Ellerman Committed by Jonathan Corbet

Documentation: Add powerpc options for spec_store_bypass_disable

Document the support for spec_store_bypass_disable that was added for
powerpc in commit a048a07d ("powerpc/64s: Add support for a store
forwarding barrier at kernel entry/exit").
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 9ac8c3bd
...@@ -4060,6 +4060,8 @@ ...@@ -4060,6 +4060,8 @@
This parameter controls whether the Speculative Store This parameter controls whether the Speculative Store
Bypass optimization is used. Bypass optimization is used.
On x86 the options are:
on - Unconditionally disable Speculative Store Bypass on - Unconditionally disable Speculative Store Bypass
off - Unconditionally enable Speculative Store Bypass off - Unconditionally enable Speculative Store Bypass
auto - Kernel detects whether the CPU model contains an auto - Kernel detects whether the CPU model contains an
...@@ -4075,12 +4077,20 @@ ...@@ -4075,12 +4077,20 @@
seccomp - Same as "prctl" above, but all seccomp threads seccomp - Same as "prctl" above, but all seccomp threads
will disable SSB unless they explicitly opt out. will disable SSB unless they explicitly opt out.
Not specifying this option is equivalent to
spec_store_bypass_disable=auto.
Default mitigations: Default mitigations:
X86: If CONFIG_SECCOMP=y "seccomp", otherwise "prctl" X86: If CONFIG_SECCOMP=y "seccomp", otherwise "prctl"
On powerpc the options are:
on,auto - On Power8 and Power9 insert a store-forwarding
barrier on kernel entry and exit. On Power7
perform a software flush on kernel entry and
exit.
off - No action.
Not specifying this option is equivalent to
spec_store_bypass_disable=auto.
spia_io_base= [HW,MTD] spia_io_base= [HW,MTD]
spia_fio_base= spia_fio_base=
spia_pedr= spia_pedr=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment