]> git.baikalelectronics.ru Git - kernel.git/commit
random: make add_timer_randomness() fill the nonblocking pool first
authorTheodore Ts'o <tytso@mit.edu>
Sun, 3 Nov 2013 04:15:05 +0000 (00:15 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Nov 2013 23:18:47 +0000 (18:18 -0500)
commit85757489508b48d833fe62ef90a9b37f69a19e2e
tree3620424cec3d8df5ec5455335620e65b37a94909
parentf7f3887d4a8d898f643bebfae51a55e21f2ee84b
random: make add_timer_randomness() fill the nonblocking pool first

Change add_timer_randomness() so that it directs incoming entropy to
the nonblocking pool first if it hasn't been fully initialized yet.
This matches the strategy we use in add_interrupt_randomness(), which
allows us to push the randomness where we need it the most during when
the system is first booting up, so that get_random_bytes() and
/dev/urandom become safe to use as soon as possible.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
drivers/char/random.c