From owner-freebsd-security@FreeBSD.ORG Thu Sep 20 09:20:57 2012 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D11351065675; Thu, 20 Sep 2012 09:20:57 +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 8BE8D8FC14; Thu, 20 Sep 2012 09:20:57 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 98D956221; Thu, 20 Sep 2012 11:20:56 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 69BD786EF; Thu, 20 Sep 2012 11:20:56 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: RW References: <20120918211422.GA1400@garage.freebsd.pl> <20120919192923.GA1416@garage.freebsd.pl> <20120919205331.GE1416@garage.freebsd.pl> <20120919231051.4bc5335b@gumby.homeunix.com> Date: Thu, 20 Sep 2012 11:20:56 +0200 In-Reply-To: <20120919231051.4bc5335b@gumby.homeunix.com> (RW's message of "Wed, 19 Sep 2012 23:10:51 +0100") Message-ID: <86ipb9t5hj.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-security@freebsd.org, Jonathan Anderson , Pawel Jakub Dawidek , Mariusz Gromada Subject: Re: Collecting entropy from device_attach() times. X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 09:20:57 -0000 RW writes: > You're basing a model for all devices on a single sound card, that > doesn't seem safe to me. Isn't it possible that a device could take a > long and well defined time? Please understand that the timers used here have a resolution of around 1e-8 to 1e-10 seconds. You may be able to predict the first six digits with reasonable accuracy - in fact, the first four or five will almost always be 0, except for devices with moving parts - but anything beyond that is a crapshoot, even in a virtual machine. (I am speaking, of course, of decimal digits - multiply by 3.322 for the corresponding number of bits) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no