From: Carlos Santos <casantos@datacom.ind.br>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH-2018.02.x] util-linux: add two upstream patches to fix blocking on getrandom() with recent kernels
Date: Mon, 28 May 2018 00:23:57 -0300 (BRT) [thread overview]
Message-ID: <1571905527.184522.1527477837171.JavaMail.zimbra@datacom.com.br> (raw)
In-Reply-To: <20180527103949.25839-1-peter@korsgaard.com>
> From: "Peter Korsgaard" <peter@korsgaard.com>
> To: "Carlos Santos" <casantos@datacom.ind.br>, "buildroot" <buildroot@buildroot.org>
> Cc: "Peter Korsgaard" <peter@korsgaard.com>
> Sent: Sunday, May 27, 2018 7:39:49 AM
> Subject: [PATCH-2018.02.x] util-linux: add two upstream patches to fix blocking on getrandom() with recent kernels
> As part of the fix for CVE-2018-1108 (kernel drivers before version 4.17-rc1
> are vulnerable to a weakness in the Linux kernel's implementation of random
> seed data. Programs, early in the boot sequence, could use the data
> allocated for the seed before it was sufficiently generated), the kernel
> random number generator initialization routine was changed. See the
> project-zero writeup for more details:
>
> https://bugs.chromium.org/p/project-zero/issues/detail?id=1559
>
> These changes have now also been backported to 4.14.x (since 4.14.39) and
> 4.16.x (since 4.16.7).
>
> This change unfortunately causes users of libuuid from util-linux to block
> for a very long time waiting for sufficient entropy. An example of this is
> mke2fs, which uses libuuid to generate the filesystem UUID.
>
> Fix this by backporting two post-2.31 fixes from upstream.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Tested-by: Carlos Santos <casantos@datacom.com.br>
Built host and target util-linux for x86_64 systems running Linux
kernel 4.16.11 (Fedora 28) and 4.14.39 (Buildroot), respectively.
Ran mke2fs from an early init script to check that it did not block.
--
Carlos Santos (Casantos) - DATACOM, P&D
next prev parent reply other threads:[~2018-05-28 3:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-27 10:39 [Buildroot] [PATCH-2018.02.x] util-linux: add two upstream patches to fix blocking on getrandom() with recent kernels Peter Korsgaard
2018-05-28 3:23 ` Carlos Santos [this message]
2018-05-28 7:48 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1571905527.184522.1527477837171.JavaMail.zimbra@datacom.com.br \
--to=casantos@datacom.ind.br \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox