From owner-freebsd-security@FreeBSD.ORG Wed Oct 3 09:32:47 2012 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0DC07106564A; Wed, 3 Oct 2012 09:32:47 +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 B86748FC0C; Wed, 3 Oct 2012 09:32:46 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id C554D6E3E; Wed, 3 Oct 2012 11:32:45 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 8784B8127; Wed, 3 Oct 2012 11:32:45 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: RW References: <20120918211422.GA1400@garage.freebsd.pl> <20120919231051.4bc5335b@gumby.homeunix.com> <20120920102104.GA1397@garage.freebsd.pl> <201209200758.51924.jhb@freebsd.org> <20120922080323.GA1454@garage.freebsd.pl> <20120922195325.GH1454@garage.freebsd.pl> <505E59DC.7090505@gmail.com> <20120923151706.GN1454@garage.freebsd.pl> <5060D723.6020305@gmail.com> <86r4pqqwnm.fsf@ds4.des.no> <86ipat6n0o.fsf@ds4.des.no> <86y5joiyan.fsf@ds4.des.no> <20121003011607.5553fe48@gumby.homeunix.com> Date: Wed, 03 Oct 2012 11:32:45 +0200 In-Reply-To: <20121003011607.5553fe48@gumby.homeunix.com> (RW's message of "Wed, 3 Oct 2012 01:16:07 +0100") Message-ID: <86626raojm.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: Jonathan Anderson , Pawel Jakub Dawidek , John Baldwin , Ben Laurie , freebsd-security@freebsd.org, 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: Wed, 03 Oct 2012 09:32:47 -0000 RW writes: > It doesn't compute it in a weird way for amd64 and most i386 systems. > Where possible, get_cyclecount is just a wrapper for rdtsc, which I > think it will be for all the systems you quoted (with the possible > exception of virtualbox). No. All the machines I tested it on had TSCs, but not all i386 machines we support do, so get_cyclecount() is always a function call on i386. Look at the code, or heck, disassemble my kernel if you don't believe me. (did you even look at my numbers?) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no