From owner-freebsd-current@FreeBSD.ORG Sat Nov 12 15:56:32 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 528E0106566B; Sat, 12 Nov 2011 15:56:32 +0000 (UTC) (envelope-from das@freebsd.org) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 191228FC0A; Sat, 12 Nov 2011 15:56:31 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.5/8.14.2) with ESMTP id pACFfaEl021589; Sat, 12 Nov 2011 10:41:36 -0500 (EST) (envelope-from das@freebsd.org) Received: (from das@localhost) by zim.MIT.EDU (8.14.5/8.14.2/Submit) id pACFfZN5021588; Sat, 12 Nov 2011 10:41:35 -0500 (EST) (envelope-from das@freebsd.org) Date: Sat, 12 Nov 2011 10:41:35 -0500 From: David Schultz To: Andrey Chernov , current@freebsd.org, secteam@freebsd.org Message-ID: <20111112154135.GA21512@zim.MIT.EDU> Mail-Followup-To: Andrey Chernov , current@freebsd.org, secteam@freebsd.org References: <20080916140319.GA34447@nagual.pp.ru> <20080916201932.GA59781@zim.MIT.EDU> <20111112102241.GA75396@vniz.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111112102241.GA75396@vniz.net> Cc: Subject: Re: Is fork() hook ever possible? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 12 Nov 2011 15:56:32 -0000 On Sat, Nov 12, 2011, Andrey Chernov wrote: > On Tue, Sep 16, 2008 at 04:19:32PM -0400, David Schultz wrote: > > secteam@ already agreed to the idea of solving the fork problem as > > in OpenBSD over a month ago. > > On Wed, Sep 17, 2008 at 12:50:25PM +0400, Andrey Chernov wrote: > > I agree with your patch (BTW you can remove unneded #define RANDOMDEV). > > The question remains: why you don't commit this patch all that 3 > years, having secteam@ and mine agreements too? Sorry, but in the three years that have intervened, my brain has paged out the relevant context. As I recall, there were issues with some of your changes to arc4random() and I proposed tracking OpenBSD's implementation more closely. If everyone's in agreement on that, please go ahead and commit the changes. On a related note, I recall that the biggest issue is that getpid() overhead now dominates the cost of arc4random(). The title of this thread suggests a simple solution!