linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/5] cpu/speculation: Add 'cpu_spec_mitigations=' cmdline options
@ 2019-04-04 16:44 Josh Poimboeuf
  2019-04-04 16:44 ` [PATCH RFC 1/5] " Josh Poimboeuf
                   ` (5 more replies)
  0 siblings, 6 replies; 33+ messages in thread
From: Josh Poimboeuf @ 2019-04-04 16:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: Peter Zijlstra, Heiko Carstens, Paul Mackerras, H . Peter Anvin,
	Ingo Molnar, Andrea Arcangeli, linux-s390, x86, Will Deacon,
	Linus Torvalds, Catalin Marinas, Waiman Long, linux-arch,
	Jon Masters, Jiri Kosina, Borislav Petkov, Andy Lutomirski,
	Thomas Gleixner, linux-arm-kernel, Greg Kroah-Hartman,
	Tyler Hicks, Martin Schwidefsky, linuxppc-dev

Keeping track of the number of mitigations for all the CPU speculation
bugs has become overwhelming for many users.  It's getting more and more
complicated to decide which mitigations are needed for a given
architecture.  Complicating matters is the fact that each arch tends to
it own custom way to mitigate the same vulnerability.

Most users fall into a few basic categories:

a) they want all CPU speculation mitigations off;

b) they want all reasonable mitigations on, with SMT enabled even if
   it's vulnerable; or

c) they want all reasonable mitigations on, with SMT disabled if
   vulnerable.

Define a set of curated, arch-independent options, each of which is an
aggregation of existing options:

- cpu_spec_mitigations=off: Disable all mitigations.

- cpu_spec_mitigations=auto: [default] Enable all the default
  mitigations, but leave SMT enabled, even if it's vulnerable.

- cpu_spec_mitigations=auto,nosmt: Enable all the default mitigations,
  disabling SMT if needed by a mitigation.


Josh Poimboeuf (5):
  cpu/speculation: Add 'cpu_spec_mitigations=' cmdline options
  x86/speculation: Add support for 'cpu_spec_mitigations=' cmdline
    options
  powerpc/speculation: Add support for 'cpu_spec_mitigations=' cmdline
    options
  s390/speculation: Add support for 'cpu_spec_mitigations=' cmdline
    options
  arm64/speculation: Add support for 'cpu_spec_mitigations=' cmdline
    options

 .../admin-guide/kernel-parameters.txt         | 42 +++++++++++++++++++
 arch/arm64/kernel/cpu_errata.c                |  4 ++
 arch/arm64/kernel/cpufeature.c                |  6 +++
 arch/powerpc/kernel/security.c                |  6 +--
 arch/powerpc/kernel/setup_64.c                |  2 +-
 arch/s390/kernel/nospec-branch.c              |  4 +-
 arch/x86/include/asm/processor.h              |  1 +
 arch/x86/kernel/cpu/bugs.c                    | 32 ++++++++++++--
 arch/x86/kvm/vmx/vmx.c                        |  2 +
 arch/x86/mm/pti.c                             |  4 +-
 include/linux/cpu.h                           |  8 ++++
 kernel/cpu.c                                  | 15 +++++++
 12 files changed, 116 insertions(+), 10 deletions(-)

-- 
2.17.2


^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2019-04-12  2:42 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-04 16:44 [PATCH RFC 0/5] cpu/speculation: Add 'cpu_spec_mitigations=' cmdline options Josh Poimboeuf
2019-04-04 16:44 ` [PATCH RFC 1/5] " Josh Poimboeuf
2019-04-04 16:49   ` Josh Poimboeuf
2019-04-05 13:12   ` Borislav Petkov
2019-04-05 14:20     ` Josh Poimboeuf
2019-04-05 15:20       ` Borislav Petkov
2019-04-05 16:01         ` Borislav Petkov
2019-04-05 16:18           ` Josh Poimboeuf
2019-04-10  5:48             ` Michael Ellerman
2019-04-10  8:30               ` Borislav Petkov
2019-04-10 12:10               ` Thomas Gleixner
2019-04-11 13:15                 ` Josh Poimboeuf
2019-04-12  2:41                   ` Michael Ellerman
2019-04-12  2:29                 ` Michael Ellerman
2019-04-04 16:44 ` [PATCH RFC 2/5] x86/speculation: Add support for " Josh Poimboeuf
2019-04-05 13:57   ` Borislav Petkov
2019-04-05 14:31     ` Josh Poimboeuf
2019-04-05 15:26       ` Borislav Petkov
2019-04-05 16:05         ` Josh Poimboeuf
2019-04-05 15:18     ` Randy Dunlap
2019-04-05 15:30       ` Josh Poimboeuf
2019-04-04 16:44 ` [PATCH RFC 3/5] powerpc/speculation: " Josh Poimboeuf
2019-04-04 19:49   ` Jiri Kosina
2019-04-04 20:01     ` Timothy Pearson
2019-04-10  6:06   ` Michael Ellerman
2019-04-11  4:02     ` Josh Poimboeuf
2019-04-04 16:44 ` [PATCH RFC 4/5] s390/speculation: " Josh Poimboeuf
2019-04-04 16:44 ` [PATCH RFC 5/5] arm64/speculation: " Josh Poimboeuf
2019-04-05 14:39   ` Steven Price
2019-04-05 14:43     ` Josh Poimboeuf
2019-04-05 14:44   ` Will Deacon
2019-04-05 16:03     ` Josh Poimboeuf
2019-04-04 16:50 ` [PATCH RFC 0/5] cpu/speculation: Add " Waiman Long

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).