Received: from eggs.gnu.org ([2001:4830:134:3::10]:40980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze788-0007b5-5r for qemu-devel@nongnu.org; Mon, 21 Sep 2015 15:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze784-0003ab-KJ for qemu-devel@nongnu.org; Mon, 21 Sep 2015 15:52:04 -0400 Received: from jessie.kos.to ([212.47.231.226]:36987 helo=pilvi.kos.to) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze784-0003a2-6L for qemu-devel@nongnu.org; Mon, 21 Sep 2015 15:52:00 -0400 Date: Mon, 21 Sep 2015 12:45:21 -0700 From: Riku Voipio Message-ID: <20150921194521.GA30782@beaming.home> References: <20150903052726.GD1761@latitude> <20150921053415.GA21776@latitude> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable 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: Jonathan =?utf-8?Q?Neusch=C3=A4fer?= , QEMU Developers On Mon, Sep 21, 2015 at 06:13:57AM -0700, Peter Maydell wrote: > On 20 September 2015 at 22:34, Jonathan Neusch=C3=A4fer > wrote: > > On Fri, Sep 04, 2015 at 01:48:39PM +0100, Peter Maydell wrote: > >> On 3 September 2015 at 06:27, Jonathan Neusch=C3=A4fer 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 x= 86_64, > >> > because pointers in the host address space and pointers in the gue= st > >> > address space were not the same. This patch passes the initial va= lue 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=C3=A4fer > >> > >> Reviewed-by: Peter Maydell > > > > Ping. > > > > What's the status of this patch? =20 > It's waiting for Riku to wake up and put it into a linux-user > pull request. My intention was to gather a pull request before this travel, but alas I was stuck with other stuff. I'll get it done next week latest. Riku