From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zdtk6-0000ao-3g for qemu-devel@nongnu.org; Mon, 21 Sep 2015 01:34:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zdtk2-000598-Tp for qemu-devel@nongnu.org; Mon, 21 Sep 2015 01:34:22 -0400 Received: from mout.gmx.net ([212.227.15.15]:53825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zdtk2-00056Q-Ni for qemu-devel@nongnu.org; Mon, 21 Sep 2015 01:34:18 -0400 Date: Mon, 21 Sep 2015 07:34:15 +0200 From: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= Message-ID: <20150921053415.GA21776@latitude> References: <20150903052726.GD1761@latitude> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Qemu-devel] [PATCH] linux-user: fix cmsg conversion in case of multiple headers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Riku Voipio , Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , QEMU Developers On Fri, Sep 04, 2015 at 01:48:39PM +0100, Peter Maydell wrote: > On 3 September 2015 at 06:27, Jonathan Neuschäfer wrote: > > Currently, __target_cmsg_nxthdr compares a pointer derived from > > target_cmsg against the msg_control field of target_msgh (through > > subtraction). This failed for me when emulating i386 code under x86_64, > > because pointers in the host address space and pointers in the guest > > address space were not the same. This patch passes the initial value of > > target_cmsg into __target_cmsg_nxthdr. > > > > I found and fixed two more related bugs: > > - __target_cmsg_nxthdr now returns the new cmsg pointer instead of the > > old one. > > - tgt_space (in host_to_target_cmsg) doesn't count "sizeof (struct > > target_cmsghdr)" twice anymore. > > > > Signed-off-by: Jonathan Neuschäfer > > Reviewed-by: Peter Maydell Ping. What's the status of this patch? Regards, Jonathan