You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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>
4 days ago
..
aarch64 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
alpha user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
arm linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
generic linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
hexagon user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
hppa user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
i386 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
include linux-user: cleanup unused linux-user/include/host directories 2 years ago
loongarch64 user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
m68k linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
microblaze linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
mips user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
mips64 target/ppc: Fix lxvx/stxvx facility check 5 months ago
openrisc user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
ppc linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
riscv user: Move 'linux-user/cpu_loop-common.h' -> 'user/cpu_loop.h' 2 months ago
s390x linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
sh4 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
sparc linux-user: Add missing /proc/cpuinfo fields for sparc 1 month ago
x86_64 linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
xtensa linux-user: Move TARGET_SA_RESTORER out of generic/signal.h 4 days ago
elfload.c elfload: Fix alignment when unmapping excess reservation 4 days ago
errnos.c.inc linux-user: Simplify host <-> target errno conversion using macros 4 years ago
exit.c accel/tcg: Move perf and debuginfo support to tcg/ 1 year ago
fd-trans.c linux-user: netlink: Add missing QEMU_IFLA entries 4 weeks ago
fd-trans.h linux-user: fix timerfd read endianness conversion 2 years ago
flat.h linux-user/flatload.c: Remove unused bFLT shared-library and ZFLAT code 10 months ago
flatload.c accel/tcg: Declare mmap_[un]lock() in 'exec/page-protection.h' 2 months ago
gen-vdso-elfn.c.inc linux-user: Fix GDB complaining about system-supplied DSO string table index 4 months ago
gen-vdso.c linux-user: Fix GDB complaining about system-supplied DSO string table index 4 months ago
ioctls.h linux-user: Add ioctl for BLKBSZSET 9 months ago
linux_loop.h linux-user: implement more loop ioctls 3 years ago
linuxload.c {linux,bsd}-user: Introduce get_task_state() 12 months ago
loader.h linux-user: Report AArch64 hwcap2 fields above bit 31 1 year ago
main.c gdbstub: Allow late attachment 2 weeks ago
meson.build linux-user,hexagon: move to syscalltbl file 5 months ago
mmap.c accel/tcg: Move tcg_cflags_has/set() to 'exec/translation-block.h' 2 months ago
qemu.h accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4) 2 months ago
semihost.c semihosting: Remove qemu_semihosting_console_outs 3 years ago
signal-common.h user: Introduce user/signal.h 2 weeks ago
signal.c user: Introduce host_interrupt_signal 2 weeks ago
socket.h
strace.c linux-user: Fix strace output for s390x mmap() 3 months ago
strace.h linux-user: Have do_syscall() use CPUArchState* instead of void* 3 years ago
strace.list linux-user: Trace rt_sigprocmask's sigsets 4 months ago
syscall.c testing and gdbstub updates: 2 weeks ago
syscall_defs.h linux-user: netlink: Add IP_PKTINFO cmsg parsing 4 weeks ago
syscall_types.h linux-user: Add FITRIM ioctl 10 months ago
thunk.c user: Move 'thunk.h' from 'exec/user' to 'user' 10 months ago
trace-events linux-user: Rename user_force_sig tracepoint to match function name 3 years ago
trace.h
uaccess.c meson: Make DEBUG_REMAP a meson option 10 months ago
uname.c linux-user: Remove pointless CPU{ARCH}State casts 3 years ago
uname.h linux-user: Have do_syscall() use CPUArchState* instead of void* 3 years ago
user-internals.h user: Declare cpu_loop() once in 'user/cpu_loop.h' 2 months ago
user-mmap.h linux-user: Move shmat and shmdt implementations to mmap.c 1 year ago
vm86.c linux-user/vm86: Fix compilation with Clang 4 months ago