diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2023-11-10 14:03:46 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2024-01-05 18:28:56 +0300 |
commit | 1ca1443570e4085c180ecc657d319c21b22a76f6 (patch) | |
tree | 17c835b4186c46ff36d3281cc526f160dd516dbb /arch/um | |
parent | 21822553a5f424892c12d1664b3c1235b095c6c6 (diff) | |
download | linux-1ca1443570e4085c180ecc657d319c21b22a76f6.tar.xz |
um: Rely on PTRACE_SETREGSET to set FS/GS base registers
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
restore the base registers for us. As such, only the part of the patch
that tracks the FS register for use as thread local storage is actually
needed.
Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/include/shared/os.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/um/include/shared/os.h b/arch/um/include/shared/os.h index 0df646c6651e..aff8906304ea 100644 --- a/arch/um/include/shared/os.h +++ b/arch/um/include/shared/os.h @@ -323,9 +323,6 @@ extern void sigio_broken(int fd); extern int __add_sigio_fd(int fd); extern int __ignore_sigio_fd(int fd); -/* prctl.c */ -extern int os_arch_prctl(int pid, int option, unsigned long *arg2); - /* tty.c */ extern int get_pty(void); |