revyos / th1520-linux-kernel

TH1520 linux kernel
Other
11 stars 6 forks source link

random: crng takes too long to initialize #7

Closed cyyself closed 8 months ago

cyyself commented 9 months ago

The crng takes too long to initialize, making some encryption-related programs (including sshd) unusable within the first few minutes of startup.

Kernel version: commit 267da9a02021e7321e23222d646cc241fc3a371e , compiled on gcc version 13.2.0 (Debian 13.2.0-7)

Kernel log:

[   10.133692] random: blueman-mechani: uninitialized urandom read (24 bytes read)
[   10.185769] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   10.224224] random: dbus-daemon: uninitialized urandom read (12 bytes read)
[   11.167707] random: lightdm: uninitialized urandom read (16 bytes read)
[   11.729087] random: lightdm: uninitialized urandom read (16 bytes read)
[   12.134880] random: lightdm: uninitialized urandom read (16 bytes read)
[   12.579772] random: lightdm: uninitialized urandom read (16 bytes read)
[   13.088167] random: lightdm: uninitialized urandom read (16 bytes read)
[   17.668250] random: NetworkManager: uninitialized urandom read (16 bytes read)
[  110.818395] random: pulseaudio: uninitialized urandom read (4 bytes read)
[  172.850835] random: crng init done
[  172.854293] random: 27 urandom warning(s) missed due to ratelimiting
RevySR commented 8 months ago

https://github.com/revyos/thead-u-boot/pull/25

SDK1.4.2 uboot is solved.

RevySR commented 8 months ago

https://mirror.iscas.ac.cn/revyos/extra/images/lpi4amain/test/20240113/

test image, support reboot & uboot crng seed