Re: [PATCH] Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <alan@...>
Cc: <andi@...>, <jeff@...>, <netdev@...>, <linux-kernel@...>, <akpm@...>, <jesse.brandeburg@...>, <cpeterso@...>, <tpmdd-devel@...>, <tpm@...>, <herbert@...>
Date: Friday, May 16, 2008 - 3:47 pm

From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Fri, 16 May 2008 10:56:35 +0100


This does remind me of a deficiency in the current hwrng driver layer
that I noticed while working on the Niagara2 RNG driver.

If the device allows tweaking of settings (selecting different voltage
oscillators per entropy source in my case) we really need some way to
test the randomness generated by different setting so that we can make
an optimal choice.

One common scheme is to compute the Renyi entropy for blocks of random
data using the various settings, something else we don't want in the
kernel.

So we would need some kind of interface so that userland could handle
something like that.  Something like:

1) Export number of possible configurations to userspace
2) Allow userspace to simply iterate over the configurations,
   something as simple as just specifying an integer index
   in the range 0 to num_configs

Then userspace can do randomness analysis of the different configurations
however it and the user's choosen policy dictate.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [PATCH] drivers/net: remove network drivers' last few us..., Brandeburg, Jesse, (Thu May 15, 12:07 pm)
Re: [PATCH] drivers/net: remove network drivers' last few us..., Alejandro Riveira , (Mon May 26, 9:43 am)
Re: [PATCH] drivers/net: remove network drivers' last few us..., Lennart Sorensen, (Fri May 16, 10:15 am)
Re: [PATCH] drivers/net: remove network drivers' last few us..., Henrique de Moraes Holschuh..., (Thu May 15, 6:29 pm)
Re: [PATCH] drivers/net: remove network drivers' last few us..., Henrique de Moraes Holschuh..., (Thu May 15, 7:58 pm)
Re: [PATCH] drivers/net: remove network drivers' last few us..., Henrique de Moraes Holschuh..., (Thu May 15, 7:02 pm)
Re: [PATCH] drivers/net: remove network drivers' last few us..., Henrique de Moraes Holschuh..., (Thu May 15, 7:46 pm)
Re: [PATCH] Re: [PATCH] drivers/net: remove network drivers'..., David Miller, (Fri May 16, 3:47 pm)