linux/arch/x86/um
Benjamin Berg d6d2f664cb um: Store full CSGSFS and SS register from mcontext
[ Upstream commit cef721e0d5 ]

Doing this allows using registers as retrieved from an mcontext to be
pushed to a process using PTRACE_SETREGS.

It is not entirely clear to me why CSGSFS was masked. Doing so creates
issues when using the mcontext as process state in seccomp and simply
copying the register appears to work perfectly fine for ptrace.

Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Link: https://patch.msgid.link/20250224181827.647129-2-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:02:14 +02:00
..
asm um: remove LDT support 2024-07-03 17:09:49 +02:00
os-Linux um: Store full CSGSFS and SS register from mcontext 2025-05-29 11:02:14 +02:00
shared/sysdep um: remove copy_context_skas0 2024-07-03 17:09:49 +02:00
vdso mm: remove legacy install_special_mapping() code 2024-09-01 20:26:13 -07:00
bugs_32.c um: Add missing headers 2024-04-22 21:46:20 +02:00
bugs_64.c um: Add missing headers 2024-04-22 21:46:20 +02:00
delay.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
elfcore.c um: Add missing headers 2024-04-22 21:46:20 +02:00
fault.c um: Add missing headers 2024-04-22 21:46:20 +02:00
Kconfig x86/um: Kconfig: Fix indentation 2022-07-17 23:13:24 +02:00
Makefile um: Enable preemption in UML 2024-07-03 17:10:43 +02:00
mem_32.c mm: replace vma->vm_flags direct modifications with modifier calls 2023-02-09 16:51:39 -08:00
mem_64.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ptrace_32.c um: Move declarations to proper headers 2024-04-22 21:58:48 +02:00
ptrace_64.c um: Drop support for hosts without SYSEMU_SINGLESTEP support 2024-01-04 23:29:11 +01:00
ptrace_user.c um: get rid of pointless include "..." where include <...> will do 2012-10-09 22:28:45 +02:00
setjmp_32.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
setjmp_64.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00
signal.c um: Fix -Wmissing-prototypes warnings for (rt_)sigreturn 2024-04-30 14:13:38 +02:00
stub_segv.c um: make stub data pages size tweakable 2023-04-20 23:08:43 +02:00
sys_call_table_32.c x86/syscall: Mark exit[_group] syscall handlers __noreturn 2024-06-28 15:23:38 +02:00
sys_call_table_64.c x86/syscall: Mark exit[_group] syscall handlers __noreturn 2024-06-28 15:23:38 +02:00
syscalls_32.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscalls_64.c um: Rely on PTRACE_SETREGSET to set FS/GS base registers 2024-01-05 16:28:56 +01:00
sysrq_32.c um: Remove outdated asm/sysrq.h header 2024-09-12 20:44:11 +02:00
sysrq_64.c um: Remove outdated asm/sysrq.h header 2024-09-12 20:44:11 +02:00
tls_32.c um: remove LDT support 2024-07-03 17:09:49 +02:00
tls_64.c um: Rely on PTRACE_SETREGSET to set FS/GS base registers 2024-01-05 16:28:56 +01:00
user-offsets.c um: Fix -Wmissing-prototypes warnings for __warp_* and foo 2024-04-22 21:58:48 +02:00