]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
x86/microcode/AMD: Fix Entrysign revision check for Zen5/Strix Halo
authorRong Zhang <i@rong.moe>
Mon, 29 Dec 2025 18:22:21 +0000 (02:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:14:50 +0000 (10:14 +0100)
commit 150b1b97e27513535dcd3795d5ecd28e61b6cb8c upstream.

Zen5 also contains family 1Ah, models 70h-7Fh, which are mistakenly missing
from cpu_has_entrysign(). Add the missing range.

Fixes: 8a9fb5129e8e ("x86/microcode/AMD: Limit Entrysign signature checking to known generations")
Signed-off-by: Rong Zhang <i@rong.moe>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@kernel.org
Link: https://patch.msgid.link/20251229182245.152747-1-i@rong.moe
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/amd.c

index 7e997360223b2e9b97db8b214d403f695c9e89a5..e6a6075269de603f76f3a8a8288bf559df2c99f3 100644 (file)
@@ -235,7 +235,7 @@ static bool cpu_has_entrysign(void)
        if (fam == 0x1a) {
                if (model <= 0x2f ||
                    (0x40 <= model && model <= 0x4f) ||
-                   (0x60 <= model && model <= 0x6f))
+                   (0x60 <= model && model <= 0x7f))
                        return true;
        }