Skip to content

Finish removing crypto_rng from drivers/crypto/

Eric Biggers linux-arm-msm linux-crypto lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7crypto: qcom-rng - Enable clock in hwrng casedrivers/crypto/qcom-rng.c+16 -00 replies
2/7crypto: qcom-rng - Allow zero as a random numberdrivers/crypto/qcom-rng.c+0 -20 replies
3/7crypto: qcom-rng - Remove crypto_rng interfacedrivers/crypto/Kconfig drivers/crypto/qcom-rng.c+19 -1400 replies
4/7hwrng: qcom - Move qcom-rng.c into drivers/char/hw_random/arch/arm/configs/multi_v7_defconfig arch/arm/configs/qcom_defconfig arch/arm64/configs/defconfig +6 more+16 -160 replies
5/7crypto: sun8i-ce - Remove crypto_rng interfacedrivers/crypto/allwinner/Kconfig drivers/crypto/allwinner/sun8i-ce/Makefile drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c +2 more+0 -2600 replies
6/7crypto: sun8i-ss - Remove crypto_rng interfacedrivers/crypto/allwinner/Kconfig drivers/crypto/allwinner/sun8i-ss/Makefile drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c +2 more+0 -2540 replies
7/7crypto: caam - Remove crypto_rng interfacedrivers/crypto/caam/Kconfig drivers/crypto/caam/Makefile drivers/crypto/caam/caamprng.c +2 more+0 -2680 replies

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchDmitry BaryshkovKonrad Dybcio
1/7R-b R-b
2/7R-b R-b
3/7R-b
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Finish removing crypto_rng from drivers/crypto/

This series finishes removing the unused, redundant, and frequently broken crypto_rng support from drivers/crypto/. It applies to cryptodev/master.

Patches 1-4 are a resend of
https://lore.kernel.org/linux-crypto/[email protected]/

Please consider these patches for 7.2, considering that most of these drivers had security vulnerabilities which would have needed to be fixed right away anyway. And the qcom hwrng fixes are important too.

Eric Biggers (7):
crypto: qcom-rng - Enable clock in hwrng case
crypto: qcom-rng - Allow zero as a random number
crypto: qcom-rng - Remove crypto_rng interface
hwrng: qcom - Move qcom-rng.c into drivers/char/hw_random/
crypto: sun8i-ce - Remove crypto_rng interface
crypto: sun8i-ss - Remove crypto_rng interface
crypto: caam - Remove crypto_rng interface

 arch/arm/configs/multi_v7_defconfig           |   2 +-
 arch/arm/configs/qcom_defconfig               |   2 +-
 arch/arm64/configs/defconfig                  |   2 +-
 drivers/char/hw_random/Kconfig                |  11 +
 drivers/char/hw_random/Makefile               |   1 +
 drivers/{crypto => char/hw_random}/qcom-rng.c | 156 ++----------
 drivers/crypto/Kconfig                        |  12 -
 drivers/crypto/Makefile                       |   1 -
 drivers/crypto/allwinner/Kconfig              |  16 --
 drivers/crypto/allwinner/sun8i-ce/Makefile    |   1 -
 .../crypto/allwinner/sun8i-ce/sun8i-ce-core.c |  63 -----
 .../crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 159 ------------
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h  |  29 ---
 drivers/crypto/allwinner/sun8i-ss/Makefile    |   1 -
 .../crypto/allwinner/sun8i-ss/sun8i-ss-core.c |  45 ----
 .../crypto/allwinner/sun8i-ss/sun8i-ss-prng.c | 177 -------------
 drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h  |  23 --
 drivers/crypto/caam/Kconfig                   |   9 -
 drivers/crypto/caam/Makefile                  |   1 -
 drivers/crypto/caam/caamprng.c                | 241 ------------------
 drivers/crypto/caam/intern.h                  |  15 --
 drivers/crypto/caam/jr.c                      |   2 -
 drivers/gpu/drm/ci/arm64.config               |   2 +-
 23 files changed, 41 insertions(+), 930 deletions(-)
 rename drivers/{crypto => char/hw_random}/qcom-rng.c (53%)
 delete mode 100644 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c
 delete mode 100644 drivers/crypto/allwinner/sun8i-ss/sun8i-ss-prng.c
 delete mode 100644 drivers/crypto/caam/caamprng.c

base-commit: 6ea0ce3a19f9c37a014099e2b0a46b27fa164564

Signature · 1 line
2.54.0