mbox series

[BIONIC,PULL] Additional spectre and meltdown patches for ppc64el

Message ID 20180406000756.GA5466@sec
State New
Headers show
Series [BIONIC,PULL] Additional spectre and meltdown patches for ppc64el | expand

Pull-request

https://git.launchpad.net/~tyhicks/ubuntu/+source/linux/+git/bionic lp1760099-ppc-meltdown-spectre

Message

Tyler Hicks April 6, 2018, 12:08 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1760099

These are all clean cherry picks from linux-next. The changes have not yet been
merged by Linus but I expect them to be during the current merge window.

I've reviewed the patches and they look straightforward. They're mostly
cleanups and improved reporting to userspace.

They all share a common BugLink but each patch is either specific to a single
CVE or all three Spectre/Meltdown CVEs. I listed the specific CVE, or all
three, in each patch's commit message but I'm not sure if that was the right
thing to do. Splitting the patch set out into separate pull requests is
almost certainly not the right thing to do. Let me know if this causes
problems with the automated changelog generation and I can adjust the
commit messages.

The following changes since commit be1171dce6c7dec2bae35061963f08a0e4d5b7f9:

  UBUNTU: [Config] CONFIG_BLK_DEV_NMVE=m (2018-04-05 08:30:29 -0500)

are available in the git repository at:

  https://git.launchpad.net/~tyhicks/ubuntu/+source/linux/+git/bionic lp1760099-ppc-meltdown-spectre

for you to fetch changes up to 275060e52218a903312e6f63025f7cc7c4f5e5dc:

  powerpc/64s: Wire up cpu_show_spectre_v2() (2018-04-05 23:41:06 +0000)

----------------------------------------------------------------
Mauricio Faria de Oliveira (1):
      powerpc/rfi-flush: Differentiate enabled and patched flush types

Michael Ellerman (14):
      powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code
      powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again
      powerpc/rfi-flush: Always enable fallback flush on pseries
      powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
      powerpc/pseries: Add new H_GET_CPU_CHARACTERISTICS flags
      powerpc: Add security feature flags for Spectre/Meltdown
      powerpc/pseries: Set or clear security feature flags
      powerpc/powernv: Set or clear security feature flags
      powerpc/64s: Move cpu_show_meltdown()
      powerpc/64s: Enhance the information in cpu_show_meltdown()
      powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()
      powerpc/pseries: Use the security flags in pseries_setup_rfi_flush()
      powerpc/64s: Wire up cpu_show_spectre_v1()
      powerpc/64s: Wire up cpu_show_spectre_v2()

 arch/powerpc/include/asm/hvcall.h            |  3 +
 arch/powerpc/include/asm/security_features.h | 66 +++++++++++++++++++
 arch/powerpc/include/asm/setup.h             |  2 +-
 arch/powerpc/kernel/Makefile                 |  2 +-
 arch/powerpc/kernel/security.c               | 93 +++++++++++++++++++++++++++
 arch/powerpc/kernel/setup_64.c               | 33 +++++-----
 arch/powerpc/lib/feature-fixups.c            |  9 ++-
 arch/powerpc/platforms/powernv/setup.c       | 95 +++++++++++++++++++---------
 arch/powerpc/platforms/pseries/mobility.c    |  3 +
 arch/powerpc/platforms/pseries/pseries.h     |  2 +
 arch/powerpc/platforms/pseries/setup.c       | 72 +++++++++++++++------
 11 files changed, 310 insertions(+), 70 deletions(-)
 create mode 100644 arch/powerpc/include/asm/security_features.h
 create mode 100644 arch/powerpc/kernel/security.c

Comments

Kamal Mostafa April 6, 2018, 3:54 p.m. UTC | #1
Acked-by: Kamal Mostafa <kamal@canonical.com>

On Fri, Apr 06, 2018 at 12:08:12AM +0000, Tyler Hicks wrote:
> BugLink: https://bugs.launchpad.net/bugs/1760099
> 
> These are all clean cherry picks from linux-next. The changes have not yet been
> merged by Linus but I expect them to be during the current merge window.
> 
> I've reviewed the patches and they look straightforward. They're mostly
> cleanups and improved reporting to userspace.
> 
> They all share a common BugLink but each patch is either specific to a single
> CVE or all three Spectre/Meltdown CVEs. I listed the specific CVE, or all
> three, in each patch's commit message but I'm not sure if that was the right
> thing to do. Splitting the patch set out into separate pull requests is
> almost certainly not the right thing to do. Let me know if this causes
> problems with the automated changelog generation and I can adjust the
> commit messages.
> 
> The following changes since commit be1171dce6c7dec2bae35061963f08a0e4d5b7f9:
> 
>   UBUNTU: [Config] CONFIG_BLK_DEV_NMVE=m (2018-04-05 08:30:29 -0500)
> 
> are available in the git repository at:
> 
>   https://git.launchpad.net/~tyhicks/ubuntu/+source/linux/+git/bionic lp1760099-ppc-meltdown-spectre
> 
> for you to fetch changes up to 275060e52218a903312e6f63025f7cc7c4f5e5dc:
> 
>   powerpc/64s: Wire up cpu_show_spectre_v2() (2018-04-05 23:41:06 +0000)
> 
> ----------------------------------------------------------------
> Mauricio Faria de Oliveira (1):
>       powerpc/rfi-flush: Differentiate enabled and patched flush types
> 
> Michael Ellerman (14):
>       powerpc/rfi-flush: Move the logic to avoid a redo into the debugfs code
>       powerpc/rfi-flush: Make it possible to call setup_rfi_flush() again
>       powerpc/rfi-flush: Always enable fallback flush on pseries
>       powerpc/rfi-flush: Call setup_rfi_flush() after LPM migration
>       powerpc/pseries: Add new H_GET_CPU_CHARACTERISTICS flags
>       powerpc: Add security feature flags for Spectre/Meltdown
>       powerpc/pseries: Set or clear security feature flags
>       powerpc/powernv: Set or clear security feature flags
>       powerpc/64s: Move cpu_show_meltdown()
>       powerpc/64s: Enhance the information in cpu_show_meltdown()
>       powerpc/powernv: Use the security flags in pnv_setup_rfi_flush()
>       powerpc/pseries: Use the security flags in pseries_setup_rfi_flush()
>       powerpc/64s: Wire up cpu_show_spectre_v1()
>       powerpc/64s: Wire up cpu_show_spectre_v2()
> 
>  arch/powerpc/include/asm/hvcall.h            |  3 +
>  arch/powerpc/include/asm/security_features.h | 66 +++++++++++++++++++
>  arch/powerpc/include/asm/setup.h             |  2 +-
>  arch/powerpc/kernel/Makefile                 |  2 +-
>  arch/powerpc/kernel/security.c               | 93 +++++++++++++++++++++++++++
>  arch/powerpc/kernel/setup_64.c               | 33 +++++-----
>  arch/powerpc/lib/feature-fixups.c            |  9 ++-
>  arch/powerpc/platforms/powernv/setup.c       | 95 +++++++++++++++++++---------
>  arch/powerpc/platforms/pseries/mobility.c    |  3 +
>  arch/powerpc/platforms/pseries/pseries.h     |  2 +
>  arch/powerpc/platforms/pseries/setup.c       | 72 +++++++++++++++------
>  11 files changed, 310 insertions(+), 70 deletions(-)
>  create mode 100644 arch/powerpc/include/asm/security_features.h
>  create mode 100644 arch/powerpc/kernel/security.c



> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Seth Forshee April 9, 2018, 9:04 p.m. UTC | #2
On Fri, Apr 06, 2018 at 12:08:12AM +0000, Tyler Hicks wrote:
> BugLink: https://bugs.launchpad.net/bugs/1760099
> 
> These are all clean cherry picks from linux-next. The changes have not yet been
> merged by Linus but I expect them to be during the current merge window.
> 
> I've reviewed the patches and they look straightforward. They're mostly
> cleanups and improved reporting to userspace.
> 
> They all share a common BugLink but each patch is either specific to a single
> CVE or all three Spectre/Meltdown CVEs. I listed the specific CVE, or all
> three, in each patch's commit message but I'm not sure if that was the right
> thing to do. Splitting the patch set out into separate pull requests is
> almost certainly not the right thing to do. Let me know if this causes
> problems with the automated changelog generation and I can adjust the
> commit messages.
> 
> The following changes since commit be1171dce6c7dec2bae35061963f08a0e4d5b7f9:
> 
>   UBUNTU: [Config] CONFIG_BLK_DEV_NMVE=m (2018-04-05 08:30:29 -0500)
> 
> are available in the git repository at:
> 
>   https://git.launchpad.net/~tyhicks/ubuntu/+source/linux/+git/bionic lp1760099-ppc-meltdown-spectre
> 
> for you to fetch changes up to 275060e52218a903312e6f63025f7cc7c4f5e5dc:
> 
>   powerpc/64s: Wire up cpu_show_spectre_v2() (2018-04-05 23:41:06 +0000)

Applied to bionic/master-next, thanks!