From owner-cvs-all@FreeBSD.ORG Mon May 10 08:07:24 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 484AB16A4CE; Mon, 10 May 2004 08:07:24 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B99243D5D; Mon, 10 May 2004 08:07:24 -0700 (PDT) (envelope-from csjp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i4AF7NGe010887; Mon, 10 May 2004 08:07:23 -0700 (PDT) (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i4AF7N6L010886; Mon, 10 May 2004 08:07:23 -0700 (PDT) (envelope-from csjp) Message-Id: <200405101507.i4AF7N6L010886@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Mon, 10 May 2004 08:07:23 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net rtsock.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2004 15:07:24 -0000 csjp 2004/05/10 08:07:23 PDT FreeBSD src repository Modified files: sys/net rtsock.c Log: Zero the un-used portions of the struct sockaddr data before sending it back to userspace, so it does not break bind(2) on raw sockets in jails. Currently some processes, like traceroute(8) construct a routing request to determine its source address based on the destination. This sockaddr data is fed directly to bind(2). When bind calls ifa_ifwithaddr(9) to make sure the address exists on the interface, the comparison will fail causing bind(2) to return EADDRNOTAVAIL if the data wasnt zero'ed before initialization. Approved by: bmilekic (mentor) Revision Changes Path 1.110 +1 -0 src/sys/net/rtsock.c