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=-7.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 43C9DC43381 for ; Fri, 22 Mar 2019 10:05:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 126B12190A for ; Fri, 22 Mar 2019 10:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553249104; bh=tgiFnfvYXd3UsP8pv9xt92mnB7EFN/qFwFw+JYBbo3M=; h=Subject:To:Cc:From:Date:List-ID:From; b=kqen1ThFmmjmOLU+dhagaTaaqiI1prdWCYuY1whAn4zCRAfxiSwh33lnVGWcXXbEu f0VkI66K04iFn9wdxasDTOIdm0P8StmUqlh2rfrUnurZj/m/r/2aVsZ8gUApKt6HEM KB2YxpDu0B/2jaV+Q1ANN1gOTXXwaMlWVJHQzaZg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727934AbfCVKFD (ORCPT ); Fri, 22 Mar 2019 06:05:03 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:52903 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727931AbfCVKFC (ORCPT ); Fri, 22 Mar 2019 06:05:02 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DEEB14714; Fri, 22 Mar 2019 06:05:01 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 22 Mar 2019 06:05:02 -0400 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=jwwRWA /7j2gmSIH1whX5EkyVSkgzkvHOabiNx7Anj4I=; b=R+ohaGvX3ih1mV4P+OBV2m pVhfRh7YQ9/tTUeCs9WpQorl776crlL6DCQ0gpOkgpzAw1M53+S+EzqYp04IEf8A wZYsFmJd6sCDD891X/bO8Wv8H+0LymzEChP1u7+NM3GRBQ9UtmIC7bWJOKrv90jD ywwSpoY+d8X6vFG1ySE9EOePcfmSgXk22xXY6rSkf/nYvmfAgpTCGGRZE+2Hbj3o unlqIJEzdNUstAb1zp9PF+Sf+oEPNrmpYp5JkzWkBC01N93GoLNrLtt9irwCbFDQ QtzyFdTMoN7UIBupufUw1nNAuW3P/dX42q/gnfDEhwAG7rLot0SjdQyyAIkaXung == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrjedugddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucfkphepkeefrdekiedrkeelrddutdejnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedv X-ME-Proxy: Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 8AC851030F; Fri, 22 Mar 2019 06:05:00 -0400 (EDT) Subject: FAILED: patch "[PATCH] KVM: nVMX: Apply addr size mask to effective address for VMX" failed to apply to 4.9-stable tree To: sean.j.christopherson@intel.com, pbonzini@redhat.com Cc: From: Date: Fri, 22 Mar 2019 11:04:57 +0100 Message-ID: <1553249097245103@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.9-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 8570f9e881e3fde98801bb3a47eef84dd934d405 Mon Sep 17 00:00:00 2001 From: Sean Christopherson Date: Wed, 23 Jan 2019 14:39:24 -0800 Subject: [PATCH] KVM: nVMX: Apply addr size mask to effective address for VMX instructions The address size of an instruction affects the effective address, not the virtual/linear address. The final address may still be truncated, e.g. to 32-bits outside of long mode, but that happens irrespective of the address size, e.g. a 32-bit address size can yield a 64-bit virtual address when using FS/GS with a non-zero base. Fixes: 064aea774768 ("KVM: nVMX: Decoding memory operands of VMX instructions") Cc: stable@vger.kernel.org Signed-off-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 d531f4c91a34..34081cc8cdeb 100644 --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c @@ -4029,20 +4029,41 @@ int get_vmx_mem_address(struct kvm_vcpu *vcpu, unsigned long exit_qualification, if (index_is_valid) off += kvm_register_read(vcpu, index_reg)<