From owner-svn-src-all@FreeBSD.ORG Sat May 21 22:31:27 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51E821065672; Sat, 21 May 2011 22:31:27 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 2DBFF8FC16; Sat, 21 May 2011 22:31:27 +0000 (UTC) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id C1FE946B06; Sat, 21 May 2011 18:31:26 -0400 (EDT) Date: Sat, 21 May 2011 23:31:26 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Luigi Rizzo In-Reply-To: Message-ID: References: <201011121302.oACD2Qjt009385@svn.freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r215178 - in head: lib/libc/sys sys/kern sys/sys X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 22:31:27 -0000 On Sat, 21 May 2011, Robert Watson wrote: > In fact, the code I pointed at in my previous e-mail will probably panic in > that case, since it improperly dereferences the inpcb's socket field without > first testing for NULL. Or, looking more closely, only because the locking is broken, as it does test inp_socket. However, it really shouldn't need to -- we try quite hard never to dereference inp_socket in the firewall code for this reason. Hence, among other things, propagating so_cred down as inp_cred. Robert