From owner-freebsd-stable@FreeBSD.ORG Mon May 30 10:06:01 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A84116A41C; Mon, 30 May 2005 10:06:01 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4588C43D4C; Mon, 30 May 2005 10:06:00 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id C8C6F1F160; Mon, 30 May 2005 12:05:59 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 996226563; Mon, 30 May 2005 12:05:59 +0200 (CEST) Date: Mon, 30 May 2005 12:05:59 +0200 From: Marc Olzheim To: Robert Watson Message-ID: <20050530100559.GA52267@stack.nl> References: <20050503150014.GG17096@stack.nl> <20050510131005.GA4083@stack.nl> <20050527124531.U727@fledge.watson.org> <20050527134441.GA94234@stack.nl> <20050527145757.GD94234@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050527145757.GD94234@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Cc: Marc Olzheim , freebsd-stable@freebsd.org, bug-followup@FreeBSD.org Subject: Re: kern/78824: race condition close()ing and read()ing the same socketpair on SMP. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 10:06:01 -0000 On Fri, May 27, 2005 at 04:57:57PM +0200, Marc Olzheim wrote: > > Could you try the attached patch and see if it helps matters? This is > > a slight shot in the dark but closes at least two races in the > > transition of socket state with respect to socket buffer state. > > Yes! This fixes it, on the tag=RELENG_5 date=2005.03.03.00.00.00 kernel. > > I'll try and see if it works on a recent RELENG_5 kernel as well, later. On today's RELENG_5 it works ok too, as far as I can check. :-) Marc