From owner-cvs-src@FreeBSD.ORG Tue Oct 19 21:35:43 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 11A0316A4CE; Tue, 19 Oct 2004 21:35:43 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E578843D2D; Tue, 19 Oct 2004 21:35:42 +0000 (GMT) (envelope-from rwatson@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 i9JLZgdU002302; Tue, 19 Oct 2004 21:35:42 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9JLZgmv002301; Tue, 19 Oct 2004 21:35:42 GMT (envelope-from rwatson) Message-Id: <200410192135.i9JLZgmv002301@repoman.freebsd.org> From: Robert Watson Date: Tue, 19 Oct 2004 21:35:42 +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/netinet ip_divert.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: Tue, 19 Oct 2004 21:35:43 -0000 rwatson 2004-10-19 21:35:42 UTC FreeBSD src repository Modified files: sys/netinet ip_divert.c Log: Annotate a newly introduced race present due to the unloading of protocols: it is possible for sockets to be created and attached to the divert protocol between the test for sockets present and successful unload of the registration handler. We will need to explore more mature APIs for unregistering the protocol and then draining consumers, or an atomic test-and-unregister mechanism. Revision Changes Path 1.102 +4 -0 src/sys/netinet/ip_divert.c