DevHeads.net

wpa supplicant using /dev/random

Jun 05 15:53:25 fmac.local kernel: random: crng init done
Jun 05 15:53:25 fmac.local kernel: random: 7 urandom warning(s) missed
due to ratelimiting
Jun 05 15:53:25 fmac.local wpa_supplicant[1000]: random: Cannot read
from /dev/random: Resource temporarily unavailable
Jun 05 15:53:25 fmac.local wpa_supplicant[1000]: random: Got 20/20
bytes from /dev/random

Is this a bug? Should it be using /dev/urandom instead?

Comments

Re: wpa supplicant using /dev/random

By Tomas Mraz at 06/06/2019 - 06:02

On Wed, 2019-06-05 at 16:38 -0600, Chris Murphy wrote:
That's clearly a bug. It should just use OpenSSL which it links to
anyway to get random numbers. OpenSSL uses getrandom() to get entropy
from the kernel to seed its RNG.

Re: wpa supplicant using /dev/random

By Chris Murphy at 06/27/2019 - 01:17

On Thu, Jun 6, 2019 at 4:03 AM Tomas Mraz < ... at redhat dot com> wrote:
Upstream list hasn't been available the two times I've checked, it
just dead ends. So I filed a bug here:

<a href="https://bugzilla.redhat.com/show_bug.cgi?id=1724426" title="https://bugzilla.redhat.com/show_bug.cgi?id=1724426">https://bugzilla.redhat.com/show_bug.cgi?id=1724426</a>