Received: from eggs.gnu.org ([2001:4830:134:3::10]:40261) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3WHX-0004cp-Gt for qemu-devel@nongnu.org; Wed, 15 Jan 2014 14:37:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3WHQ-0005l1-MD for qemu-devel@nongnu.org; Wed, 15 Jan 2014 14:37:43 -0500 Message-ID: <52D6E37F.9050404@msgid.tls.msk.ru> Date: Wed, 15 Jan 2014 23:37:35 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1389432851-11420-1-git-send-email-pavel.zbitskiy@gmail.com> <1389432851-11420-3-git-send-email-pavel.zbitskiy@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/3] linux-user: fixed getsockopt() optlen List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: QEMU Trivial , pavel.zbitskiy@gmail.com, QEMU Developers 12.01.2014 23:07, Peter Maydell wrote: > On 11 January 2014 09:34, wrote: >> From: Pavel Zbitskiy >> >> 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. > > This patch and patch 3 are correct fixes, but shouldn't we be > more generally using abi_ulong for every argument we read from > the guest in do_socketcall() ? I think the current fix is worth to apply anyway, regareless of further possible rework. Thanks, /mjt