From owner-freebsd-current@FreeBSD.ORG Fri May 30 02:57:54 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 168C537B401; Fri, 30 May 2003 02:57:54 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A92E543F75; Fri, 30 May 2003 02:57:53 -0700 (PDT) (envelope-from davidxu@freebsd.org) Received: from davidw2k (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with SMTP id h4U9voUp019912; Fri, 30 May 2003 02:57:51 -0700 (PDT) (envelope-from davidxu@freebsd.org) Message-ID: <003501c32692$4ae2e3d0$f001a8c0@davidw2k> From: "David Xu" To: "Terry Lambert" References: <20030529164240.X769@gravy.homeunix.net><3ED71E39.A0F8EBC3@mindspring.com> <000701c3268b$86faaa30$f001a8c0@davidw2k> <3ED723FF.CBF45577@mindspring.com> Date: Fri, 30 May 2003 18:00:22 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 cc: Bryan Liesner cc: freebsd-current@freebsd.org Subject: Re: panic: kern/52718 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 09:57:54 -0000 ----- Original Message -----=20 From: "Terry Lambert" To: "David Xu" Cc: "Bryan Liesner" ; Sent: Friday, May 30, 2003 5:27 PM Subject: Re: panic: kern/52718 > David Xu wrote: > > > This was caused by rev. 1.3 of a commit by Jeff Robertson to > > > kern_utmx.c. The problem is that the proc struct is not locked > > > for: > > > > > > FOREACH_THREAD_IN_PROC(td->td_proc, td0) > > > > > > in the lock and unlock. > > > > > > Either lock the proc before and unlock it after this, in both > > > _utmx_lock() and _utmx_unlock(), or revert the code to 1.2. > >=20 > > kern_sig.c has same issue in several places. >=20 > Just looked... YUCK! The Process group code and the code in > the filt_sigdetach() have got to be what you are talking about, > right? >=20 Yes. :( > I'm constantly surprised at some of the race windows I find in > production code (not just FreeBSD), that are just waiting there > to chew someone's leg off the first chance they get... 8-(. >=20 Welcome to fix it. > -- Terry > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org"