Re: [PATCH 6.18.y] x86/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific
From: H. Peter Anvin
Date: Thu Nov 12 2026 - 19:52:18 EST
Still, I have to wonder if it really makes sense to fold these leaves like this, since they are going to be populated soon. Surely we're not that short of bits?
-hpa
On 2026-11-11 20:57, Borislav Petkov wrote:
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!