Centos-kernel-stream-9/crypto
Scott Weaver 285f90d73f Merge: update kernel drivers/char/random to upstream v6.2
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/3064

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>

Approved-by: Prarit Bhargava <prarit@redhat.com>
Approved-by: Wander Lairson Costa <wander@redhat.com>
Approved-by: Tony Camuso <tcamuso@redhat.com>
Approved-by: Herbert Xu <zxu@redhat.com>
Approved-by: Steve Best <sbest@redhat.com>
Approved-by: Rafael Aquini <aquini@redhat.com>
Approved-by: Sabrina Dubroca <sdubroca@redhat.com>

Signed-off-by: Scott Weaver <scweaver@redhat.com>
2023-10-11 13:28:06 -04:00
..
asymmetric_keys KEYS: use kfree_sensitive with key 2023-07-29 15:50:30 +02:00
async_tx crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
842.c
Kconfig crypto: x86/sm4 - add AES-NI/AVX2/x86_64 implementation 2023-03-02 15:50:32 -05:00
Makefile crypto: add rocksoft 64b crc guard tag framework 2022-06-22 08:57:57 +08:00
acompress.c
adiantum.c
aead.c
aegis.h
aegis128-core.c
aegis128-neon-inner.c
aegis128-neon.c
aes_generic.c
aes_ti.c
af_alg.c crypto: af_alg - get rid of alg_memory_allocated 2022-11-08 17:10:55 +01:00
ahash.c
akcipher.c
algapi.c crypto: api - compile out crypto_boot_test_finished when tests disabled 2023-09-06 08:16:43 -04:00
algboss.c crypto: algboss - compile out test-related code when tests disabled 2023-09-06 08:16:46 -04:00
algif_aead.c
algif_hash.c
algif_rng.c
algif_skcipher.c
ansi_cprng.c
anubis.c
api.c crypto: api - compile out crypto_boot_test_finished when tests disabled 2023-09-06 08:16:43 -04:00
arc4.c
authenc.c
authencesn.c
blake2b_generic.c
blake2s_generic.c lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFI 2022-04-27 10:48:58 -04:00
blowfish_common.c
blowfish_generic.c
camellia_generic.c
cast5_generic.c
cast6_generic.c
cast_common.c
cbc.c
ccm.c
cfb.c
chacha20poly1305.c
chacha_generic.c
cipher.c
cmac.c
compress.c
crc32_generic.c crypto: crc32-generic - Use SPDX-License-Identifier 2021-04-16 21:24:27 +10:00
crc32c_generic.c
crc64_rocksoft_generic.c crypto: add rocksoft 64b crc guard tag framework 2022-06-22 08:57:57 +08:00
crct10dif_common.c
crct10dif_generic.c
cryptd.c crypto: cryptd - Protect per-CPU resource by disabling BH. 2022-10-07 17:23:17 +02:00
crypto_engine.c
crypto_null.c
crypto_user_base.c
crypto_user_stat.c
ctr.c
cts.c
curve25519-generic.c crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
deflate.c
des_generic.c
dh.c crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
dh_helper.c crypto: dh - split out deserialization code from crypto_dh_decode() 2022-11-18 13:19:50 -08:00
drbg.c crypto: drbg - Only fail when jent is unavailable in FIPS mode 2023-04-13 17:59:05 +02:00
ecb.c
ecc.c
ecc.h crypto: ecc - delete a useless function declaration 2021-04-16 21:16:31 +10:00
ecc_curve_defs.h
ecdh.c crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
ecdh_helper.c
ecdsa.c crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
ecdsasignature.asn1
echainiv.c
ecrdsa.c
ecrdsa_defs.h
ecrdsa_params.asn1
ecrdsa_pub_key.asn1
essiv.c
fcrypt.c crypto: fcrypt - Remove 'do while(0)' loop for single statement macro 2021-04-02 18:28:13 +11:00
fips.c crypto: fips - make proc files report fips module name and version 2022-06-26 21:13:28 +02:00
gcm.c
geniv.c
gf128mul.c
ghash-generic.c
hash_info.c
hmac.c crypto: hmac - disallow keys < 112 bits in FIPS mode 2022-03-04 13:34:58 +12:00
internal.h crypto: api - compile out crypto_boot_test_finished when tests disabled 2023-09-06 08:16:43 -04:00
jitterentropy-kcapi.c crypto: jitter - permanent and intermittent health errors 2023-04-13 17:59:05 +02:00
jitterentropy.c crypto: jitter - correct health test during initialization 2023-06-12 15:31:37 +02:00
jitterentropy.h crypto: jitter - permanent and intermittent health errors 2023-04-13 17:59:05 +02:00
keywrap.c crypto: keywrap - Remove else after break statement 2021-04-02 18:28:13 +11:00
khazad.c crypto: khazad,wp512 - remove leading spaces before tabs 2021-05-28 15:11:44 +08:00
kpp.c crypto: kpp - provide support for KPP spawns 2022-11-18 13:19:49 -08:00
lrw.c
lz4.c
lz4hc.c
lzo-rle.c
lzo.c
md4.c
md5.c
memneq.c
michael_mic.c
nhpoly1305.c
ofb.c
pcbc.c
pcrypt.c crypto: pcrypt - Delay write to padata->info 2022-12-16 15:31:19 -03:00
poly1305_generic.c
proc.c
ripemd.h
rmd160.c
rng.c crypto: rng: convert to using iov_iter 2023-09-13 18:43:21 +02:00
rsa-pkcs1pad.c
rsa.c crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
rsa_helper.c
rsaprivkey.asn1
rsapubkey.asn1
scatterwalk.c
scompress.c
seed.c
seqiv.c crypto: seqiv - flag instantiations as FIPS compliant 2022-07-27 15:43:16 +02:00
serpent_generic.c
sha1_generic.c
sha3_generic.c
sha256_generic.c
sha512_generic.c
shash.c crypto: add crypto_has_shash() 2022-10-12 13:40:21 +05:30
simd.c
skcipher.c
sm2.c crypto: add __init/__exit annotations to init/exit funcs 2022-11-18 13:19:54 -08:00
sm2signature.asn1
sm3_generic.c
sm4_generic.c
streebog_generic.c
tcrypt.c crypto: api - allow algs only in specific constructions in FIPS mode 2022-07-27 15:43:15 +02:00
tcrypt.h
tea.c
testmgr.c crypto: testmgr - fix RNG performance in fuzz tests 2023-09-13 18:51:29 +02:00
testmgr.h crypto: testmgr - add keygen tests for ffdheXYZ(dh) templates 2022-11-18 13:19:52 -08:00
twofish_common.c
twofish_generic.c
vmac.c
wp512.c crypto: khazad,wp512 - remove leading spaces before tabs 2021-05-28 15:11:44 +08:00
xcbc.c
xor.c
xts.c
xxhash_generic.c
zstd.c lib: zstd: Add kernel-specific API 2021-12-22 05:19:34 -05:00