qemu-cr16/linux-user
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
..
aarch64 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
alpha
arm linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
generic linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
hexagon
hppa
i386 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
include
loongarch64
m68k linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
microblaze linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
mips
mips64
openrisc
ppc linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
riscv
s390x linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
sh4 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
sparc linux-user: Add missing /proc/cpuinfo fields for sparc 2025-01-16 20:57:17 -08:00
x86_64 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
xtensa linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 2025-02-18 08:29:03 -08:00
elfload.c elfload: Fix alignment when unmapping excess reservation 2025-02-18 08:29:03 -08:00
errnos.c.inc
exit.c
fd-trans.c linux-user: netlink: Add missing QEMU_IFLA entries 2025-01-24 13:58:40 +01:00
fd-trans.h
flat.h
flatload.c
gen-vdso-elfn.c.inc
gen-vdso.c
ioctls.h
linux_loop.h
linuxload.c
loader.h
main.c gdbstub: Allow late attachment 2025-02-10 13:47:59 +00:00
meson.build
mmap.c accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h' 2024-12-20 17:44:57 +01:00
qemu.h
semihost.c
signal-common.h user: Introduce user/signal.h 2025-02-10 13:47:59 +00:00
signal.c user: Introduce host_interrupt_signal 2025-02-10 13:47:59 +00:00
socket.h
strace.c
strace.h
strace.list
syscall.c testing and gdbstub updates: 2025-02-10 13:26:17 -05:00
syscall_defs.h linux-user: netlink: Add IP_PKTINFO cmsg parsing 2025-01-24 13:58:40 +01:00
syscall_types.h
thunk.c
trace-events
trace.h
uaccess.c
uname.c
uname.h
user-internals.h
user-mmap.h
vm86.c