From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15851C35250 for ; Sun, 9 Feb 2020 13:42:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE83B20715 for ; Sun, 9 Feb 2020 13:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581255770; bh=9JtQbyY/yr17RcIBQNpzBwa67jM4MhQC9CKoNYB33Kw=; h=Subject:To:Cc:From:Date:List-ID:From; b=JWmiGtjq5QRU62ICaZu7aYMj2NAx3ITSej+L9o51yZaPl5S+f4+0DHlAaGN0gLWuh WiWtIjdWEpKWctoYEg+oR4Jr0alzWRXH8Ewbnn9NG7pDZRcH4eV31x2RXbI+zN61GG YNO9erOgFw2VKgbKMKk0zQdqpvFCP//qQJWunxbU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727731AbgBINmu (ORCPT ); Sun, 9 Feb 2020 08:42:50 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54021 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbgBINmu (ORCPT ); Sun, 9 Feb 2020 08:42:50 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 7FA0421D51; Sun, 9 Feb 2020 08:42:49 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 09 Feb 2020 08:42:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=xC82UY D3hJR9TNLc58Llossz3rHpNW8+tJhR823y3rQ=; b=WSSDW4hsxHwX7Q/ZdIa4xV uqfKi8BphJmmJwkX4YSEcldNYUcRDYWVlFOcWRy9wyHLY8OoZJRzcdumcQpLJqh3 xSFim/inb/LSBkfv/RbOEP+1c+kYaMy1HLrMu3c5mNYp3CLZrwGif59pi2DZUbTy 8ctHoUBNKbwFBJiN5aFciPuDRIo6MG68MVPcru5cSpZ+Dr4AodnKsGLXroS55sQP m0HFdeUyK7TcNBl4bqreOj430xK7m6I19HmkR6bPTAwFxQjEFcFiGabM0ZhvYPR5 /ZTk9JCixVdabZmxZCb6H3MrC/ZIQut4EkU/tKr+1MPrH81joP1EV+nLoS8d4xYw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheelgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepfeekrdelkedrfeejrddufeehnecuvehluhhsthgvrhfuihiivgepkeenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (unknown [38.98.37.135]) by mail.messagingengine.com (Postfix) with ESMTPA id 3ABD93060717; Sun, 9 Feb 2020 08:42:48 -0500 (EST) Subject: FAILED: patch "[PATCH] KVM: nVMX: vmread should not set rflags to specify success in" failed to apply to 4.19-stable tree To: linmiaohe@huawei.com, liran.alon@oracle.com, pbonzini@redhat.com, sean.j.christopherson@intel.com Cc: From: Date: Sun, 09 Feb 2020 13:36:25 +0100 Message-ID: <15812517851339@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 4.19-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From a4d956b9390418623ae5d07933e2679c68b6f83c Mon Sep 17 00:00:00 2001 From: Miaohe Lin Date: Sat, 28 Dec 2019 14:25:24 +0800 Subject: [PATCH] KVM: nVMX: vmread should not set rflags to specify success in case of #PF In case writing to vmread destination operand result in a #PF, vmread should not call nested_vmx_succeed() to set rflags to specify success. Similar to as done in VMPTRST (See handle_vmptrst()). Reviewed-by: Liran Alon Signed-off-by: Miaohe Lin Cc: stable@vger.kernel.org Reviewed-by: Sean Christopherson Signed-off-by: Paolo Bonzini diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c index e038a331583c..ef2d53854d15 100644 --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c @@ -4799,8 +4799,10 @@ static int handle_vmread(struct kvm_vcpu *vcpu) instr_info, true, len, &gva)) return 1; /* _system ok, nested_vmx_check_permission has verified cpl=0 */ - if (kvm_write_guest_virt_system(vcpu, gva, &value, len, &e)) + if (kvm_write_guest_virt_system(vcpu, gva, &value, len, &e)) { kvm_inject_page_fault(vcpu, &e); + return 1; + } } return nested_vmx_succeed(vcpu);