powerpc/64s: Patch barrier_nospec in modules
authorMichal Suchanek <msuchanek@suse.de>
Fri, 29 Mar 2019 11:25:50 +0000 (22:25 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:25:11 +0000 (06:25 +0200)
commit31c3a1e81171f03c7df48aac3efc1d417a18c708
tree4fda3903ffafbb8288e211e6c105c88ba26851b3
parentf1a6390af33c9bff231e31d514f295e25c271a8c
powerpc/64s: Patch barrier_nospec in modules

commit 815069ca57c142eb71d27439bc27f41a433a67b3 upstream.

Note that unlike RFI which is patched only in kernel the nospec state
reflects settings at the time the module was loaded.

Iterating all modules and re-patching every time the settings change
is not implemented.

Based on lwsync patching.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/module.c
arch/powerpc/kernel/security.c
arch/powerpc/lib/feature-fixups.c