qemu-cr16/linux-user/aarch64
Andreas Schwab 513823e752 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h
SA_RESTORER and the associated sa_restorer field of struct sigaction are
an obsolete feature, not expected to be used by future architectures.
They are also absent on RISC-V, LoongArch, Hexagon and OpenRISC, but
defined due to their use of generic/signal.h.  This leads to corrupted
data and out-of-bounds accesses.

Move the definition of TARGET_SA_RESTORER out of generic/signal.h into the
target_signal.h files that need it.  Note that m68k has the sa_restorer
field, but does not use it and does not define SA_RESTORER.

Reported-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <mvmed060xc9.fsf@suse.de>
2025-02-18 08:29:03 -08:00
..
cpu_loop.c user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2024-12-20 17:44:57 +01:00
Makefile.vdso linux-user/aarch64: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
meson.build linux-user,aarch64: move to syscalltbl file 2024-09-22 09:30:18 +02:00
mte_user_helper.c target/arm: Factor out code for setting MTE TCF0 field 2024-07-05 12:35:14 +01:00
mte_user_helper.h linux-user/aarch64: Include missing 'user/abitypes.h' header 2024-12-20 17:44:56 +01:00
signal.c linux-user: Move tswap_siginfo out of target code 2024-03-13 11:43:52 +00:00
sockbits.h
syscall_64.tbl linux-user,aarch64: move to syscalltbl file 2024-09-22 09:30:18 +02:00
syscall_nr.h linux-user,aarch64: move to syscalltbl file 2024-09-22 09:30:18 +02:00
syscallhdr.sh linux-user,aarch64: move to syscalltbl file 2024-09-22 09:30:18 +02:00
target_cpu.h
target_elf.h
target_errno_defs.h
target_fcntl.h
target_flat.h
target_mman.h
target_prctl.h target/arm: Factor out code for setting MTE TCF0 field 2024-07-05 12:35:14 +01:00
target_proc.h
target_resource.h
target_signal.h linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
target_structs.h
target_syscall.h
termbits.h
vdso-be.so linux-user/aarch64: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
vdso-le.so linux-user/aarch64: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
vdso.ld
vdso.S linux-user/aarch64: Add padding before __kernel_rt_sigreturn 2024-02-03 16:46:10 +10:00