From owner-svn-src-stable@FreeBSD.ORG Tue Mar 24 10:15:36 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DD2010656C1; Tue, 24 Mar 2009 10:15:36 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 3AEE18FC2D; Tue, 24 Mar 2009 10:15:36 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2OAFabl039705; Tue, 24 Mar 2009 10:15:36 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2OAFaWu039704; Tue, 24 Mar 2009 10:15:36 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <200903241015.n2OAFaWu039704@svn.freebsd.org> From: "David E. O'Brien" Date: Tue, 24 Mar 2009 10:15:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190369 - stable/6/sys/netinet X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 10:15:38 -0000 Author: obrien Date: Tue Mar 24 10:15:35 2009 New Revision: 190369 URL: http://svn.freebsd.org/changeset/base/190369 Log: Follow the lead of r164728 and grab the pcbinfo lock for some additional dereferences of so_pcb. Reviewed by: rwatson Modified: stable/6/sys/netinet/ip_output.c Modified: stable/6/sys/netinet/ip_output.c ============================================================================== --- stable/6/sys/netinet/ip_output.c Tue Mar 24 05:05:53 2009 (r190368) +++ stable/6/sys/netinet/ip_output.c Tue Mar 24 10:15:35 2009 (r190369) @@ -1322,6 +1322,7 @@ ip_ctloutput_pcbinfo(so, sopt, pcbinfo) INP_INFO_WLOCK(pcbinfo); if (so->so_pcb == NULL) { + INP_INFO_WUNLOCK(pcbinfo); error = EINVAL; break; } @@ -1368,7 +1369,9 @@ ip_ctloutput_pcbinfo(so, sopt, pcbinfo) req = mtod(m, caddr_t); len = m->m_len; optname = sopt->sopt_name; + INP_INFO_WLOCK(pcbinfo); if (so->so_pcb == NULL) { + INP_INFO_WUNLOCK(pcbinfo); m_free(m); error = EINVAL; break;