[Buildroot] [PATCH] util-linux: Revert genrandom(2) logic
Marcus Hoffmann
m.hoffmann at cartelsol.com
Mon Aug 14 09:54:47 UTC 2017
Hey Matt, Arnout,
On 12.08.2017 18:00, Arnout Vandecappelle wrote:
>
>
> On 12-08-17 05:01, Matt Weber wrote:
>> New logic was added at configure time and new conditional code
>> in lib/randutils.c between versions 2.29.2 and >= 2.30. The logic
>> determines if the glibc or syscall API should be used for
>> rand calls. This has been observed causing issues in a
>> configuration of a 4.1 kernel and glibc2.25. A tool like
>> parted when used at boot hangs for ~40x the time and when
>> debugged with gdb shows blocking on genrandom, even though
> getrandom
>
>> a entropy check from a hardware rng used by rngd is adequate
>> before the parted tool is used.
>>
>> Bug tracker:
>> https://github.com/karelzak/util-linux/issues/496
>>
>> Upstream reverted commits
>> https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?h=stable/v2.30&id=b192dd6943e5bb5d2a3773b2c9b06cbd4eb28258
>> https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?h=stable/v2.30&id=cc01c2dca4f62e36505570d5cb15f868aa44bf54
>>
>> Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
>
> To be honest, I don't think we want this in Buildroot. It's rather a feature
> patch, and it is absolutely not upstreamable in its current form. Also, you can
> easily keep these patches in your BR2_GLOBAL_PATCH_DIR
A fix for this was just added by Karel:
https://github.com/karelzak/util-linux/commit/5264aebb4f822fa9147ee576562a4961ca97261d
@Matt, can you test it?
>
> [snip]
Best wishes,
Marcus
More information about the buildroot
mailing list