]> git.ipfire.org Git - people/arne_f/kernel.git/commit
powerpc/64s: Patch barrier_nospec in modules
authorMichal Suchanek <msuchanek@suse.de>
Tue, 24 Apr 2018 04:15:56 +0000 (14:15 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 3 Jun 2018 10:43:44 +0000 (20:43 +1000)
commit815069ca57c142eb71d27439bc27f41a433a67b3
tree776b7b8a934e55dd4aaab3e52051b8e8d895dd2d
parent2eea7f067f495e33b8b116b35b5988ab2b8aec55
powerpc/64s: Patch barrier_nospec in modules

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>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/module.c
arch/powerpc/kernel/security.c
arch/powerpc/lib/feature-fixups.c