Re: [PATCH 6.18.y] x86/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific

From: Borislav Petkov

Date: Thu Nov 12 2026 - 00:12:57 EST


On Wed, Nov 11, 2026 at 08:06:21AM -0800, Breno Leitao wrote:
> From: "Borislav Petkov (AMD)" <bp@xxxxxxxxx>
>
> commit ddde4abaa0ecc8395e0fcfa3e92f65d481890cc8 upstream.
>
> That cpuinfo_x86.x86_capability[] element was supposed to mirror CPUID flags
> from CPUID_0x80000007_EBX but that leaf has still to this day only three bits
> defined in it. So move those bits to scattered.c and free the capability
> element for synthetic flags.
>
> No functional changes.
>
> [ leitao: Required on 6.18.y: the 6.18.61 backport of ae1d2082d93b
> ("x86/bugs: Adapt SRSO mitigation to Zen6") put BTB_CTX_ISOLATION in
> word 17, which here still mirrors CPUID 0x80000007 EBX. The flag is
> then falsely set on Zen3-5, and Zen5 silently loses its guest->host
> SRSO mitigation. ]

Good catch, dang. That's nasty one.

Thanks!

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette