Re: [PATCH] x86/cpufeatures: Correct LKGS feature flag description
From: H. Peter Anvin
Date: Wed Oct 15 2025 - 23:12:29 EST
On October 15, 2025 8:49:11 AM PDT, Borislav Petkov <bp@xxxxxxxxx> wrote:
>On Wed, Oct 15, 2025 at 08:44:55AM -0700, H. Peter Anvin wrote:
>> >> Except that that is also wrong, because that's not all of what the instruction does. "Load user space GS" is really what it does, despite the initiate historical naming.
>> >>
>> >
>> >Do you mean the load of GS attributes by LKGS is still missing?
>>
>> Yes. It's really a modified MOV GS,... instruction that loads the base, limit, selector, and attributes; it just loads the base into a different place.
>
>Ok, "Load user space GS base" it is. Considering how you can't load any other
>GS.base due to it GPing for CPL > 0.
>
No, "load user space GS." It loads everything, not just the base.