Messages in this thread | | | Subject | Re: [PATCH 2/2] KVM: s390: Return last valid slot if approx index is out-of-bounds | From | Paolo Bonzini <> | Date | Wed, 8 Apr 2020 11:08:44 +0200 |
| |
On 08/04/20 09:10, Cornelia Huck wrote: > On Tue, 7 Apr 2020 23:40:59 -0700 > Sean Christopherson <sean.j.christopherson@intel.com> wrote: > >> Return the index of the last valid slot from gfn_to_memslot_approx() if >> its binary search loop yielded an out-of-bounds index. The index can >> be out-of-bounds if the specified gfn is less than the base of the >> lowest memslot (which is also the last valid memslot). >> >> Note, the sole caller, kvm_s390_get_cmma(), ensures used_slots is >> non-zero. >> > This also should be cc:stable, with the dependency expressed as > mentioned by Christian. >
So,
Cc: stable@vger.kernel.org # 4.19.x: 0774a964ef56: KVM: Fix out of range accesses to memslots Cc: stable@vger.kernel.org # 4.19.x
Paolo
| |