From owner-cvs-src@FreeBSD.ORG Sun Jul 3 01:26:57 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 B907116B260; Sun, 3 Jul 2005 01:01:23 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25D1844B05; Sun, 3 Jul 2005 00:50:02 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id D7D6D6EA07; Sat, 2 Jul 2005 17:40:31 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id CF6895C97C for ; Sat, 19 Feb 2005 16:55:06 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 8FD46564BE for ; Sun, 20 Feb 2005 00:55:02 +0000 (GMT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id 4FEED16A53D; Sun, 20 Feb 2005 00:54:58 +0000 (GMT) Delivered-To: ps@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id A7CEC16A4D0; Sun, 20 Feb 2005 00:54:55 +0000 (GMT) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1BE016A4CE; Sun, 20 Feb 2005 00:54:54 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B21F143D2D; Sun, 20 Feb 2005 00:54:54 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j1K0sspR080054; Sun, 20 Feb 2005 00:54:54 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1K0ssqU080053; Sun, 20 Feb 2005 00:54:54 GMT (envelope-from rwatson) Message-Id: <200502200054.j1K0ssqU080053@repoman.freebsd.org> From: Robert Watson To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Level: Cc: Subject: cvs commit: src/sys/kern uipc_socket2.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 01:26:57 -0000 X-Original-Date: Sun, 20 Feb 2005 00:54:54 +0000 (UTC) X-List-Received-Date: Sun, 03 Jul 2005 01:26:57 -0000 rwatson 2005-02-20 00:54:54 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/kern uipc_socket2.c Log: Merge uipc_socket2.c:1.142 from HEAD to RELENG_5: date: 2005/02/17 12:53:45; author: rwatson; state: Exp; lines: +1 -1 In sonewconn(), set the new socket's state to show the protocol-provided connection status before inserting the new socket into the listen socket's accept queue, or there might be a race in which another thread wakes up when the accept lock is released, and sees the socket before its state is set correctly. The wakeup still occurs after the accept lock is released. There have been no diagnoses of this bug in real-world systems (as yet). Revision Changes Path 1.137.2.4 +1 -1 src/sys/kern/uipc_socket2.c