Re: [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-10-02 Thread Theodore Ts'o
On Wed, Oct 02, 2013 at 07:18:40PM +0200, Hannes Frederic Sowa wrote: > > I agree. I will look if this is easily possible for secure_seq and > syncookies but depending on the data structure and its size it is a much > harder thing to do. I wanted to try the low-hanging fruits first. ;) To use syn

Re: [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-10-02 Thread Hannes Frederic Sowa
Hi! Thanks for looking into this! On Wed, Oct 02, 2013 at 11:10:18AM -0400, Theodore Ts'o wrote: > On Wed, Sep 25, 2013 at 11:00:34AM +0200, Hannes Frederic Sowa wrote: > > [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized > > > > We want to use goo

Re: [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-10-02 Thread Theodore Ts'o
On Wed, Sep 25, 2013 at 11:00:34AM +0200, Hannes Frederic Sowa wrote: > [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized > > We want to use good entropy for initializing the secret keys used for > hashing in the core network stack. So busy wait before extracting r

Re: [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-09-25 Thread Hannes Frederic Sowa
On Wed, Sep 25, 2013 at 05:06:50AM -0700, Eric Dumazet wrote: > On Wed, 2013-09-25 at 11:00 +0200, Hannes Frederic Sowa wrote: > > > /* > > + * Busy loop until the nonblocking_pool is intialized and return > > + * random data in buf of size nbytes. > > + * > > + * This is used by the network stac

Re: [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-09-25 Thread Eric Dumazet
On Wed, 2013-09-25 at 11:00 +0200, Hannes Frederic Sowa wrote: > /* > + * Busy loop until the nonblocking_pool is intialized and return > + * random data in buf of size nbytes. > + * > + * This is used by the network stack to defer the extraction of > + * entropy from the nonblocking_pool until t

[PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized

2013-09-25 Thread Hannes Frederic Sowa
or patch from Hannes Frederic Sowa. > > Reported-by: Hannes Frederic Sowa > Signed-off-by: Eric Dumazet Perhaps we can even do a bit better? This patch is a RFC and I could split the random and network parts if needed. [PATCH RFC] random: introduce get_random_bytes_busy_wait_initialized W