[GIT PULL] random bug fixes for 4.12
From: Theodore Ts'o
Date: Sun Jun 11 2017 - 14:44:56 EST
The following changes since commit 9dfa7bba35ac08a63565d58c454dccb7e1bb0a08:
fix race in drivers/char/random.c:get_reg() (2017-05-24 17:41:26 -0400)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tytso/random.git tags/random_for_linus_stable
for you to fetch changes up to b169c13de473a85b3c859bb36216a4cb5f00a54a:
random: invalidate batched entropy after crng init (2017-06-07 19:45:37 -0400)
----------------------------------------------------------------
Improve performance by using a lockless update mechanism suggested by
Linus, and make sure we refresh per-CPU entropy returned get_random_*
as soon as the CRNG is initialized.
----------------------------------------------------------------
Jason A. Donenfeld (1):
random: invalidate batched entropy after crng init
Theodore Ts'o (1):
random: use lockless method of accessing and updating f->reg_idx
drivers/char/random.c | 49 +++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 43 insertions(+), 6 deletions(-)