qemu/linux-user/ppc
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/ppc: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
meson.build
signal.c linux-user/ppc: Fix sigmask endianness issue in sigreturn 2024-10-22 13:45:03 -07:00
sockbits.h
syscall.tbl target/ppc: Fix lxvx/stxvx facility check 2024-09-27 10:32:29 +01:00
syscallhdr.sh license: Update deprecated SPDX tag GPL-2.0 to GPL-2.0-only 2024-09-20 10:11:59 +03:00
target_cpu.h
target_elf.h
target_errno_defs.h
target_fcntl.h
target_mman.h
target_prctl.h
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-32.ld
vdso-32.so linux-user/ppc: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
vdso-64.ld
vdso-64.so linux-user/ppc: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
vdso-64le.so linux-user/ppc: Reduce vdso alignment to 4k 2024-11-16 08:42:25 -08:00
vdso-asmoffset.h
vdso.S linux-user: spelling fixes: othe, necesary 2023-11-15 11:09:17 +03:00