OSDN Git Service

powerpc/64s: support nospectre_v2 cmdline option
authorChristopher M. Riedl <cmr@informatik.wtf>
Fri, 24 May 2019 02:46:48 +0000 (21:46 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Nov 2019 20:28:45 +0000 (21:28 +0100)
commit34552a99ba342fb3837aa506e0e2310ba2eab0aa
tree7b532d58563b7d257b33bf8e7cd1a8ed32ee55a1
parentbc3b3ce2c277b6b4e271474a841f8fb0b9e8fac4
powerpc/64s: support nospectre_v2 cmdline option

commit d8f0e0b073e1ec52a05f0c2a56318b47387d2f10 upstream.

Add support for disabling the kernel implemented spectre v2 mitigation
(count cache flush on context switch) via the nospectre_v2 and
mitigations=off cmdline options.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Christopher M. Riedl <cmr@informatik.wtf>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190524024647.381-1-cmr@informatik.wtf
Signed-off-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/security.c