]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86, microcode, AMD: Extend ucode size verification
authorBorislav Petkov <borislav.petkov@amd.com>
Thu, 10 Feb 2011 11:19:47 +0000 (12:19 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:57:07 +0000 (10:57 -0400)
commitcb500c50d297d2c286f191c1118028d3abc77c90
tree72c500c94f357f14da0aee9f14d6f40d382459a3
parent445c981b0be1db5384ca0084eb38fbb92f4c6fb9
x86, microcode, AMD: Extend ucode size verification

commit 44d60c0f5c58c2168f31df9a481761451840eb54 upstream.

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.

[PG: baseline of 44d60c0f5~1 differs in multiple trivial ways from
 the 34's; this commit makes get_next_ucode() look like 44d60c0f5's]

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/x86/kernel/microcode_amd.c