From: Jan Kiszka Date: Fri, 23 Oct 2009 07:37:00 +0000 (+0200) Subject: KVM: x86: Catch potential overrun in MCE setup X-Git-Tag: v2.6.32-rc7~66^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e38c3e01ad242fe2a625354cf065c34b01e3aa;p=pandora-kernel.git KVM: x86: Catch potential overrun in MCE setup 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed