]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used
authorDiana Craciun <diana.craciun@nxp.com>
Fri, 29 Mar 2019 11:26:16 +0000 (22:26 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:25:14 +0000 (06:25 +0200)
commitfeafb29fe0ce9f090a3f7a202d7fb09a15308059
tree0724af5ead8a5a6421026a47c24b3cee8d6c3383
parent51a498016367f57118a905f209410f3f13f59862
powerpc/fsl: Enable runtime patching if nospectre_v2 boot arg is used

commit 3bc8ea8603ae4c1e09aca8de229ad38b8091fcb3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/setup-common.c