Re: [PATCH v6 3/8] x86/microcode/AMD: Check microcode container data in the early loader
From: Borislav Petkov
Date: Fri Jun 15 2018 - 07:43:06 EST
On Thu, Jun 14, 2018 at 10:56:07PM +0200, Maciej S. Szmigiero wrote:
> At this point we don't know the CPU family the particular patch is for
> since the patch header contains only CPU rev_id, not an explicit family
> number.
patch_fam = 0xf + (mc->processor_rev_id >> 12);
which means, you can do
if (patch_fam != family)
return 0;
like verify_and_add_patch() does before calling verify_patch() with the
correct family of the current CPU.
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.