]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/64s: Add support for ori barrier_nospec patching
authorMichal Suchanek <msuchanek@suse.de>
Thu, 11 Apr 2019 11:45:58 +0000 (21:45 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:36:39 +0000 (08:36 +0200)
commitf3286f1a71e3ccb80c53add0e6b322fc73544b77
tree7db171457452f11bfca26a7aa3f675f0c491aef4
parent4314e774ce40e08e763996fc6f6220a1ef1dbc2c
powerpc/64s: Add support for ori barrier_nospec patching

commit 2eea7f067f495e33b8b116b35b5988ab2b8aec55 upstream.

Based on the RFI patching. This is required to be able to disable the
speculation barrier.

Only one barrier type is supported and it does nothing when the
firmware does not enable it. Also re-patching modules is not supported
So the only meaningful thing that can be done is patching out the
speculation barrier at boot when the user says it is not wanted.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/barrier.h
arch/powerpc/include/asm/feature-fixups.h
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/security.c
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/lib/feature-fixups.c