Re: Linux 5.3-rc8
From: Linus Torvalds
Date: Mon Sep 16 2019 - 21:41:58 EST
On Mon, Sep 16, 2019 at 6:24 PM Matthew Garrett <mjg59@xxxxxxxxxxxxx> wrote:
>
> Exactly the scenario where you want getrandom() to block, yes.
It *would* block. Just not forever.
And btw, the whole "generate key at boot when nothing else is going
on" is already broken, so presumably nobody actually does it.
See why I'm saying "hypothetical"? You're doing it again.
> >Then you have to ignore the big warning too.
>
> The big warning that's only printed in dmesg?
Well, the patch actually made getrandom() return en error too, but you
seem more interested in the hypotheticals than in arguing actualities.
Linus