From owner-cvs-src-old@FreeBSD.ORG Tue Feb 23 00:40:20 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 018B11065695 for ; Tue, 23 Feb 2010 00:40:20 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E47B68FC12 for ; Tue, 23 Feb 2010 00:40:19 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o1N0eJKi070339 for ; Tue, 23 Feb 2010 00:40:19 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o1N0eJJQ070338 for cvs-src-old@freebsd.org; Tue, 23 Feb 2010 00:40:19 GMT (envelope-from delphij@repoman.freebsd.org) Message-Id: <201002230040.o1N0eJJQ070338@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to delphij@repoman.freebsd.org using -f From: Xin LI Date: Tue, 23 Feb 2010 00:40:02 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/compat/linux linux_socket.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2010 00:40:20 -0000 delphij 2010-02-23 00:40:02 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/compat/linux linux_socket.c Log: SVN rev 204232 on 2010-02-23 00:40:02Z by delphij MFC r203728: - Return EAFNOSUPPORT instead of EINVAL for unsupported address family, this matches the Linux behavior. - Check if we have sufficient space allocated for socket structure, which fixes a buffer overflow when wrong length is being passed into the emulation layer. [1] PR: kern/138860 Submitted by: Mateusz Guzik Reported by: Alexander Best [1] Revision Changes Path 1.101.2.3 +7 -2 src/sys/compat/linux/linux_socket.c