random bug fixes for 4.12
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(-)
Hi Ted,
Did you forget this discussion [1][2][3], where we talked about how you accidentally pulled v4 instead of v5, and would replace that v4 patch [4] with the v5 one [5]?
Jason
[1] https://lkml.org/lkml/2017/6/8/1046
[2] https://lkml.org/lkml/2017/6/8/1173
[3] https://lkml.org/lkml/2017/6/8/1173
[4] http://www.openwall.com/lists/kernel-hardening/2017/06/06/50
[5] https://patchwork.kernel.org/patch/9773235/
Since it looks like Linus already pulled, here's the diff-commit I made from before, that you can submit on top:
https://lkml.org/lkml/2017/6/8/408
It should row "Cc: [email protected]" if it's not going to be rebased into the existing commit there.