[OpenWrt-Devel] [PATCH] openssl: Fix longer booting times by unblocking getrandom
ynezz at true.cz
Fri Mar 15 10:09:23 EDT 2019
Kristian Evensen <kristian.evensen at gmail.com> [2019-03-15 13:57:41]:
> I had a similar problem on some x86-devices. The problem is that
> OpenWRT-devices are so "quiet" that it takes a while before a sufficient
> amount of entropy is generated.
I don't see it as problem of devices, I see it more as a problem of the
implementation of getrandom syscall in Linux kernel, musl libc (blocking
getentropy) and OpenSSL (blocking getrandom). I find it quite amusing, that
$ cat /etc/rc.local
cat /dev/random &
getrandom 1 | hexdump > /tmp/getrandom.log
would never finish booting on my QEMU machine.
> Instead of disabling the blocking getrandom()-call, what I did to "solve"
> the issue was to install the haveged-packet on devices where I could not
> find a driver for the hardware generator.
Or we can switch to systemd :-) Putting jokes aside, I'm not sure if we want
to add another dependency just because we've bumped OpenSSL.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel