From owner-cvs-all@FreeBSD.ORG Wed Nov 22 23:54:29 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B0EB716A407; Wed, 22 Nov 2006 23:54:29 +0000 (UTC) (envelope-from mohans@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10ECA43D4C; Wed, 22 Nov 2006 23:53:58 +0000 (GMT) (envelope-from mohans@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAMNsTRT099639; Wed, 22 Nov 2006 23:54:29 GMT (envelope-from mohans@repoman.freebsd.org) Received: (from mohans@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAMNsT94099638; Wed, 22 Nov 2006 23:54:29 GMT (envelope-from mohans) Message-Id: <200611222354.kAMNsT94099638@repoman.freebsd.org> From: Mohan Srinivasan Date: Wed, 22 Nov 2006 23:54:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern uipc_socket.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2006 23:54:29 -0000 mohans 2006-11-22 23:54:29 UTC FreeBSD src repository Modified files: sys/kern uipc_socket.c Log: Fix a race in soclose() where connections could be queued to the listening socket after the pass that cleans those queues. This results in these connections being orphaned (and leaked). The fix is to clean up the so queues after detaching the socket from the protocol. Thanks to ups and jhb for discussions and a thorough code review. Revision Changes Path 1.286 +26 -22 src/sys/kern/uipc_socket.c