Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'random-6.1-rc3-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random

Pull random number generator fix from Jason Donenfeld:
"One fix from Jean-Philippe Brucker, addressing a regression in which
early boot code on ARM64 would use the non-_early variant of the
arch_get_random family of functions, resulting in the architectural
random number generator appearing unavailable during that early phase
of boot.

The fix simply changes arch_get_random*() to arch_get_random*_early().

This distinction between these two functions is a bit of an old wart
I'm not a fan of, and for 6.2 I'll see if I can make obsolete the
_early variant, so that one function does the right thing in all
contexts without overhead"

* tag 'random-6.1-rc3-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
random: use arch_get_random*_early() in random_init()

+2 -2
+2 -2
drivers/char/random.c
··· 791 791 #endif 792 792 793 793 for (i = 0, arch_bits = sizeof(entropy) * 8; i < ARRAY_SIZE(entropy);) { 794 - longs = arch_get_random_seed_longs(entropy, ARRAY_SIZE(entropy) - i); 794 + longs = arch_get_random_seed_longs_early(entropy, ARRAY_SIZE(entropy) - i); 795 795 if (longs) { 796 796 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); 797 797 i += longs; 798 798 continue; 799 799 } 800 - longs = arch_get_random_longs(entropy, ARRAY_SIZE(entropy) - i); 800 + longs = arch_get_random_longs_early(entropy, ARRAY_SIZE(entropy) - i); 801 801 if (longs) { 802 802 _mix_pool_bytes(entropy, sizeof(*entropy) * longs); 803 803 i += longs;