From owner-cvs-src@FreeBSD.ORG Sat Aug 30 16:49:52 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD26D1065702; Sat, 30 Aug 2008 16:49:52 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BB5438FC22; Sat, 30 Aug 2008 16:49:52 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.2/8.14.2) with ESMTP id m7UGnqxb068860; Sat, 30 Aug 2008 16:49:52 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7UGnqG1068859; Sat, 30 Aug 2008 16:49:52 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <200808301649.m7UGnqG1068859@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Sat, 30 Aug 2008 16:49:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/netinet tcp_syncache.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 30 Aug 2008 16:49:52 -0000 bz 2008-08-30 16:49:36 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/netinet tcp_syncache.c Log: SVN rev 182482 on 2008-08-30 16:49:36Z by bz MFC: svn r182056, cvs 1.154 tcp_syncache.c Cache the cred locally in _syncache_add() while holding the locks, so we can be sure that it's valid. In case we abort early free it again else put it into the syncache. We need the cred in the syncache to be able to restrict what will be exportet by the sysctl helper function syncache_pcblist() (to netstat) within jails. PR: kern/126493 Revision Changes Path 1.130.2.15 +12 -0 src/sys/netinet/tcp_syncache.c