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
Ilya Leoshkevich d95fd9838b linux-user: Fix strace output for s390x mmap()
print_mmap() assumes that mmap() receives arguments via memory if
mmap2() is present. s390x (as opposed to s390) does not fit this
pattern: it does not have mmap2(), but mmap() still receives arguments
via memory.

Fix by sharing the detection logic between syscall.c and strace.c.

Cc: qemu-stable@nongnu.org
Fixes: d971040c2d ("linux-user: Fix strace output for old_mmap")
Suggested-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-ID: <20241120212717.246186-1-iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
2 weeks ago
..
aarch64 linux-user/aarch64: Reduce vdso alignment to 4k 3 weeks ago
alpha target/ppc: Fix lxvx/stxvx facility check 2 months ago
arm linux-user/arm: Select vdso for be8 and be32 modes 3 weeks ago
generic linux-user: Split TARGET_PROT_* out of syscall_defs.h 1 year ago
hexagon linux-user,hexagon: move to syscalltbl file 2 months ago
hppa linux-user/hppa: fix -Werror=maybe-uninitialized false-positive 2 months ago
i386 linux-user/i386: Use explicit little-endian LD/ST API 2 months ago
include linux-user: cleanup unused linux-user/include/host directories 1 year ago
loongarch64 linux-user/loongarch64: Reduce vdso alignment to 4k 3 weeks ago
m68k target/ppc: Fix lxvx/stxvx facility check 2 months ago
microblaze target/ppc: Fix lxvx/stxvx facility check 2 months ago
mips target/ppc: Fix lxvx/stxvx facility check 2 months ago
mips64 target/ppc: Fix lxvx/stxvx facility check 2 months ago
openrisc linux-user,openrisc: move to syscalltbl file 2 months ago
ppc linux-user/ppc: Reduce vdso alignment to 4k 3 weeks ago
riscv linux-user,riscv: move to syscalltbl file 2 months ago
s390x target/ppc: Fix lxvx/stxvx facility check 2 months ago
sh4 target/ppc: Fix lxvx/stxvx facility check 2 months ago
sparc target/ppc: Fix lxvx/stxvx facility check 2 months ago
x86_64 target/ppc: Fix lxvx/stxvx facility check 2 months ago
xtensa target/ppc: Fix lxvx/stxvx facility check 2 months ago
cpu_loop-common.h linux-user: Add guest memory layout to exception dump 2 years ago
elfload.c linux-user/arm: Select vdso for be8 and be32 modes 3 weeks ago
errnos.c.inc linux-user: Simplify host <-> target errno conversion using macros 3 years ago
exit.c accel/tcg: Move perf and debuginfo support to tcg/ 10 months ago
fd-trans.c linux-user: handle netlink flag NLA_F_NESTED 2 years 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 7 months ago
flatload.c linux-user/flatload: Take mmap_lock in load_flt_binary() 2 months ago
gen-vdso-elfn.c.inc linux-user: Fix GDB complaining about system-supplied DSO string table index 4 weeks ago
gen-vdso.c linux-user: Fix GDB complaining about system-supplied DSO string table index 4 weeks ago
ioctls.h linux-user: Add ioctl for BLKBSZSET 6 months ago
linux_loop.h linux-user: implement more loop ioctls 3 years ago
linuxload.c {linux,bsd}-user: Introduce get_task_state() 9 months ago
loader.h linux-user: Report AArch64 hwcap2 fields above bit 31 1 year ago
main.c linux-user: Allow custom rt signal mappings 4 weeks ago
meson.build linux-user,hexagon: move to syscalltbl file 2 months ago
mmap.c linux-user: Handle short reads in mmap_h_gt_g 4 months ago
qemu.h linux-user: Drop image_info.alignment 3 weeks ago
semihost.c semihosting: Remove qemu_semihosting_console_outs 2 years ago
signal-common.h linux-user: Allow custom rt signal mappings 4 weeks ago
signal.c linux-user: Allow custom rt signal mappings 4 weeks ago
socket.h Supply missing header guards 6 years ago
strace.c linux-user: Fix strace output for s390x mmap() 2 weeks 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 1 month ago
syscall.c linux-user: Fix strace output for s390x mmap() 2 weeks ago
syscall_defs.h linux-user: Fix strace output for s390x mmap() 2 weeks ago
syscall_types.h linux-user: Add FITRIM ioctl 7 months ago
thunk.c user: Move 'thunk.h' from 'exec/user' to 'user' 7 months ago
trace-events linux-user: Rename user_force_sig tracepoint to match function name 3 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
uaccess.c meson: Make DEBUG_REMAP a meson option 7 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 linux-user: Remove unused handle_vm86_fault 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 2 months ago