From mboxrd@z Thu Jan 1 00:00:00 1970 From: Radim =?utf-8?B?S3LEjW3DocWZ?= Subject: Re: [PATCH] kvm: nVMX: off by one in vmx_write_pml_buffer() Date: Tue, 16 May 2017 15:56:18 +0200 Message-ID: <20170516135617.GB13731@potion> References: <20170510194317.uh72h3ez7hnvn62v@mwanda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , Bandan Das , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, kvm@vger.kernel.org, kernel-janitors@vger.kernel.org To: Dan Carpenter Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59434 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbdEPN4g (ORCPT ); Tue, 16 May 2017 09:56:36 -0400 Content-Disposition: inline In-Reply-To: <20170510194317.uh72h3ez7hnvn62v@mwanda> Sender: kvm-owner@vger.kernel.org List-ID: 2017-05-10 22:43+0300, Dan Carpenter: > There are PML_ENTITY_NUM elements in the pml_address[] array so the > > should be >= or we write beyond the end of the array when we do: > > pml_address[vmcs12->guest_pml_index--] = gpa; > > Fixes: c5f983f6e845 ("nVMX: Implement emulated Page Modification Logging") > Signed-off-by: Dan Carpenter Applied to kvm/master, thanks. (v1 was deemed better after all.)