qemu-irix/linux-user
Stefan Weil 424388980d linux-user: Fix trampoline code for CRIS
__put_user can write bytes, words (2 bytes) or longwords (4 bytes).
Here obviously words should have been written, but bytes were written,
so values like 0x9c5f were truncated to 0x5f.

Fix this by changing retcode from uint8_t to to uint16_t in
target_signal_frame and also in the unused rt_signal_frame.

This problem was reported by static code analysis (smatch).

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Riku Voipio <riku.voipio@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
(cherry picked from commit 8cfc114a2f)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2014-02-21 00:34:41 -06:00
..
aarch64 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
alpha linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
arm linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
cris linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
i386 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
m68k linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
microblaze linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
mips linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
mips64 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
openrisc linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
ppc linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
s390x linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
sh4 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
sparc linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
sparc64 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
unicore32 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
x86_64 linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
Makefile.objs
cpu-uname.c linux-user: Don't treat AArch64 cpu names specially 2013-09-10 19:11:28 +01:00
cpu-uname.h
elfload.c linux-user: Add AArch64 support 2013-09-10 19:11:29 +01:00
errno_defs.h
flat.h
flatload.c
ioctls.h linux-user: allow use of TIOCGSID 2013-09-24 10:47:07 +03:00
linux_loop.h
linuxload.c linux-user: add support of binfmt_misc 'O' flag 2013-09-24 10:47:07 +03:00
m68k-sim.c
main.c cpu: Drop cpu_model_str from CPU_COMMON 2013-10-07 11:48:47 +02:00
mmap.c configure: Make NPTL non-optional 2013-07-22 21:54:52 +03:00
qemu.h linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
signal.c linux-user: Fix trampoline code for CRIS 2014-02-21 00:34:41 -06:00
socket.h linux-user: improve target_to_host_sock_type conversion 2013-07-05 15:45:40 +03:00
strace.c linux-user: Don't omit comma for strace of rt_sigaction() 2013-04-05 14:40:54 +02:00
strace.list [v2] linux-user: implement m68k atomic syscalls 2013-09-24 10:47:07 +03:00
syscall.c linux-user: create target_structs header to place ipc_perm and shmid_ds 2014-02-21 00:34:39 -06:00
syscall_defs.h linux-user: Fix stat64 syscall for SPARC64 2013-11-07 07:02:44 +01:00
syscall_types.h
target_flat.h
uaccess.c
vm86.c