Re: Linux 5.3-rc8

From: Linus Torvalds
Date: Tue Sep 17 2019 - 19:08:34 EST


On Tue, Sep 17, 2019 at 2:52 PM Matthew Garrett <mjg59@xxxxxxxxxxxxx> wrote:
>
> getrandom() will never "consume entropy" in a way that will block any
> users of getrandom().

Yes, this is true for any common and sane use.

And by that I just mean that we do have GRND_RANDOM, which currently
does exactly that entropy consumption.

But it only consumes it for other GRND_RANDOM users - of which there
are approximately zero, because nobody wants that rats nest.

Linus