Skip to contentSkip to conversation

random number generator fixes for 5.17-rc3

GIT PULL Merged Jason A. Donenfeld 2 participants 2 messages Feb 4, 2022

lore
Share & tools
lore
#0 lore raw

Hey Linus,

Please pull the following fixes for 5.17-rc3. There are a few other patches in my tree that fix an age old crypto ~vuln, but I think I'll give those a few more days to stew on the list before submitting. So expect to hear from me about that next week. For this week, we have:

1) A fix to make more frequent use of hwgenerator randomness, from Dominik.

2) More cleanups to the boot initialization sequence, from Dominik.

3) A fix for an old shortcoming with the ZAP ioctl, from me.

4) A workaround for a still unfixed Clang CFI/FullLTO compiler bug, from me. On one hand, it's a bummer to commit workarounds for experimental compiler features that have bugs. But on the other, I think this actually improves the code somewhat, independent of the bug. So a win-win.

Thanks,
Jason

The following changes since commit 26291c54e111ff6ba87a164d85d4a4e134b7315c:

Linux 5.17-rc2 (2022-01-30 15:37:07 +0200)

are available in the Git repository at:

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

for you to fetch changes up to 9d5505f1eebeca778074a0260ed077fd85f8792c:

random: only call crng_finalize_init() for primary_crng (2022-02-04 19:22:32 +0100)

----------------------------------------------------------------
Dominik Brodowski (3):
random: continually use hwgenerator randomness
random: access primary_pool directly rather than through pointer
random: only call crng_finalize_init() for primary_crng

Jason A. Donenfeld (2):
lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFI
random: wake up /dev/random writers after zap

 arch/arm/crypto/blake2s-shash.c   |  4 ++--
 arch/x86/crypto/blake2s-shash.c   |  4 ++--
 crypto/blake2s_generic.c          |  4 ++--
 drivers/char/random.c             | 39 +++++++++++++++++++++-----------------
 include/crypto/internal/blake2s.h | 40 ++++++++++++++++++++++++---------------
 lib/crypto/blake2s.c              |  4 ++--
 6 files changed, 55 insertions(+), 40 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Fri, 4 Feb 2022 19:42:42 +0100:

The pull request you sent on Fri, 4 Feb 2022 19:42:42 +0100:

Quoted 1 line

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

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

Thank you!

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