[PATCH v3 09/11] um: Rely on PTRACE_SETREGSET to set FS/GS base registers

Richard Weinberger richard at nod.at
Fri Jan 5 05:29:55 PST 2024


----- Ursprüngliche Mail -----
> Von: "Benjamin Berg" <benjamin at sipsolutions.net>
> On Fri, 2024-01-05 at 00:05 +0100, Richard Weinberger wrote:
>> On Fri, Nov 10, 2023 at 12:03 PM <benjamin at sipsolutions.net> wrote:
>> > 
>> > From: Benjamin Berg <benjamin at sipsolutions.net>
>> > 
>> > These registers are saved/restored together with the other general
>> > registers using ptrace. In arch_set_tls we then just need to set
>> > the
>> > register and it will be synced back normally.
>> > 
>> > Most of this logic was introduced in commit f355559cf7845 ("[PATCH]
>> > uml:
>> > x86_64 thread fixes"). However, at least today we can rely on
>> > ptrace to
>> 
>> Do you know since when exactly? I don't want to break UML in subtle ways
>> on old kernels.
> 
> To be honest, I don't remember, and I doubt I really understood what I
> was doing.
> 
> Anyway, I now found this commit now, which is contained in v2.6.25:

Okay, 2.6.26 is way older than anything supported. So I'll apply our patch. :-)

Thanks,
//richard



More information about the linux-um mailing list