From: Pavel Zbitskiy <pavel.zbits...@gmail.com> optlen parameter of getsockopt() of type socklen_t* was read into variable of type socklen_t, that caused zeroing out of upper 4 bytes when running s390x on top of x86_64. This patch changes optlen type to abi_ulong.
Signed-off-by: Pavel Zbitskiy <pavel.zbits...@gmail.com> --- linux-user/syscall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4a14a43..c2cd2b4 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2389,7 +2389,7 @@ static abi_long do_socketcall(int num, abi_ulong vptr) abi_ulong level; abi_ulong optname; abi_ulong optval; - socklen_t optlen; + abi_ulong optlen; if (get_user_ual(sockfd, vptr) || get_user_ual(level, vptr + n) -- 1.7.10.4