]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
random: initialize the non-blocking pool via add_hwgenerator_randomness()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 12 Jun 2016 22:11:51 +0000 (18:11 -0400)
committerKamal Mostafa <kamal@canonical.com>
Mon, 22 Aug 2016 14:42:29 +0000 (07:42 -0700)
commitcaa9e8a0a625e8fb4f19c57b7a76439a41322513
treeca5bf866b7c9cfbac53ac10f834f8ef743cff2ef
parentfb7e3cfdfc643ec26d0b6f57281ca2728dcf362b
random: initialize the non-blocking pool via add_hwgenerator_randomness()

BugLink: http://bugs.launchpad.net/bugs/1615620
commit 3371f3da08cff4b75c1f2dce742d460539d6566d upstream.

If we have a hardware RNG and are using the in-kernel rngd, we should
use this to initialize the non-blocking pool so that getrandom(2)
doesn't block unnecessarily.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/char/random.c