From owner-freebsd-security@FreeBSD.ORG Wed Sep 26 13:53:29 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 80C621065677; Wed, 26 Sep 2012 13:53:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 534748FC25; Wed, 26 Sep 2012 13:53:29 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 9B5A0B949; Wed, 26 Sep 2012 09:53:28 -0400 (EDT) From: John Baldwin To: Mariusz Gromada Date: Tue, 25 Sep 2012 17:13:00 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p20; KDE/4.5.5; amd64; ; ) References: <20120918211422.GA1400@garage.freebsd.pl> <50620E8E.9020501@gmail.com> In-Reply-To: <50620E8E.9020501@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Message-Id: <201209251713.00800.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 26 Sep 2012 09:53:28 -0400 (EDT) Cc: Ben Laurie , freebsd-security@freebsd.org, RW , Jonathan Anderson , Pawel Jakub Dawidek 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, 26 Sep 2012 13:53:29 -0000 On Tuesday, September 25, 2012 4:05:34 pm Mariusz Gromada wrote: > Our task is to check if there are any autocorrelations in the X(w,t) > process, which means checking if there are any dependencies between > random variables X(w,t1) and X(w,t2) where t1 < t2. Just to state an obvious fact (not sure how that impacts your analysis though): There are, of course, many dependencies among device attach routines since your total time for the attach routine for a bus is going to include all of the time it takes for attach to run on all of the child devices. That is, pci0's attach time includes the attach time of all of it's descendant devices, and a given leaf node's attach time will be accounted for in the attach time of all of its parent nodes up to the root. For example: nexus0 acpi0 pcib0 pci0 ehci0 usbus0 uhub0 uhub3 uhub4 ukbd0 In this portion of my desktop's device tree, all of the devices listed will include the time of ukbd0's attach in their respective attach times. -- John Baldwin