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 C8782C35250 for ; Sun, 9 Feb 2020 13:42:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9B06D20715 for ; Sun, 9 Feb 2020 13:42:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581255752; bh=cpG0qhelPJVTdcoLrt6RQ2y2oQhM2nvlWx5w/2Mnm1w=; h=Subject:To:Cc:From:Date:List-ID:From; b=dbQKtZARbbicuxms/Hf63GbUVLZCTYd8kvXu2Ct/kZlbA4iqZ7JeKcSwYTi3CEBTI Ap8o9/SVe+0w+F29zxcP2IpTtsCmmEXHbGmpw1XBbZgJIFXuKxhPPo6HoGmmuALCsK 3QWZIPbi7ZPw4h7DWwUKT2LNfcd6Kty4tXrfRHXM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727723AbgBINmc (ORCPT ); Sun, 9 Feb 2020 08:42:32 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:48337 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbgBINmc (ORCPT ); Sun, 9 Feb 2020 08:42:32 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 487F121E1C; Sun, 9 Feb 2020 08:42:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 09 Feb 2020 08:42:31 -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=0dMIUd VOlTSij+Bi8j/BnMYVbA05DLEB7H7hnQBtJOI=; b=dibk46lnwIpWcC5e3RFaAf 9QT6UVbq8x2lWb++vKM8IVa6zgENJMoY+R4JdqcVinmXfKhDajp66LKKsug54AhR mKKJ7SdDeNA2RyuHAxrlRqcKYEhxGozJP/FawGAa+s4riONkmqwjyPb1z+HQsOLa cCR57H3Z4zgPFvJxb7ZJvjQdcn+3xkHo+M6WmUhUKPUk6oNYuJ479/ax6sAoE6jl 2/D/ChDJp2ZKNd2hcoHZsBTwXctD5NLexV0bQjqxMRyi4BPy2+4bckk5OWqpVAf7 QAawWPRH54HiBpsvxIy+tC6JAc5yFHWhLbyZ7u8YgMEG/hIlmF/Zx/3Vnx7kHE5Q == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheelgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepfeekrdelkedrfeejrddufeehnecuvehluhhsthgvrhfuihiivgepieenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (unknown [38.98.37.135]) by mail.messagingengine.com (Postfix) with ESMTPA id DC8FE3060272; Sun, 9 Feb 2020 08:42:29 -0500 (EST) Subject: FAILED: patch "[PATCH] KVM: nVMX: vmread should not set rflags to specify success in" failed to apply to 5.5-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:23 +0100 Message-ID: <1581251783689@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 5.5-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);