]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, microcode, AMD: Extend ucode size verification
authorBorislav Petkov <borislav.petkov@amd.com>
Tue, 29 Mar 2011 19:29:54 +0000 (21:29 +0200)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:20:59 +0000 (08:20 -0700)
commit297a19bdbec76bbf4668abd4a8eb4bcf6b4019f8
treecb432840da67bd015bee303140bbc5eee2447753
parente0908c530987e7df4cfb4ef7d94cd2c0e17f6b95
x86, microcode, AMD: Extend ucode size verification

Upstream commit: 44d60c0f5c58c2168f31df9a481761451840eb54

The different families have a different max size for the ucode patch,
adjust size checking to the family we're running on. Also, do not
vzalloc the max size of the ucode but only the actual size that is
passed on from the firmware loader.

Cc: <stable@kernel.org>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
arch/x86/kernel/microcode_amd.c