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=-9.4 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,URIBL_BLOCKED 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 4A26AC43387 for ; Sat, 5 Jan 2019 15:30:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 198B7206B6 for ; Sat, 5 Jan 2019 15:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546702232; bh=AWqTgeGs9vFbZTRzB9UWbr7ySPjQMQZHKYuxM8irwDU=; h=Subject:To:Cc:From:Date:List-ID:From; b=N9WCggRAaM4aXJTCr4hoVFKJ1Vtkg9deKxVGJ4E3KlEBWqYbJPYfwScB+65QErOds n+gs12i9MM0v03IDZuv5tguRNunb1z2GiXBaH5keJ67pn7L7zdHFGZbhK4DbDJo15M isUS5RDzhuGorOZ0R9tXYZwIshUzud4NtmPOBVmM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726282AbfAEPab (ORCPT ); Sat, 5 Jan 2019 10:30:31 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49695 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726236AbfAEPab (ORCPT ); Sat, 5 Jan 2019 10:30:31 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A758B22AAE; Sat, 5 Jan 2019 10:30:30 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sat, 05 Jan 2019 10:30:30 -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=fm1; bh=HRbPf9 6sWXtwGhKREnJV23T8iiHvqHFjifwjHmipQuE=; b=l9k171xVZRc8SToMzzThAf 3/PWQAhxQ8Hr9k9XWVY6ImNMfbJHuXS5tj+PYKR/d5oq+AtCSWXej4icvxGSI6sC 3ZMk38isxeKPhd7ZdyOR9/V0VdBx2NK/645xKAiXlGa+K9Wu27TJ6k9WI7xDSJ0s Qy0uEHpEzc0Z5uD+hqyMMhjLVl+2f3l0oruBFdmYvz5HyVCQa7o15o2jGWzlB6lK JufxD4ITUcWA8HDgYWzGy15a65TZDbKT8Yr6emamBpAhSAGW/qa4DXcxytpHv5X8 UvNNgy0rlmu5vhm0mqJHXOrl4jq8nw9ZQDi/u1get759jYgUyu8Npcw/M4271pfQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrvdefgdejleculddtuddrgedtkedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvffhfffkgggtgfesthekredttd dtlfenucfhrhhomhepoehgrhgvghhkhheslhhinhhugihfohhunhgurghtihhonhdrohhr gheqnecukfhppedukeekrdekledrudefhedrkeejnecurfgrrhgrmhepmhgrihhlfhhroh hmpehgrhgvgheskhhrohgrhhdrtghomhenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: from localhost (unknown [188.89.135.87]) by mail.messagingengine.com (Postfix) with ESMTPA id 0119B100B9; Sat, 5 Jan 2019 10:30:29 -0500 (EST) Subject: FAILED: patch "[PATCH] KVM: nVMX: Free the VMREAD/VMWRITE bitmaps if" failed to apply to 4.4-stable tree To: sean.j.christopherson@intel.com, pbonzini@redhat.com Cc: From: Date: Sat, 05 Jan 2019 16:30:28 +0100 Message-ID: <1546702228392@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.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 1b3ab5ad1b8ad99bae76ec583809c5f5a31c707c Mon Sep 17 00:00:00 2001 From: Sean Christopherson Date: Mon, 3 Dec 2018 13:52:51 -0800 Subject: [PATCH] KVM: nVMX: Free the VMREAD/VMWRITE bitmaps if alloc_kvm_area() fails Fixes: 34a1cd60d17f ("kvm: x86: vmx: move some vmx setting from vmx_init() to hardware_setup()") Cc: stable@vger.kernel.org Signed-off-by: Sean Christopherson Signed-off-by: Paolo Bonzini diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index c379d0bfdcba..3ec47b7a94d6 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -8037,13 +8037,16 @@ static __init int hardware_setup(void) kvm_mce_cap_supported |= MCG_LMCE_P; - return alloc_kvm_area(); + r = alloc_kvm_area(); + if (r) + goto out; + return 0; out: for (i = 0; i < VMX_BITMAP_NR; i++) free_page((unsigned long)vmx_bitmap[i]); - return r; + return r; } static __exit void hardware_unsetup(void)