Wind River Support Network

HomeDefectsLIN1019-4848
Fixed

LIN1019-4848 : Request to backport upstream patch to fix lack of entropy

Created: Jun 15, 2020    Updated: Jul 14, 2020
Resolved Date: Jun 30, 2020
Found In Version: 10.19.45.8
Fix Version: 10.19.45.9
Severity: Standard
Applicable for: Wind River Linux LTS 19
Component/s: Kernel

Description

Can you please backport the following patch from upstream (random: try to actively add entropy rather than passively wait for it)?

[https://github.com/torvalds/linux/commit/50ee7529ec4500c88f8664560770a7a1b65db72b]

The culprit was systemd-random-seed.service which would take more than 20 seconds to initialize:

root@asp-6c:~# systemd-analyze blame
 23.551s sshdgenkeys.service
 21.643s systemd-random-seed.service

In systemctl journal, they have reported following messages:

May 27 11:01:48 stratix10-abil rngd[140]: Failed to init entropy source hwrng
 May 27 11:01:49 stratix10-abil systemd-random-seed[159]: Kernel entropy pool is not initialized yet, waiting until it is.
 May 27 11:02:05 asp-6c rngd[140]: Initializing entropy source jitter

This appears to be an issue with entropy pool not being populated quick enough and the fix from github helps with exactly that. 

 
Live chat
Online