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

Richard Weinberger richard.weinberger at gmail.com
Thu Jan 4 15:05:24 PST 2024


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.

-- 
Thanks,
//richard



More information about the linux-um mailing list