From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933881AbdERTZM (ORCPT ); Thu, 18 May 2017 15:25:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47460 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751673AbdERTZK (ORCPT ); Thu, 18 May 2017 15:25:10 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 51C8780E7D Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=rkrcmar@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 51C8780E7D Date: Thu, 18 May 2017 21:25:07 +0200 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Paolo Bonzini Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Dan Carpenter Subject: Re: [PATCH 0/4] KVM: x86: fix bugs reported by Dan Carpenter Message-ID: <20170518192506.GA1819@potion> References: <20170518173732.12185-1-rkrcmar@redhat.com> <320c57ae-184d-3123-e77f-63f159e44d49@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <320c57ae-184d-3123-e77f-63f159e44d49@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 18 May 2017 19:25:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-05-18 20:52+0200, Paolo Bonzini: > On 18/05/2017 19:37, Radim Krčmář wrote: > > It would be possible to make reproducers for the first three patches, > > but they happen under circumstances too remote from normal use, so I > > didn't test them like that. :) > > > > > > Radim Krčmář (4): > > KVM: nVMX: fix nested_vmx_check_vmptr failure paths under debugging > > KVM: x86: zero base3 of unusable segments > > KVM: x86/vPMU: fix undefined shift in intel_pmu_refresh() > > KVM: x86: prevent uninitialized variable warning in check_svme() > > > > arch/x86/kvm/emulate.c | 2 +- > > arch/x86/kvm/pmu_intel.c | 2 +- > > arch/x86/kvm/vmx.c | 31 ++++++++++++++++++------------- > > arch/x86/kvm/x86.c | 2 ++ > > 4 files changed, 22 insertions(+), 15 deletions(-) > > > > Patch 1 is ugly, but I don't have any better idea. I agree. Adding another argument was clearly worse, but I almost chose to keep the skip in nested_vmx_check_vmptr() and return it +1, to signal an error, and then subtract 1 before returning from the exit handler. > Reviewed-by: Paolo Bonzini Thanks.