APPLIED[C/Unstable]: [SRU bionic] random: Make getrandom() ready earlier
Seth Forshee
seth.forshee at canonical.com
Mon Jul 9 22:18:30 UTC 2018
On Wed, Jul 04, 2018 at 04:15:50PM +0200, Stefan Bader wrote:
> From: Ben Hutchings <ben at decadent.org.uk>
>
> This effectively reverts commit 725e828 "random: fix crng_ready()
> test" which was commit 43838a23a05f upstream. Unfortunately some
> users of getrandom() don't expect it to block for long, and they need
> to be fixed before we can allow this change into stable.
>
> This doesn't directly revert that commit, but only weakens the ready
> condition used by getrandom() when the GRND_RANDOM flag is not set.
> Calls to getrandom() that return before the RNG is fully seeded will
> generate warnings, just like reads from /dev/urandom.
>
> https://bugs.launchpad.net/bugs/1780062
>
> (backported from ://salsa.debian.org/kernel-team/linux/raw/stretch/debian/patches/debian/random-make-getrandom-ready-earlier.patch)
> [smb: open code waiting in getrandom directly]
> Signed-off-by: Stefan Bader <stefan.bader at canonical.com>
Applied to cosmic/master-next and unstable/master, thanks!
More information about the kernel-team
mailing list