]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 23 Apr 2019 15:48:53 +0000 (17:48 +0200)
commit80dde6e370fec8f5585753001111773f51b54336
tree204d93275f1000d59a247019cd4bffb7006bb77c
parent113a8b0f1c76ae30702e9dbb6f5a09131d2588bd
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.

BugLink: https://bugs.launchpad.net/bugs/1822870
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 815069ca57c142eb71d27439bc27f41a433a67b3)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/include/asm/setup.h
arch/powerpc/kernel/module.c
arch/powerpc/kernel/security.c
arch/powerpc/lib/feature-fixups.c