From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga01-in.huawei.com ([58.251.152.64]:56288 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbbGaDEQ (ORCPT ); Thu, 30 Jul 2015 23:04:16 -0400 Message-ID: <55BAE594.9040201@huawei.com> Date: Fri, 31 Jul 2015 11:03:48 +0800 From: Rui Xiang MIME-Version: 1.0 To: Zefan Li , "H. Peter Anvin" , Suresh Siddha , Suresh Siddha , Paolo Bonzini , CC: , Subject: Re: [request for stable inclusion][Patch 3.4.y] x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() References: <1438167814-8284-1-git-send-email-rui.xiang@huawei.com> In-Reply-To: <1438167814-8284-1-git-send-email-rui.xiang@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: ping.... On 2015/7/29 19:03, Rui Xiang wrote: > Hi Zefan, Suresh or Peter, > > 9c1c3fac53378c9782c18f80107965578d7b7167 > x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu() > > We never cause the "Device Not Available" exception in kernel mode, > but without this patch, the orign unlazy_fpu() do stts(), the following > fpu_restore_checking() will trigger a DNA(Device Not Available), this > may corrupt the user process fpu. And an crash happened through a fault > injection in our scenario. > > b1a74bf8212367be2b1d6685c11a84e056eaaaf1 > x86, kvm: fix kvm's usage of kernel_fpu_begin/end() > > The commit b1a74bf82123 fix a bug introduced by comit 9c1c3fac5337 > (x86, kvm: use kernel_fpu_begin/end() in kvm_load/put_guest_fpu()) > > They look applicable to stable-3.4.y. The first one can be applied > cleanly, the other need some adjustments to backport. > The following patche is the backport for b1a74bf82123. > > And what do you think? > > Thanks. > > > > . >