From owner-freebsd-security@FreeBSD.ORG Thu Sep 27 23:30:53 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 88FD5106566C; Thu, 27 Sep 2012 23:30:53 +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 400B88FC0A; Thu, 27 Sep 2012 23:30:53 +0000 (UTC) Received: from ds4.des.no (smtp.des.no [194.63.250.102]) by smtp.des.no (Postfix) with ESMTP id 03CB56B14; Fri, 28 Sep 2012 01:30:52 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id A0FA38489; Fri, 28 Sep 2012 01:30:51 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Pawel Jakub Dawidek References: <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> <20120925102240.GC1571@garage.freebsd.pl> <86mx0eqsgy.fsf@ds4.des.no> Date: Fri, 28 Sep 2012 01:30:50 +0200 In-Reply-To: <86mx0eqsgy.fsf@ds4.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8rg?= =?utf-8?Q?rav=22's?= message of "Tue, 25 Sep 2012 12:58:37 +0200") Message-ID: <86bogrvyad.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 , John Baldwin , Ben Laurie , freebsd-security@freebsd.org, RW , 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, 27 Sep 2012 23:30:53 -0000 I now have two EPIAs, a laptop and a VirtualBox VM gathering data using this patch: http://people.freebsd.org/~des/software/attachtimes.diff If you want to join in, here's how to prepare a USB stick: fetch http://people.freebsd.org/~des/software/attachtimes.tgz dd if=3D/dev/zero of=3D/dev/da0 bs=3D1m count=3D1 gpart create -s gpt da0 gpart bootcode -b /boot/pmbr da0 gpart add -b 34 -s 94 -t freebsd-boot da0 gpart bootcode -p /boot/gptboot -i 1 da0 gpart add -t freebsd-ufs da0 newfs -Uj /dev/da0p2 mount -t ufs /dev/da0p2 /mnt tar zxf attachtimes.tgz -C /mnt sed -i.orig -e 's/ada0/da0/' /mnt/etc/fstab umount /mnt or a VirtualBox disk image: fetch http://people.freebsd.org/~des/software/attachtimes.tgz rm -f attachtimes.img truncate -s 4G attachtimes.img mdconfig attachtimes.img gpart create -s gpt md0 gpart bootcode -b /boot/pmbr md0 gpart add -b 34 -s 94 -t freebsd-boot md0 gpart bootcode -p /boot/gptboot -i 1 md0 gpart add -t freebsd-ufs md0 newfs -Uj /dev/md0p2 mount -t ufs /dev/md0p2 /mnt tar zxf attachtimes.tgz -C /mnt vi /mnt/boot/loader.conf # remove the ata hint umount /mnt mdconfig -d -u 0 VBoxManage convertfromraw attachtimes.img attachtimes.vdi The kernel and binaries in the tarball are 32-bit. The updated patch is at http://people.freebsd.org/~des/software/attachtimes.diff. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no