generic: crypto: fix jitterentropy initialization failed issue
authorShiji Yang <yangshiji66@outlook.com>
Wed, 2 Apr 2025 15:36:28 +0000 (23:36 +0800)
committerRobert Marko <robimarko@gmail.com>
Wed, 9 Apr 2025 20:33:48 +0000 (22:33 +0200)
commiteec11fbbb6eb70cfcae27ac6c055d2c1bd5d20d9
treefe8a6f86d78771d85580d9f5697a86e5a300c09d
parent4e18d224c84c625248be2528fd3c7d2103f83ebf
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
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]