Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 25 Oct 2021 22:18:54 +1100
From: Michael Ellerman <>
Subject: Linux kernel: powerpc: KVM guest can trigger host crash on Power8 

The Linux kernel for powerpc since v5.2 has a bug which allows a
malicious KVM guest to crash the host, when the host is running on

Only machines using Linux as the hypervisor, aka. KVM, powernv or bare
metal, are affected by the bug. Machines running PowerVM are not

The bug was introduced in:

    10d91611f426 ("powerpc/64s: Reimplement book3s idle code in C")

Which was first released in v5.2.

The upstream fix is:

  cdeb5d7d890e ("KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest")

Which will be included in the v5.16 release.

Note to backporters, the following commits are required:

  ("powerpc64/idle: Fix SP offsets when saving GPRs")

  ("KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest()")

  ("KVM: PPC: Book3S HV: Make idle_kvm_start_guest() return 0 if it went to guest")

  ("powerpc/idle: Don't corrupt back chain when going idle")

I have a test case to trigger the bug, which I can share privately with
anyone who would like to test the fix.


Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.