Skip to content

Clean up the crypto testing options

Eric Biggers linux-arm-kernel linux-crypto linux-rockchip lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 5 repliesIn review
  2. v29 patches 7 repliesSuperseded
  3. v19 patches 1 replySuperseded

Changes in v3 from the cover letter

- Keep options in defconfigs.
- Make CRYPTO_SELFTESTS depend on DEBUG_KERNEL.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7crypto: tcrypt - rename CRYPTO_TEST to CRYPTO_BENCHMARKarch/arm/configs/exynos_defconfig arch/arm/configs/pxa_defconfig arch/arm/configs/spitz_defconfig +30 more+43 -391 reply
2/7crypto: testmgr - remove panic_on_failcrypto/testmgr.c+3 -70 replies
3/7crypto: testmgr - replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTSarch/arm/configs/milbeaut_m10v_defconfig arch/loongarch/configs/loongson3_defconfig arch/s390/configs/debug_defconfig +15 more+41 -403 replies
4/7crypto: testmgr - make it easier to enable the full set of testscrypto/Kconfig crypto/testmgr.c include/crypto/internal/simd.h +1 more+8 -720 replies
5/7crypto: testmgr - rename noextratests to noslowtestscrypto/testmgr.c+20 -210 replies
6/7crypto: Kconfig - make CRYPTO_MANAGER a hidden symbolarch/arm/configs/milbeaut_m10v_defconfig arch/arm/configs/pxa_defconfig arch/mips/configs/decstation_64_defconfig +6 more+1 -90 replies
7/7crypto: testmgr - enable CRYPTO_MANAGER when CRYPTO_SELFTESTScrypto/Kconfig crypto/algapi.c+4 -40 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchGeert Uytterhoeven
1/7A-b
2/7
3/7
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 v3 thread

Cover letter [PATCH v3 0/7] Clean up the crypto testing options

This series reworks the crypto testing kconfig options to fix some longstanding issues:

- Replace the inverted option CONFIG_CRYPTO_MANAGER_DISABLE_TESTS with a regular option CONFIG_CRYPTO_SELFTESTS.

- Make CONFIG_CRYPTO_SELFTESTS enable the full set of tests by default, removing CONFIG_CRYPTO_MANAGER_EXTRA_TESTS.

- Automatically enable CONFIG_CRYPTO_MANAGER when needed for the tests.

- Rename cryptomgr.noextratests to cryptomgr.noslowtests.

- Remove cryptomgr.panic_on_fail, as panic_on_warn can be used instead.

- Rename CONFIG_CRYPTO_TEST to CONFIG_CRYPTO_BENCHMARK.

Changed in v3:
- Keep options in defconfigs.
- Make CRYPTO_SELFTESTS depend on DEBUG_KERNEL.

Changed in v2:
- Moved selftest lines in lib/crypto/Makefile to appropriate places.
- Fixed a commit message.

Eric Biggers (7):
crypto: tcrypt - rename CRYPTO_TEST to CRYPTO_BENCHMARK
crypto: testmgr - remove panic_on_fail
crypto: testmgr - replace CRYPTO_MANAGER_DISABLE_TESTS with
CRYPTO_SELFTESTS
crypto: testmgr - make it easier to enable the full set of tests
crypto: testmgr - rename noextratests to noslowtests
crypto: Kconfig - make CRYPTO_MANAGER a hidden symbol
crypto: testmgr - enable CRYPTO_MANAGER when CRYPTO_SELFTESTS

 arch/arm/configs/exynos_defconfig           |   2 +-
 arch/arm/configs/milbeaut_m10v_defconfig    |   3 +-
 arch/arm/configs/pxa_defconfig              |   3 +-
 arch/arm/configs/spitz_defconfig            |   2 +-
 arch/arm64/configs/defconfig                |   2 +-
 arch/loongarch/configs/loongson3_defconfig  |   2 +-
 arch/m68k/configs/amiga_defconfig           |   2 +-
 arch/m68k/configs/apollo_defconfig          |   2 +-
 arch/m68k/configs/atari_defconfig           |   2 +-
 arch/m68k/configs/bvme6000_defconfig        |   2 +-
 arch/m68k/configs/hp300_defconfig           |   2 +-
 arch/m68k/configs/mac_defconfig             |   2 +-
 arch/m68k/configs/multi_defconfig           |   2 +-
 arch/m68k/configs/mvme147_defconfig         |   2 +-
 arch/m68k/configs/mvme16x_defconfig         |   2 +-
 arch/m68k/configs/q40_defconfig             |   2 +-
 arch/m68k/configs/sun3_defconfig            |   2 +-
 arch/m68k/configs/sun3x_defconfig           |   2 +-
 arch/mips/configs/decstation_64_defconfig   |   1 -
 arch/mips/configs/decstation_defconfig      |   1 -
 arch/mips/configs/decstation_r4k_defconfig  |   1 -
 arch/mips/configs/gpr_defconfig             |   2 +-
 arch/mips/configs/ip28_defconfig            |   1 -
 arch/mips/configs/lemote2f_defconfig        |   2 +-
 arch/mips/configs/mtx1_defconfig            |   2 +-
 arch/mips/configs/rb532_defconfig           |   2 +-
 arch/parisc/configs/generic-32bit_defconfig |   2 +-
 arch/parisc/configs/generic-64bit_defconfig |   1 -
 arch/powerpc/configs/g5_defconfig           |   2 +-
 arch/powerpc/configs/powernv_defconfig      |   2 +-
 arch/powerpc/configs/ppc64_defconfig        |   2 +-
 arch/powerpc/configs/ppc64e_defconfig       |   2 +-
 arch/powerpc/configs/ppc6xx_defconfig       |   2 +-
 arch/s390/configs/debug_defconfig           |   4 +-
 arch/s390/configs/defconfig                 |   4 +-
 arch/sh/configs/migor_defconfig             |   1 -
 arch/sparc/configs/sparc64_defconfig        |   2 +-
 crypto/Kconfig                              |  45 ++++----
 crypto/Makefile                             |   2 +-
 crypto/algapi.c                             |   5 +-
 crypto/algboss.c                            |   2 +-
 crypto/api.c                                |   3 +-
 crypto/hkdf.c                               |   2 +-
 crypto/internal.h                           |   5 +-
 crypto/kdf_sp800108.c                       |   2 +-
 crypto/tcrypt.c                             |   8 +-
 crypto/tcrypt.h                             |   4 +-
 crypto/testmgr.c                            | 115 +++++---------------
 include/crypto/internal/simd.h              |   6 +-
 lib/crypto/Makefile                         |  11 +-
 lib/crypto/aescfb.c                         |   2 +-
 lib/crypto/aesgcm.c                         |   2 +-
 lib/crypto/blake2s.c                        |   2 +-
 lib/crypto/chacha20poly1305.c               |   2 +-
 lib/crypto/curve25519.c                     |   2 +-
 55 files changed, 111 insertions(+), 183 deletions(-)

base-commit: 64745a9ca890ed60d78162ec511e1983e1946d73

Signature · 1 line
2.49.0