From owner-freebsd-security@FreeBSD.ORG Mon Sep 10 20:28:58 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 61E3F106566C; Mon, 10 Sep 2012 20:28:58 +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 197728FC08; Mon, 10 Sep 2012 20:28:57 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 488426303; Mon, 10 Sep 2012 22:28:57 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 0EC478A5F; Mon, 10 Sep 2012 22:28:56 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Doug Barton References: <50450F2A.10708@FreeBSD.org> <20120903203505.GN1464@x96.org> <50451D6E.30401@FreeBSD.org> <20120903214638.GO1464@x96.org> <50453686.9090100@FreeBSD.org> <20120904220754.GA3643@server.rulingia.com> <20120906174247.GB13179@dragon.NUXI.org> <20120906230157.5307a21f@gumby.homeunix.com> <20120906224703.GD89120@x96.org> <20120907015157.GA29497@server.rulingia.com> <20120910135218.GA68128@dragon.NUXI.org> <504E343A.4020802@FreeBSD.org> <86pq5tu1zr.fsf@ds4.des.no> <504E3DAB.3090000@FreeBSD.org> <86fw6pu0l0.fsf@ds4.des.no> <504E4765.1020909@FreeBSD.org> Date: Mon, 10 Sep 2012 22:28:56 +0200 In-Reply-To: <504E4765.1020909@FreeBSD.org> (Doug Barton's message of "Mon, 10 Sep 2012 13:02:45 -0700") Message-ID: <864nn5tyev.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: Arthur Mesh , freebsd-rc@freebsd.org, freebsd-security@freebsd.org, RW , Xin Li Subject: Re: svn commit: r239569 - head/etc/rc.d 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: Mon, 10 Sep 2012 20:28:58 -0000 Doug Barton writes: > 3. Write a script to reboot, and once the system is fully booted do 'dd > if=3D/dev/random of=3Dsaved-random-out.$i count=3D4096' then reboot again > immediately. Values of i from 1 to 10,000 ought to do it. > 4. sha256 the saved-random-out files and see how many duplicates there ar= e. I doubt there will be any exact duplicates, but closer statistical analysis might reveal a slight bias. For instance, if my intuition serves, the Hamming distance between any pair of samples, when averaged over a large number of samples, should be half the sample length. I'm sure a professional statistician or cryptanalyst could come up with more accurate ways of detecting bias. The script in question, by the way, could simply be a few extra lines at the end of /etc/rc.d/initrandom; and I'd do it in a VM, to reduce cycle time to a minimum. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no