From owner-cvs-src@FreeBSD.ORG Mon Aug 23 12:41:30 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0010F16A4CE; Mon, 23 Aug 2004 12:41:29 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D651343D3F; Mon, 23 Aug 2004 12:41:29 +0000 (GMT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7NCfTOT076311; Mon, 23 Aug 2004 12:41:29 GMT (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7NCfTJx076310; Mon, 23 Aug 2004 12:41:29 GMT (envelope-from des) Message-Id: <200408231241.i7NCfTJx076310@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Mon, 23 Aug 2004 12:41:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/linux linux_socket.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2004 12:41:30 -0000 des 2004-08-23 12:41:29 UTC FreeBSD src repository Modified files: sys/compat/linux linux_socket.c Log: Don't try to translate the control message unless we're certain it's valid; otherwise a caller could trick us into changing any 32-bit word in kernel memory to LINUX_SOL_SOCKET (0x00000001) if its previous value is SOL_SOCKET (0x0000ffff). MFC after: 3 days Revision Changes Path 1.52 +2 -1 src/sys/compat/linux/linux_socket.c