Skip to contentSkip to conversation

random number generator fixes for 6.1-rc3

GIT PULL Merged Jason A. Donenfeld 2 participants 2 messages Oct 29, 2022 – Oct 30, 2022

lore
Share & tools
lore
#0 lore raw

Hi Linus,

This pull contains 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.

Regards,
Jason

The following changes since commit 23758867219c8d84c8363316e6dd2f9fd7ae3049:

Merge tag 'net-6.1-rc3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (2022-10-27 13:36:59 -0700)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tags/random-6.1-rc3-for-linus

for you to fetch changes up to f5e4ec155d145002fd9840868453d785fab86d42:

random: use arch_get_random*_early() in random_init() (2022-10-29 00:24:03 +0200)

----------------------------------------------------------------
Random number generator fixes for Linux 6.1-rc3.
----------------------------------------------------------------
Jean-Philippe Brucker (1):
random: use arch_get_random*_early() in random_init()

 drivers/char/random.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Sun, 30 Oct 2022 01:49:29 +0200:

The pull request you sent on Sun, 30 Oct 2022 01:49:29 +0200:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tags/random-6.1-rc3-for-linus

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/882ad2a2a8ffa1defecdf907052f04da2737dc46

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html