diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2022-12-21 08:02:30 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2022-12-21 08:02:30 -0800 |
commit | 222882c2ab1221b6df2d189138638a6435cd8e88 (patch) | |
tree | efac37a59201e41335bdf4b486de824cbfd23f21 /net/core | |
parent | 19822e3ee4c891e1e8434e290fbca0af52490240 (diff) | |
parent | 3c202d14a9d73fb63c3dccb18feac5618c21e1c4 (diff) | |
download | linux-222882c2ab1221b6df2d189138638a6435cd8e88.tar.bz2 |
Merge tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random
Pull more random number generator updates from Jason Donenfeld:
"Two remaining changes that are now possible after you merged a few
other trees:
- #include <asm/archrandom.h> can be removed from random.h now,
making the direct use of the arch_random_* API more of a private
implementation detail between the archs and random.c, rather than
something for general consumers.
- Two additional uses of prandom_u32_max() snuck in during the
initial phase of pulls, so these have been converted to
get_random_u32_below(), and now the deprecated prandom_u32_max()
alias -- which was just a wrapper around get_random_u32_below() --
can be removed.
In addition, there is one fix:
- Check efi_rt_services_supported() before attempting to use an EFI
runtime function.
This affected EFI systems that disable runtime services yet still
boot via EFI (e.g. the reporter's Lenovo Thinkpad X13s laptop), as
well systems where EFI runtime services have been forcibly
disabled, such as on PREEMPT_RT.
On those machines, a very early and hard to diagnose crash would
happen, preventing boot"
* tag 'random-6.2-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
prandom: remove prandom_u32_max()
efi: random: fix NULL-deref when refreshing seed
random: do not include <asm/archrandom.h> from random.h
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions