]> git.ipfire.org Git - people/arne_f/kernel.git/commit
powerpc/64s: Patch barrier_nospec in modules
authorMichal Suchanek <msuchanek@suse.de>
Thu, 11 Apr 2019 11:46:00 +0000 (21:46 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:36:40 +0000 (08:36 +0200)
commit73b0f626499c15b268f7d49d6871d49508edaa56
tree53fc54f1d2e2920fdbe51b94175acd6dbef8c3f7
parent1c38a84d45862be06ac418618981631eddbda741
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: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/module.c
arch/powerpc/kernel/security.c
arch/powerpc/lib/feature-fixups.c