From owner-freebsd-security@freebsd.org Sun Mar 19 15:12:41 2017 Return-Path: Delivered-To: freebsd-security@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A1AAD12CBF; Sun, 19 Mar 2017 15:12:41 +0000 (UTC) (envelope-from des@des.no) Received: from smtp.des.no (smtp.des.no [194.63.250.102]) by mx1.freebsd.org (Postfix) with ESMTP id CECE8196; Sun, 19 Mar 2017 15:12:40 +0000 (UTC) (envelope-from des@des.no) Received: from desk.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 96C71B953; Sun, 19 Mar 2017 15:12:39 +0000 (UTC) Received: by desk.des.no (Postfix, from userid 1001) id A357A46A4; Sun, 19 Mar 2017 16:12:29 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Konstantin Belousov Cc: freebsd-security@freebsd.org, Steven Chamberlain , freebsd-hackers@freebsd.org Subject: Re: arc4random weakness References: <20170313220639.GB65190@pyro.eu.org> <20170315130615.GC25448@pyro.eu.org> <5160183b-9778-59aa-6cf9-118014a588eb@freebsd.org> <86k27pz8sy.fsf@desk.des.no> <20170316131946.GN16105@kib.kiev.ua> Date: Sun, 19 Mar 2017 16:12:29 +0100 In-Reply-To: <20170316131946.GN16105@kib.kiev.ua> (Konstantin Belousov's message of "Thu, 16 Mar 2017 15:19:46 +0200") Message-ID: <86wpblnvvm.fsf@desk.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Mar 2017 15:12:41 -0000 Konstantin Belousov writes: > Dag-Erling Sm=C3=B8rgrav writes: > > Wouldn't it be possible to just set up the page entry but leave it > > unmapped, so that it is paged in (and zeroed if necessary) on first > > access? Thus, a process that uses arc4random() and fork()s would not > > incur a penalty until (and unless) the child uses arc4random() too. > This is how the forking code works, without any additional coding, > for the INHERIT_ZERO regions as well. Well then I don't see the problem... I just assumed from ache@'s objection that it wasn't the case. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no