From: Marcelo Tosatti Subject: Re: [PATCH] KVM: x86: Catch potential overrun in MCE setup Date: Fri, 23 Oct 2009 15:54:39 -0200 Message-ID: <20091023175439.GA5711@amt.cnet> References: <4AE15D1C.30905@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm-devel To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:58699 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752873AbZJWTK1 (ORCPT ); Fri, 23 Oct 2009 15:10:27 -0400 Content-Disposition: inline In-Reply-To: <4AE15D1C.30905@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Oct 23, 2009 at 09:37:00AM +0200, Jan Kiszka wrote: > We only allocate memory for 32 MCE banks (KVM_MAX_MCE_BANKS) but we > allow user space to fill up to 255 on setup (mcg_cap & 0xff), corrupting > kernel memory. Catch these overflows. > > Signed-off-by: Jan Kiszka Applied, thanks.