glibc/hurd
Luca Dariz 6d6a6e2dd2 hurd: save xstate during signal handling
* hurd/Makefile: add new tests
* hurd/test-sig-rpc-interrupted.c: check xstate save and restore in
  the case where a signal is delivered to a thread which is waiting
  for an rpc. This test implements the rpc interruption protocol used
  by the hurd servers. It was so far passing on Debian thanks to the
  local-intr-msg-clobber.diff patch, which is now obsolete.
* hurd/test-sig-xstate.c: check xstate save and restore in the case
  where a signal is delivered to a running thread, making sure that
  the xstate is modified in the signal handler.
* hurd/test-xstate.h: add helpers to test xstate
* sysdeps/mach/hurd/i386/bits/sigcontext.h: add xstate to the
  sigcontext structure.
+ sysdeps/mach/hurd/i386/sigreturn.c: restore xstate from the saved
  context
* sysdeps/mach/hurd/x86/trampoline.c: save xstate if
  supported. Otherwise we fall back to the previous behaviour of
  ignoring xstate.
* sysdeps/mach/hurd/x86_64/bits/sigcontext.h: add xstate to the
  sigcontext structure.
* sysdeps/mach/hurd/x86_64/sigreturn.c: restore xstate from the saved
  context

Signed-off-by: Luca Dariz <luca@orpolo.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Message-ID: <20250319171118.142163-1-luca@orpolo.org>
2025-04-18 02:42:36 +02:00
..
hurd hurd: Replace char foo[1024] with string_t 2025-02-10 20:10:59 +01:00
Depend
Makefile hurd: save xstate during signal handling 2025-04-18 02:42:36 +02:00
Notes
RPC_gsync_wait_intr.c
Versions hurd: Fix using interposable hurd_thread_self 2023-05-19 20:45:51 +02:00
alloc-fd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
catch-exc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
catch-signal.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
compat-20.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ctty-input.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ctty-output.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
dtable.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
exc2signal.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
faultexc.defs
fchroot.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fcntl-internal.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fd-cleanup.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fd-close.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fd-read.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fd-write.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fopenport.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
get-host.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getdport.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
geteuids.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getumask.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurd-raise.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurd.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdauth.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdchdir.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdexec.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdfault.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdfault.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdfchdir.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdhost.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdid.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdinit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdioctl.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdkill.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdlock.c htl: move pthread_mutex_{lock, unlock, trylock, timedlock, clocklock} 2025-01-29 02:32:36 +01:00
hurdlock.h htl: move pthread_mutex_{lock, unlock, trylock, timedlock, clocklock} 2025-01-29 02:32:36 +01:00
hurdlookup.c hurd: Replace char foo[1024] with string_t 2025-02-10 20:10:59 +01:00
hurdmalloc.c hurd: Fix static-PIE startup 2021-12-28 10:28:22 +01:00
hurdmalloc.h
hurdmsg.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdpid.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdports.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdprio.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdrlimit.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdselect.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdsig.c hurd: Use the new __proc_reauthenticate_complete protocol 2025-02-01 18:20:42 +01:00
hurdsock.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdsocket.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdstartup.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
hurdstartup.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
intern-fd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
intr-msg.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
intr-rpc.defs Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
intr-rpc.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
longjmp-ts.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
lookup-at.c hurd: Replace char foo[1024] with string_t 2025-02-10 20:10:59 +01:00
lookup-retry.c Remove eloop-threshold.h 2025-03-21 15:46:48 -03:00
msgportdemux.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
new-fd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
openport.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
path-lookup.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
pid2task.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
port-cleanup.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
port2fd.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ports-get.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ports-set.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
preempt-sig.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
privports.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
report-wait.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
set-hooks.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
set-host.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
setauth.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
seteuids.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
siginfo.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sigunwind.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
stack_chk_fail_local.c
task2pid.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-sig-rpc-interrupted.c hurd: save xstate during signal handling 2025-04-18 02:42:36 +02:00
test-sig-xstate.c hurd: save xstate during signal handling 2025-04-18 02:42:36 +02:00
test-xstate.h hurd: save xstate during signal handling 2025-04-18 02:42:36 +02:00
thread-cancel.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
thread-self.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
trampoline.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
vpprintf.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
xattr.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00