From owner-cvs-all@FreeBSD.ORG Sun Jul 23 12:01:14 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF5D416A4E0; Sun, 23 Jul 2006 12:01:14 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EA7643D45; Sun, 23 Jul 2006 12:01:14 +0000 (GMT) (envelope-from rwatson@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 k6NC1EX1094917; Sun, 23 Jul 2006 12:01:14 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6NC1EtW094916; Sun, 23 Jul 2006 12:01:14 GMT (envelope-from rwatson) Message-Id: <200607231201.k6NC1EtW094916@repoman.freebsd.org> From: Robert Watson Date: Sun, 23 Jul 2006 12:01:14 +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_usrreq.c src/sys/sys unpcb.h 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: Sun, 23 Jul 2006 12:01:14 -0000 rwatson 2006-07-23 12:01:14 UTC FreeBSD src repository Modified files: sys/kern uipc_usrreq.c sys/sys unpcb.h Log: Add two new unpcb flags, UNP_BINDING and UNP_CONNECTING, which will be used to mark UNIX domain sockets as being in the process of binding or connecting. Use these to prevent simultaneous bind or connect operations by multiple threads or processes on the same socket at the same time, which closes race conditions present in the UNIX domain socket implementation since inception. Revision Changes Path 1.178 +34 -16 src/sys/kern/uipc_usrreq.c 1.20 +8 -0 src/sys/sys/unpcb.h