From owner-freebsd-emulation Tue Oct 23 21:53:11 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by hub.freebsd.org (Postfix) with ESMTP id 8646237B401 for ; Tue, 23 Oct 2001 21:53:09 -0700 (PDT) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.11.4/8.11.4) with ESMTP id f9O4r9o09174; Tue, 23 Oct 2001 21:53:09 -0700 (PDT) (envelope-from marcel@kayak.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.11.6/8.11.3) id f9O4rsp02053; Tue, 23 Oct 2001 21:53:54 -0700 (PDT) (envelope-from marcel) Date: Tue, 23 Oct 2001 21:53:54 -0700 From: Marcel Moolenaar To: Dag-Erling Smorgrav Cc: Martin Blapp , freebsd-emulation@FreeBSD.ORG Subject: Re: linux_connect() broken for linux_base-7 Message-ID: <20011023215354.A2044@dhcp01.pn.xcllnt.net> References: <20011022204208.Q29117-200000@levais.imp.ch> <20011022214353.A55317@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.21i Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Oct 23, 2001 at 02:00:20PM +0200, Dag-Erling Smorgrav wrote: > Marcel Moolenaar writes: > > \begin{quote} > > Just FYI, the linux_base-7 resolver library uses sockaddr_in6's with > > AF_INET and just the inet part filled in, but FreeBSD doesn't allow > > using the wrong sized sockaddr. This is going to require some > > serious hackery in the Linux compatability stuff, since it's > > the FreeBSD syscall's responsibility to copyin() the socket address > > argument; if the compatability stuff wants to modify it it's going > > to have to find somewhere that it can copyin() from to stash the > > modified one... > > \end{quote} > > That would be the stackgap, right? Yes. > > In a following email he supplied a patch: > > It won't build on Alpha. You need to move linux_to_bsd_namelen() out > of the #indef __alpha__ block. Apart from that, it looks right; I > haven't tested it though. Me neither. I just forwarded it :-) -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message