[SRU] [PULL] [Cosmic] powerpc: support software count cache flush
Andrea Righi
andrea.righi at canonical.com
Tue Apr 9 13:02:12 UTC 2019
BugLink: https://bugs.launchpad.net/bugs/1822870
This is the backport of the count cache flush by software on
context-switch capability for powerpc (Spectre v2 mitigation).
All clean cherry picks, except few minor adjustments to apply some
patches, but no significant backport changes.
The following changes since commit 2e8c30c50b1881a4f29c65f595c4a1b87b435d35:
UBUNTU: Ubuntu-4.18.0-18.19 (2019-04-02 18:06:12 +0200)
are available in the Git repository at:
git://git.launchpad.net/~arighi/+git/cosmic-linux powerpc-count-cache-flush-spectre-v2
for you to fetch changes up to 31061ccf5a54f899aa1e7478a050cf6cfc0c1495:
powerpc/64: Make stf barrier PPC_BOOK3S_64 specific. (2019-04-08 18:31:48 +0200)
----------------------------------------------------------------
Diana Craciun (7):
powerpc/64: Disable the speculation barrier from the command line
powerpc/64: Make meltdown reporting Book3S 64 specific
powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E
powerpc/fsl: Add infrastructure to fixup branch predictor flush
powerpc/fsl: Add nospectre_v2 command line argument
powerpc/fsl: Update Spectre v2 reporting
powerpc/64: Make stf barrier PPC_BOOK3S_64 specific.
Michael Ellerman (7):
powerpc/asm: Add a patch_site macro & helpers for patching instructions
powerpc/64s: Add new security feature flags for count cache flush
powerpc/64s: Add support for software count cache flush
powerpc/64: Add CONFIG_PPC_BARRIER_NOSPEC
powerpc/security: Fix spectre_v2 reporting
powerpc/powernv: Query firmware for count cache flush settings
powerpc/pseries: Query hypervisor for count cache flush settings
arch/powerpc/Kconfig | 7 +-
arch/powerpc/include/asm/asm-prototypes.h | 6 ++
arch/powerpc/include/asm/barrier.h | 12 ++-
arch/powerpc/include/asm/code-patching-asm.h | 18 ++++
arch/powerpc/include/asm/code-patching.h | 2 +
arch/powerpc/include/asm/feature-fixups.h | 12 +++
arch/powerpc/include/asm/hvcall.h | 2 +
arch/powerpc/include/asm/security_features.h | 7 ++
arch/powerpc/include/asm/setup.h | 9 +-
arch/powerpc/kernel/Makefile | 3 +-
arch/powerpc/kernel/entry_64.S | 54 ++++++++++++
arch/powerpc/kernel/module.c | 4 +-
arch/powerpc/kernel/security.c | 123 ++++++++++++++++++++++++++-
arch/powerpc/kernel/vmlinux.lds.S | 12 ++-
arch/powerpc/lib/code-patching.c | 16 ++++
arch/powerpc/lib/feature-fixups.c | 58 ++++++++++++-
arch/powerpc/platforms/powernv/setup.c | 7 ++
arch/powerpc/platforms/pseries/setup.c | 7 ++
18 files changed, 348 insertions(+), 11 deletions(-)
create mode 100644 arch/powerpc/include/asm/code-patching-asm.h
More information about the kernel-team
mailing list