qemu-patch-raspberry4/linux-user/sparc
Peter Maydell b8ae597f0e linux-user/sparc: Fix errors in target_ucontext structures
The various structs that make up the SPARC target_ucontext had some
errors:
 * target structures must not include fields which are host pointers,
   which might be the wrong size.  These should be abi_ulong instead
 * because we don't have the 'long double' part of the mcfpu_fregs
   union in our version of the target_mc_fpu struct, we need to
   manually force it to be 16-aligned

In particular, the lack of 16-alignment caused sparc64_get_context()
and sparc64_set_context() to read and write all the registers at the
wrong offset, which triggered a guest glibc stack check in
siglongjmp:
  *** longjmp causes uninitialized stack frame ***: terminated
when trying to run bash.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20201105212314.9628-2-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2020-11-10 07:52:55 +01:00
..
cpu_loop.c linux-user/sparc64: Fix the handling of window spill trap 2020-06-29 13:00:23 +02:00
meson.build meson: linux-user 2020-08-21 06:30:38 -04:00
signal.c linux-user/sparc: Fix errors in target_ucontext structures 2020-11-10 07:52:55 +01:00
sockbits.h linux-user: copy sparc/sockbits.h definitions from linux 2018-05-25 10:10:55 +02:00
syscall.tbl linux-user: update syscall.tbl to Linux 5.9-rc7 2020-10-26 11:39:23 +01:00
syscallhdr.sh linux-user, sparc, sparc64: add syscall table generation support 2020-03-20 16:02:00 +01:00
target_cpu.h linux-user/sparc: Fix cpu_clone_regs_* 2019-11-06 13:44:19 +01:00
target_elf.h linux-user: Move CPU type name selection to a function 2018-02-25 17:27:41 +01:00
target_errno.h linux-user: add sparc/sparc64 specific errno 2018-05-11 19:05:31 +02:00
target_fcntl.h linux-user: move sparc/sparc64 fcntl definitions to sparc/target_fcntl.h 2018-06-04 01:30:44 +02:00
target_signal.h linux-user: move sparc signal definitions to sparc/target_signal.h 2018-06-04 01:30:44 +02:00
target_structs.h linux-user: Clean up target_structs.h header guards 2016-07-12 16:19:16 +02:00
target_syscall.h linux-user: Add strace support for printing arguments of syscalls used to lock and unlock memory 2020-08-27 12:29:50 +02:00
termbits.h linux-user: Add missing termbits types and values definitions 2020-08-27 12:29:50 +02:00