Skip to content

update kernel drivers/char/random to upstream v6.2

Ivan Vecera requested to merge ivecera/centos-stream-9:r94-random-RHEL-3646 into main

JIRA: https://issues.redhat.com/browse/RHEL-3646

This updates random generator subsystem to the upstream v6.2

Commits:

9e1b28b77388 ("char: move RANDOM_TRUST_CPU & RANDOM_TRUST_BOOTLOADER into the Character devices menu")
6071a6c0fba2 ("random: remove useless header comment")
b777c38239fe ("random: pull add_hwgenerator_randomness() declaration into random.h")
1366992e16bd ("timekeeping: Add raw clock fallback for random_get_entropy()")
069c4ea6871c ("random: fix sysctl documentation nits")
fe222a6ca2d5 ("init: call time_init() before rand_initialize()")
d4150779e60f ("random32: use real rng for non-deterministic randomness")
e3d2c5e79a99 ("random: use symbolic constants for crng_init states")
fed7ef061686 ("random: avoid initializing twice in credit race")
68c9c8b192c6 ("random: move initialization out of reseeding hot path")
cc1e127bfa95 ("random: remove ratelimiting for in-kernel unseeded randomness")
8a5b8a4a4ceb ("random: use proper jiffies comparison macro")
2f14062bb14b ("random: handle latent entropy and command line from random_init()")
12e45a2a6308 ("random: credit architectural init the exact amount")
f5bda35fba61 ("random: use static branch for crng_ready()")
73e2d827a501 ("arm64: Initialize jump labels before setup_machine_fdt()")
7782cfeca7d4 ("random: remove extern from functions in header")
7c3a8a1db5e0 ("random: use proper return types on get_random_{int,long}_wait()")
a19402634c43 ("random: make consistent use of buf and len")
560181c27b58 ("random: move initialization functions out of hot pages")
248561ad25a8 ("random: remove get_random_bytes_arch() and add rng_has_arch_random()")
6701de6c51c1 ("random: remove mostly unused async readiness notifier")
5ad7dd882e45 ("random: move randomize_page() into mm where it belongs")
3092adcef3ff ("random: unify batched entropy implementations")
1b388e7765f2 ("random: convert to using fops->read_iter()")
22b0a222af4d ("random: convert to using fops->write_iter()")
79025e727a84 ("random: wire up fops->splice_{read,write}_iter()")
1ce6c8d68f8a ("random: check for signals after page of pool writes")
9b29b6b20376 ("random: avoid checking crng_ready() twice in random_init()")
39e0f991a62e ("random: mark bootloader randomness code as __init")
77fc95f8c0dc ("random: account for arch randomness in bits")
60e5b2886b92 ("random: do not use jump labels before they are initialized")
27d8fa207835 ("Revert "arm64: Initialize jump labels before setup_machine_fdt()"")
e052a478a7da ("random: remove rng_has_arch_random()")
c01d4d0a82b7 ("random: quiet urandom warning ratelimit suppression message")
63b8ea5e4f1a ("random: update comment from copy_to_user() -> copy_to_iter()")
7e75c33756c9 ("hwrng: s390 - replace snprintf in show functions with sysfs_emit")
e4f74400308c ("s390/archrandom: simplify back to earlier design and initialize earlier")
918e75f77af7 ("s390/archrandom: prevent CPACF trng invocations in interrupt context")
846bb97e131d ("random: credit cpu and bootloader seeds by default")
9592eef7c16e ("random: remove CONFIG_ARCH_RANDOM")
b8ac29b40183 ("timekeeping: contribute wall clock to rng on time change")
b7a68f67ff49 ("random: use try_cmpxchg in _credit_init_bits")
2ac78e0c0018 ("KVM: PPC: Use arch_get_random_seed_long instead of powernv variant")
d349ab99eec7 ("random: handle archrandom with multiple longs")
7f637be4d460 ("random: correct spelling of "overwrites"")
745558f95885 ("random: use hwgenerator randomness more frequently at early boot")
cd4f24ae9404 ("random: restore O_NONBLOCK support")
d775335e350f ("random: throttle hwrng writes if no entropy is credited")
f62384995e4c ("random: split initialization into early step and later step")
08475dab7cf5 ("kfence: use better stack hash seed")
dd54fd7dfa45 ("random: use init_utsname() instead of utsname()")
585cd5fe9f73 ("random: add 8-bit and 16-bit batches")
4c95236a335d ("prandom: make use of smaller types in prandom_u32_max")
d687772e6d2c ("random: fix typos in get_random_bytes() comment")
a890d1c657ec ("random: clear new batches when bringing new CPUs online")
f5e4ec155d14 ("random: use arch_get_random*_early() in random_init()")
e9a688bcb193 ("random: use rejection sampling for uniform bounded random integers")
7f576b2593a9 ("random: add helpers for random numbers with given floor or range")
2c03e16f4499 ("random: remove early archrandom abstraction")
b240bab51888 ("random: adjust comment to account for removed function")
19258d05b619 ("random: modernize documentation comment on get_random_bytes()")
db516da95ce4 ("hw_random: use add_hwgenerator_randomness() for early entropy")
d7bf7f3b813e ("random: always mix cycle counter in add_latent_entropy()")
9148de3196ed ("random: reseed in delayed work rather than on-demand")
bbc7e1bed1f5 ("random: add back async readiness notifier")
0e42d14be23f ("random: remove extraneous period and add a missing one in comments")
1c21fe00eda7 ("random: spread out jitter callback to different CPUs")
b83e45fd065c ("random: mix in cycle counter when jitter timer fires")
39ec9e6b141e ("random: align entropy_timer_state to cache line")
3e6743e28b9b ("random: include <linux/once.h> in the right header")
e7b481697188 ("s390/archrandom: add missing header include")
00ed1eabcc3b ("x86/espfix: Use get_random_long() rather than archrandom")
6bb20c152b6b ("random: do not include <asm/archrandom.h> from random.h")
59ed76fe2f98 ("selftests/bpf: fix stacktrace_build_id with missing kprobe/urandom_read")
ff5900092227 ("arm64: adjust KASLR relocation after ARCH_RANDOM removal")
f17f9e9069f2 ("crypto: testmgr - test in-place en/decryption with two sglists")
81895a65ec63 ("treewide: use prandom_u32_max() when possible, part 1")
7e3cf0843fe5 ("treewide: use get_random_{u8,u16}() when possible, part 1")
8032bf1233a7 ("treewide: use get_random_u32_below() instead of deprecated function")
e8a533cbeb79 ("treewide: use get_random_u32_inclusive() when possible")
f900fde28883 ("crypto: testmgr - fix RNG performance in fuzz tests")

Signed-off-by: Ivan Vecera ivecera@redhat.com

Merge request reports