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 76212C35250 for ; Sun, 9 Feb 2020 13:42:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A60D2081E for ; Sun, 9 Feb 2020 13:42:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581255761; bh=cgqq+tNl39us+GJeh0e/zBdt5wg30PlLsYc51hW/HVw=; h=Subject:To:Cc:From:Date:List-ID:From; b=LLsTSrWRwASO0vXsL8N8mBW2rP6FiKNb6+rLATrrV7f8wHQlnnJhZ1DHXR2c9Ecw4 LlqQ/hROLv7dzffd+O63yrhillsKNZHtBOsndKVp6x2jYOlTEIfBTXOARrMeok8nST lbIj2QxHS6idPX/RN8/C/AmoFpa3pQeC7WlLrKpA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727725AbgBINml (ORCPT ); Sun, 9 Feb 2020 08:42:41 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:42733 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727514AbgBINmk (ORCPT ); Sun, 9 Feb 2020 08:42:40 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5ABEB21B01; Sun, 9 Feb 2020 08:42:40 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sun, 09 Feb 2020 08:42:40 -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=4o4AEq K2n5W1o6bB8Wr8YYQziS7pS9PxvAS50odjQ5Y=; b=tAXjNLZS8YUvhN6aB9mx8T 3EJcym/MoGcZ+IH6CTZAcZ/jrdaRm+vYNEGeeOCDUAJc/pN2ZgZ1gq874u+UpixR kcdp7P/LpgrUhr4gbNyGgGBl+g+SL6+I21WTMoaVigBRm5V1N5Qg/6yS5oaCMQuL h2iFtb/+5tZEaFlAbTQprPglD08DpdVW6xEtvU9ir8gnufvHaTAqmiNc0H03nDYE fV9/Zw/rkuR5vq06uqHNTIOIhDkWEFkP3ULFOuXmlinxinmmXDjtdzlRflAA7/KD umn+Z32qeKNfPtzcrF3bIOs1TWT4yHEzWURVO7U5L0QbK0Be5yEz3VilGKFjjSGg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrheelgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepfeekrdelkedrfeejrddufeehnecuvehluhhsthgvrhfuihiivgepjeenuc frrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm X-ME-Proxy: Received: from localhost (unknown [38.98.37.135]) by mail.messagingengine.com (Postfix) with ESMTPA id 1D1BC3280060; Sun, 9 Feb 2020 08:42:39 -0500 (EST) Subject: FAILED: patch "[PATCH] KVM: nVMX: vmread should not set rflags to specify success in" failed to apply to 5.4-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:24 +0100 Message-ID: <158125178414544@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.4-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);