Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-14 Thread Dag-Erling Smørgrav
Ian Lepore i...@freebsd.org writes: Why is the file even in the root filesystem? /var/db seems to be the right place for a transient file needed by the system. We've had both /entropy and /var/db/entropy for years. The former is created by /etc/rc.d/random during shutdown (and as of a few

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Konstantin Belousov
On Sat, Oct 12, 2013 at 12:57:57PM +, Mark Murray wrote: Author: markm Date: Sat Oct 12 12:57:57 2013 New Revision: 256377 URL: http://svnweb.freebsd.org/changeset/base/256377 Log: Merge from project branch. Uninteresting commits are trimmed. Refactor of /dev/random device.

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Mark R V Murray
On 13 Oct 2013, at 08:48, Konstantin Belousov kostik...@gmail.com wrote: On Sat, Oct 12, 2013 at 12:57:57PM +, Mark Murray wrote: Author: markm Date: Sat Oct 12 12:57:57 2013 New Revision: 256377 URL: http://svnweb.freebsd.org/changeset/base/256377 Log: Merge from project branch.

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Mark R V Murray
On 13 Oct 2013, at 08:48, Konstantin Belousov kostik...@gmail.com wrote: On Sat, Oct 12, 2013 at 12:57:57PM +, Mark Murray wrote: Author: markm Date: Sat Oct 12 12:57:57 2013 New Revision: 256377 URL: http://svnweb.freebsd.org/changeset/base/256377 Log: Merge from project branch.

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Konstantin Belousov
On Sun, Oct 13, 2013 at 10:50:17AM +0100, Mark R V Murray wrote: On 13 Oct 2013, at 08:48, Konstantin Belousov kostik...@gmail.com wrote: On Sat, Oct 12, 2013 at 12:57:57PM +, Mark Murray wrote: Author: markm Date: Sat Oct 12 12:57:57 2013 New Revision: 256377 URL:

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Mark R V Murray
On 13 Oct 2013, at 16:13, Konstantin Belousov kostik...@gmail.com wrote: Surely this works, thank you. The rwfile.c content probably should be taken under the #ifdef RANDOM_RWFILE. OK - thanks for the feedback! But I do not see much use for the randomdev_read_file() and

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Ian Lepore
On Sun, 2013-10-13 at 16:18 +0100, Mark R V Murray wrote: On 13 Oct 2013, at 16:13, Konstantin Belousov kostik...@gmail.com wrote: Surely this works, thank you. The rwfile.c content probably should be taken under the #ifdef RANDOM_RWFILE. OK - thanks for the feedback! But I do not see

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Mark R V Murray
On 13 Oct 2013, at 17:18, Ian Lepore i...@freebsd.org wrote: On Sun, 2013-10-13 at 16:18 +0100, Mark R V Murray wrote: On 13 Oct 2013, at 16:13, Konstantin Belousov kostik...@gmail.com wrote: Surely this works, thank you. The rwfile.c content probably should be taken under the #ifdef

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Adrian Chadd
Hi Mark, Can we make the VFS random seeding stuff a compile time option, so we can disable it for the embedded platforms where we'll never use it? Thanks, -adrian On 13 October 2013 10:03, Mark R V Murray m...@grondar.org wrote: On 13 Oct 2013, at 17:18, Ian Lepore i...@freebsd.org

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Mark R V Murray
On 13 Oct 2013, at 19:08, Adrian Chadd adr...@freebsd.org wrote: Hi Mark, Can we make the VFS random seeding stuff a compile time option, so we can disable it for the embedded platforms where we'll never use it? Like 'options RANDOM_RWFILE'? M -- Mark R V Murray signature.asc

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-13 Thread Adrian Chadd
On 13 October 2013 11:29, Mark R V Murray m...@grondar.org wrote: On 13 Oct 2013, at 19:08, Adrian Chadd adr...@freebsd.org wrote: Hi Mark, Can we make the VFS random seeding stuff a compile time option, so we can disable it for the embedded platforms where we'll never use it? Like

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Adrian Chadd
hihi, I've just test booted this on a MIPS board. It doesn't hang at boot waiting for entropy. http://people.freebsd.org/~adrian/mips/20131012-ar9344-boot-1.txt Thanks! -adrian On 12 October 2013 05:57, Mark Murray ma...@freebsd.org wrote: Author: markm Date: Sat Oct 12 12:57:57 2013

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Mark R V Murray
On 12 Oct 2013, at 17:27, Adrian Chadd adr...@freebsd.org wrote: hihi, I've just test booted this on a MIPS board. It doesn't hang at boot waiting for entropy. http://people.freebsd.org/~adrian/mips/20131012-ar9344-boot-1.txt Thanks! You are most welcome! M -- Mark R V Murray

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Mark R V Murray
On 12 Oct 2013, at 17:35, Teske, Devin devin.te...@fisglobal.com wrote: Can you maybe test with ZFS + Geli? I'm concerned because we told it to use random(4) instead of urandom(4). I hope there's enough entropy when creating the geli stuff that said process doesn't hang. I think DES's

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Teske, Devin
On Oct 12, 2013, at 9:39 AM, Mark R V Murray wrote: On 12 Oct 2013, at 17:35, Teske, Devin devin.te...@fisglobal.com wrote: Can you maybe test with ZFS + Geli? I'm concerned because we told it to use random(4) instead of urandom(4). I hope there's enough entropy when creating the geli

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Teske, Devin
On Oct 12, 2013, at 9:46 AM, Mark R V Murray wrote: On 12 Oct 2013, at 17:44, Teske, Devin devin.te...@fisglobal.com wrote: You know... for years I've been compiling a custom apache for $work and using the --with-random=/dev/urandom flag. And then recently in the past couple years in

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Dag-Erling Smørgrav
Teske, Devin devin.te...@fisglobal.com writes: Can you maybe test with ZFS + Geli? I'm concerned because we told it to use random(4) instead of urandom(4). I hope there's enough entropy when creating the geli stuff that said process doesn't hang. /dev/urandom is a symlink to /dev/random.

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Dag-Erling Smørgrav
Adrian Chadd adr...@freebsd.org writes: I've just test booted this on a MIPS board. It doesn't hang at boot waiting for entropy. http://people.freebsd.org/~adrian/mips/20131012-ar9344-boot-1.txt Do me a favor, rebuild your kernel with option DEBUG_RANDOM (to save time, just add #define

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Dag-Erling Smørgrav
Dag-Erling Smørgrav d...@des.no writes: Do me a favor, rebuild your kernel with option DEBUG_RANDOM (to save time, just add #define DEBUG_RANDOM 1 manually to opt_random.h and do a KERNFAST build) and post the dmesg. Sorry, I meant RANDOM_DEBUG. DES -- Dag-Erling Smørgrav - d...@des.no

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Adrian Chadd
http://people.freebsd.org/~adrian/mips/20131012-ar9344-boot-2.txt -a On 12 October 2013 13:05, Dag-Erling Smørgrav d...@des.no wrote: Dag-Erling Smørgrav d...@des.no writes: Do me a favor, rebuild your kernel with option DEBUG_RANDOM (to save time, just add #define DEBUG_RANDOM 1

Re: svn commit: r256377 - in head: etc/defaults etc/rc.d share/examples/kld/random_adaptor share/man/man4 sys/boot/forth sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe

2013-10-12 Thread Dag-Erling Smørgrav
Adrian Chadd adr...@freebsd.org writes: http://people.freebsd.org/~adrian/mips/20131012-ar9344-boot-2.txt Not stellar: random_yarrow_reseed(): fast: 0 68 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 random_yarrow_reseed(): slow: 0 68 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 Can you apply the following patch and try