From owner-freebsd-hackers Fri Jun 9 17: 8: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 56CA337C676; Fri, 9 Jun 2000 17:08:00 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e5A07wA11910; Fri, 9 Jun 2000 17:07:58 -0700 (PDT) Date: Fri, 9 Jun 2000 17:07:58 -0700 From: Alfred Perlstein To: hackers@FreeBSD.ORG Cc: green@FreeBSD.ORG Subject: Re: uidinfo has many race conditions. Message-ID: <20000609170758.O18462@fw.wintelcom.net> References: <20000609164408.N18462@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000609164408.N18462@fw.wintelcom.net>; from bright@wintelcom.net on Fri, Jun 09, 2000 at 04:44:08PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Alfred Perlstein [000609 16:45] wrote: > hi, > > Is it just me or does the fact that uidinfo structures (see > kern/kern_proc.c) are allocated with M_WAITOK after finding them > fails and then inserted into the uidhash structure a race condition? > > Index: kern_proc.c > =================================================================== Yes, I know i forgot to put the created ones back into the list, I was just a bit flusteres after reading over the code. I'll have some more later. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message