Subject: kern/13279: sys/compat/linux should rewrite sa_family in sockaddr
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 06/22/2001 08:24:41
>Number:         13279
>Category:       kern
>Synopsis:       sys/compat/linux should rewrite sa_family in sockaddr
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 21 16:23:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jun-ichiro itojun Hagino
>Release:        all releases and current
>Organization:
	itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.5W NetBSD 1.5W (STARFRUIT) #506: Mon Jun 18 12:19:27 JST 2001 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
	sys/compat/linux/linux_socket.c does not try to rewrite sa_family
	in sockaddr args to various syscalls that take sockaddr
	(connect, bind, sendto...).  therefore, when LINUX_AF_xx differs
	from AF_xx, linux emulation won't work.  {LINUX_,}AF_INET6 is
	an example.

	http://www.sigmasoft.com/~openbsd/archive/openbsd-tech/200106/msg00266.html
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: