glibc/sysdeps/unix/sysv/linux/s390
Stefan Liebler 664f565f9c s390: Set psw addr field in getcontext and friends.
So far if the ucontext structure was obtained by getcontext and co,
the return address was stored in general purpose register 14 as
it is defined as return address in the ABI.

In contrast, the context passed to a signal handler contains the address
in psw.addr field.

If somebody e.g. wants to dump the address of the context, the origin
needs to be known.

Now this patch adjusts getcontext and friends and stores the return address
also in psw.addr field.

Note that setcontext isn't adjusted and it is not supported to pass a
ucontext structure from signal-handler to setcontext.  We are not able to
restore all registers and branching to psw.addr without clobbering one
register.
2023-12-19 11:00:19 +01:00
..
bits
fpu
s390-32 s390: Set psw addr field in getcontext and friends. 2023-12-19 11:00:19 +01:00
s390-64 s390: Set psw addr field in getcontext and friends. 2023-12-19 11:00:19 +01:00
sys Add PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG etc. from Linux 6.4 to sys/ptrace.h 2023-08-08 14:38:22 +00:00
Implies
Makefile
Versions
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
dl-cache.h
dl-procinfo.h
elision-conf.c Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
elision-conf.h
elision-lock.c
elision-timed.c
elision-trylock.c
elision-unlock.c
htm.h Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
ipc_priv.h
jmp-unwind.c
kernel-features.h
kernel_sigaction.h
ldconfig.h
ldd-rewrite.sed
libpthread-compat.c
localplt.data
longjmp_chk.c
mmap_call.h
nldbl-abi.h
readelflib.c
rt-sysdep.S
sa_len.c
sigcontextinfo.h
sysconf.c Fix misspellings in sysdeps/unix -- BZ 25337 2023-05-23 11:59:23 +00:00
sysdep.h s390: Add the clone3 wrapper 2023-07-13 10:26:34 -03:00
tst-ptrace-singleblock.c benchtests: fix warn unused result 2023-06-22 00:21:19 -04:00
ucontext_i.sym
xstatver.h