On 11/20/24 15:26, Ilya Leoshkevich wrote:
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: [email protected]
Fixes: d971040c2d16 ("linux-user: Fix strace output for old_mmap")
Suggested-by: Richard Henderson <[email protected]>
Signed-off-by: Ilya Leoshkevich <[email protected]>
---

v1: 
https://lore.kernel.org/qemu-devel/[email protected]/
v1 -> v2: Share the detection logic between syscall.c and strace.c
           (Richard).

Reviewed-by: Richard Henderson <[email protected]>

and queued.


r~

Reply via email to