On 10/05/18 13:47, Theodore Y. Ts'o wrote:
One other way to address this problem is to upgrade to util-linux 2.32
(released on March 21, 2018), interstingly, *before* the CVE-2018-1108
patches, whiich landed month later.
The relevant commits from util-linux 2.32:
a9cf659e0508: lib/randutils: Do not block on getrandom()
edc1c90cb972: lib/randutils: don't break on EAGAIN, use usleep()

Thanks, Ted. That is good to know. Upgrading to util-linux 2.32 will likely prevent the hang, but it is also worth noting that, after edc1c90cb972, each call of util-linux 2.32 lib/randutils.c random_get_bytes will make nine nonblocking getrandom calls over one second before giving up, sleeping between them. If fontconfig generates four .uuid files, this will introduce an additional delay of four seconds before the plymouth passphrase screen is shown. This delay can be avoided with my plymouth patch to copy the .uuid files into the initramfs with the DejaVu fonts.

See: random_get_bytes from util-linux 2.32 lib/randutils.c:
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/tree/lib/randutils.c?h=v2.32#n101

Kind regards,

--
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <https://transient.nz/>
New Zealand

Reply via email to