]> git.ipfire.org Git - thirdparty/openwrt.git/commit
generic: crypto: fix jitterentropy initialization failed issue 18822/head
authorShiji Yang <yangshiji66@outlook.com>
Wed, 2 Apr 2025 15:36:28 +0000 (23:36 +0800)
committerRobert Marko <robimarko@gmail.com>
Sun, 18 May 2025 07:59:53 +0000 (09:59 +0200)
commita53d1758656f3f9392a3a025f7f2e455ecff50d4
treea2b14699630feaad56bd99467abadd0db9523f3b
parent6d4554429acbf992111d1dbe8456f68af40cf258
generic: crypto: fix jitterentropy initialization failed issue

Sync jitterentropy source code with linux-6.12 to solve the
issue of jitterentropy initialization failed:

[ 9.523489] jitterentropy: Initialization failed with host not compliant with requirements: 9
[ 9.661916] kmodloader: 1 module could not be probed
[ 9.662377] kmodloader: - jitterentropy_rng - 0

In linux upstream commit cf27d9475f37 ("crypto: jitter - use
permanent health test storage"), when FIPS crypto is disabled,
the health test results are always explicitly skipped. That means
it will never return error code 9 (health test failed) again.

Fixes: https://github.com/openwrt/openwrt/issues/16684
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18399
(cherry picked from commit eec11fbbb6eb70cfcae27ac6c055d2c1bd5d20d9)
Link: https://github.com/openwrt/openwrt/pull/18822
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/generic/backport-6.6/906-01-v6.7-crypto-jitter-add-RCTAPT-support-for-different-OSRs.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-02-v6.7-crypto-jitter-Allow-configuration-of-memory-size.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-03-v6.7-crypto-jitter-Allow-configuration-of-oversampling-rate.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-04-v6.7-crypto-jitter-reuse-allocated-entropy-collector.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-05-v6.7-crypto-jitter-use-permanent-health-test-storage.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-06-v6.7-crypto-jitterentropy-Hide-esoteric-Kconfig-options-under.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-07-v6.10-crypto-jitter-Use-kvfree_sensitive-to-fix-Coccinelle.patch [new file with mode: 0644]
target/linux/generic/backport-6.6/906-08-v6.12-crypto-jitter-set-default-OSR-to-3.patch [new file with mode: 0644]