Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10249289ybi; Wed, 24 Jul 2019 19:18:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwlnVTcn3B3qGbPzUa4z+anqk2hUA2P9qfydMd5vMhD2rQgojaLGovMMQwnW5pN0e8YwbM0 X-Received: by 2002:a63:774c:: with SMTP id s73mr84557219pgc.238.1564021093420; Wed, 24 Jul 2019 19:18:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564021093; cv=none; d=google.com; s=arc-20160816; b=c+4sow2guf0lmF7h6Epw2aNApGWX22m4XaIUTnTAJuu19UFHMW83mKNvovNMU5LzZ4 7NItN7aRe5dguxjC15ko0UlWKszk6A+oVAa77Nh1WOz8o/nLGgFO9q4UBQ5l0tq4KhbF kpz2MYe36r1TgbpHqXZvPYbNAAdPKbSaRa7UOMVkzLr9QyYem0HldhCt3zRH1IAzU/aV +hVjRDMR3mb9z9igiE8Cd8hWIzQDZgYfTavhVOQtw0dc+fp/TX9guX7w86ak+iQOYAjj gs2225nrPpeahXaUDbd7c1yE+CzjXtExntIzsZ683BRpdW8k0ca16OrJ8Ni8V/z8k5Ua TxaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wBou+fwjO3lfHJbhVGJQzx7bMtA8ccMdLL1PP6sfU8w=; b=HSCx/LnOn1qmE3/XmpaQa/AdahuNc89+14zki0PBBZ7Exk4WHWrXnaZH4m9Xj8Zp2c UA6OTvMRweQ8Cojxl7gMWh+oNo+mx093u73gZCYg8PtVxP+O6QtXPQOuYeFF8iGAyWjX cHc9j978ulKREaV65UlXa9UF2oGFcdRCRprfGXVT/+wFTp9PZQZsAS+jMJ9Px1NvqbuJ 7zxWlYc9HSwCrIXRsIueDIoZfrdD/1Rseps772vIyDM+ef1Au+sP73UQacYvx9uTcIsJ JEbq3gcPw/daQCbs38jHDFktkWX52tmSVvvTxw4PVJuKABN4A35rdEdOUHlKgcDStLpC 9nBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O5Bwo+h7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id go12si13427324plb.251.2019.07.24.19.17.51; Wed, 24 Jul 2019 19:18:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O5Bwo+h7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389676AbfGXTik (ORCPT + 99 others); Wed, 24 Jul 2019 15:38:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:39380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389655AbfGXTij (ORCPT ); Wed, 24 Jul 2019 15:38:39 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 919ED217D4; Wed, 24 Jul 2019 19:38:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997119; bh=eL0FO2CkjCIhfGMUQNVcz1iyPh7fdrLu1UzbrROToL8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O5Bwo+h7IkXbQ/a4nqut2yd1gAyncm+y14P9Yr6BGrsfn0CQ+FCxe2NupVECMsgvX Z6cFV8d+4iQN/vqesPvhjobjZus68vFpi2V3y5kaXlfX9HdcYRuKTcqKIDtrxtaGIx m9srpBL9j4HWv3wgw4/ZzSGWtAvrODM2zwkE+07o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Bonzini , Sean Christopherson Subject: [PATCH 5.2 326/413] KVM: nVMX: Dont dump VMCS if virtual APIC page cant be mapped Date: Wed, 24 Jul 2019 21:20:17 +0200 Message-Id: <20190724191759.190392402@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Christopherson commit 73cb85568433feadb79e963bf2efba9b3e9ae3df upstream. ... as a malicious userspace can run a toy guest to generate invalid virtual-APIC page addresses in L1, i.e. flood the kernel log with error messages. Fixes: 690908104e39d ("KVM: nVMX: allow tests to use bad virtual-APIC page address") Cc: stable@vger.kernel.org Cc: Paolo Bonzini Signed-off-by: Sean Christopherson Signed-off-by: Paolo Bonzini Signed-off-by: Greg Kroah-Hartman --- arch/x86/kvm/vmx/nested.c | 3 --- 1 file changed, 3 deletions(-) --- a/arch/x86/kvm/vmx/nested.c +++ b/arch/x86/kvm/vmx/nested.c @@ -2878,9 +2878,6 @@ static void nested_get_vmcs12_pages(stru */ vmcs_clear_bits(CPU_BASED_VM_EXEC_CONTROL, CPU_BASED_TPR_SHADOW); - } else { - printk("bad virtual-APIC page address\n"); - dump_vmcs(); } }