]> www.infradead.org Git - users/jedix/linux-maple.git/commit
um: Add stub side of SECCOMP/futex based process handling
authorBenjamin Berg <benjamin@sipsolutions.net>
Mon, 2 Jun 2025 13:00:47 +0000 (15:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 2 Jun 2025 13:17:19 +0000 (15:17 +0200)
commitdac494bf54f764a114f16621ef04f534dd754ac1
tree06b171206f065d004238021b0ae8c58dffb6fbab
parent247ed9e4a6869f3bf07bffd277a341a6833abdbc
um: Add stub side of SECCOMP/futex based process handling

This adds the stub side for the new seccomp process management code. In
this case we do register save/restore through the signal handler
mcontext.

Add special code for handling TLS, which for x86_64 means setting the
FS_BASE/GS_BASE registers while for i386 it means calling the
set_thread_area syscall.

Co-authored-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
Link: https://patch.msgid.link/20250602130052.545733-3-benjamin@sipsolutions.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/include/shared/common-offsets.h
arch/um/include/shared/skas/stub-data.h
arch/um/kernel/skas/stub.c
arch/x86/um/shared/sysdep/stub-data.h [new file with mode: 0644]
arch/x86/um/shared/sysdep/stub.h
arch/x86/um/shared/sysdep/stub_32.h
arch/x86/um/shared/sysdep/stub_64.h