Re: [PATCH 07/10] random: add new get_random_bytes_arch() function

From: Theodore Ts'o
Date: Thu Jul 05 2012 - 15:50:36 EST


On Thu, Jul 05, 2012 at 11:35:12AM -0700, Linus Torvalds wrote:
>
> If "get_random_bytes()" doesn't use the hw rng when it exists, it is
> broken. It's that simple.
>

It is using the HW RNG when it exists; it will ultimately call
xfer_secondary_pool, which will mix in inputs from the hw rng. So we
do get all of the security of the HW RNG. Currently all of the
callers of the get_random_bytes() have to accomodate the fact that the
HW RNG might not be there (on non-Intel architectures if nothing
else), so get_random_bytes() can't be used in any hot paths as it is.

So we *are* using the hw rng; we're just not using it to the exclusion
of anything else.

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/