Skip to contentSkip to conversation

crypto: Removing CRYPTO_AES_GCM_P10.

PATCH Superseded Danny Tsen 3 participants 5 messages Sep 13, 2024 – Sep 19, 2024

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Danny Tsen

author
#0 lore raw

PATCH 1/1 crypto: Removing CRYPTO_AES_GCM_P10.

Removing CRYPTO_AES_GCM_P10 in Kconfig first so that we can apply the subsequent patches to fix data mismatch over ipsec tunnel.

---
 arch/powerpc/crypto/Kconfig | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)
arch/powerpc/crypto/Kconfig +16 -16
index 09ebcbdfb34f..96ca2c4c8827 100644
@@ -105,22 +105,22 @@ config CRYPTO_AES_PPC_SPE
 	  architecture specific assembler implementations that work on 1KB
 	  tables or 256 bytes S-boxes.
 
-config CRYPTO_AES_GCM_P10
-	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
-	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
-	select CRYPTO_LIB_AES
-	select CRYPTO_ALGAPI
-	select CRYPTO_AEAD
-	select CRYPTO_SKCIPHER
-	help
-	  AEAD cipher: AES cipher algorithms (FIPS-197)
-	  GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
-	  Architecture: powerpc64 using:
-	    - little-endian
-	    - Power10 or later features
-
-	  Support for cryptographic acceleration instructions on Power10 or
-	  later CPU. This module supports stitched acceleration for AES/GCM.
+#config CRYPTO_AES_GCM_P10
+#	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
+#	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
+#	select CRYPTO_LIB_AES
+#	select CRYPTO_ALGAPI
+#	select CRYPTO_AEAD
+#	select CRYPTO_SKCIPHER
+#	help
+#	  AEAD cipher: AES cipher algorithms (FIPS-197)
+#	  GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
+#	  Architecture: powerpc64 using:
+#	    - little-endian
+#	    - Power10 or later features
+#
+#	  Support for cryptographic acceleration instructions on Power10 or
+#	  later CPU. This module supports stitched acceleration for AES/GCM.
 
 config CRYPTO_CHACHA20_P10
 	tristate "Ciphers: ChaCha20, XChacha20, XChacha12 (P10 or later)"
Signature · 1 line
2.43.0
#1 lore raw

Le 13/09/2024 à 14:30, Danny Tsen a écrit :

Quoted 4 lines

[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

Removing CRYPTO_AES_GCM_P10 in Kconfig first so that we can apply the subsequent patches to fix data mismatch over ipsec tunnel.

To deactivate a driver, all you have to do is to add:

depends on BROKEN

Christophe

Quoted 53 lines
---
  arch/powerpc/crypto/Kconfig | 32 ++++++++++++++++----------------
  1 file changed, 16 insertions(+), 16 deletions(-)
arch/powerpc/crypto/Kconfig +16 -17
index 09ebcbdfb34f..96ca2c4c8827 100644
@@ -105,22 +105,22 @@ config CRYPTO_AES_PPC_SPE
           architecture specific assembler implementations that work on 1KB
           tables or 256 bytes S-boxes.
 
-config CRYPTO_AES_GCM_P10
-       tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
-       depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
-       select CRYPTO_LIB_AES
-       select CRYPTO_ALGAPI
-       select CRYPTO_AEAD
-       select CRYPTO_SKCIPHER
-       help
-         AEAD cipher: AES cipher algorithms (FIPS-197)
-         GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
-         Architecture: powerpc64 using:
-           - little-endian
-           - Power10 or later features
-
-         Support for cryptographic acceleration instructions on Power10 or
-         later CPU. This module supports stitched acceleration for AES/GCM.
+#config CRYPTO_AES_GCM_P10
+#      tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
+#      depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
+#      select CRYPTO_LIB_AES
+#      select CRYPTO_ALGAPI
+#      select CRYPTO_AEAD
+#      select CRYPTO_SKCIPHER
+#      help
+#        AEAD cipher: AES cipher algorithms (FIPS-197)
+#        GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
+#        Architecture: powerpc64 using:
+#          - little-endian
+#          - Power10 or later features
+#
+#        Support for cryptographic acceleration instructions on Power10 or
+#        later CPU. This module supports stitched acceleration for AES/GCM.
 
  config CRYPTO_CHACHA20_P10
         tristate "Ciphers: ChaCha20, XChacha20, XChacha12 (P10 or later)"
--

2.43.0

author
#2 lore raw

Got it.  Thanks.

-Danny

Quoted 76 lines · Christophe Leroy

Le 13/09/2024 à 14:30, Danny Tsen a écrit :

Quoted 4 lines

[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

Removing CRYPTO_AES_GCM_P10 in Kconfig first so that we can apply the subsequent patches to fix data mismatch over ipsec tunnel.

To deactivate a driver, all you have to do is to add:

    depends on BROKEN

Christophe

Quoted 61 lines

---
  arch/powerpc/crypto/Kconfig | 32 ++++++++++++++++----------------

  1 file changed, 16 insertions(+), 16 deletions(-)
arch/powerpc/crypto/Kconfig +0 -0
index 09ebcbdfb34f..96ca2c4c8827 100644
@@ -105,22 +105,22 @@ config CRYPTO_AES_PPC_SPE

           architecture specific assembler implementations that work on 1KB tables or 256 bytes S-boxes.

-config CRYPTO_AES_GCM_P10
-       tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
-       depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
-       select CRYPTO_LIB_AES
-       select CRYPTO_ALGAPI
-       select CRYPTO_AEAD
-       select CRYPTO_SKCIPHER
-       help
-         AEAD cipher: AES cipher algorithms (FIPS-197) -         GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
-         Architecture: powerpc64 using:
-           - little-endian
-           - Power10 or later features
-
-         Support for cryptographic acceleration instructions on Power10 or
-         later CPU. This module supports stitched acceleration for AES/GCM.

arch/powerpc/crypto/Kconfig +2 -0
+#config CRYPTO_AES_GCM_P10
+#      tristate "Stitched AES/GCM acceleration support on P10 or 

later CPU (PPC)"

arch/powerpc/crypto/Kconfig +8 -0
+#      depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
+#      select CRYPTO_LIB_AES
+#      select CRYPTO_ALGAPI
+#      select CRYPTO_AEAD
+#      select CRYPTO_SKCIPHER
+#      help
+#        AEAD cipher: AES cipher algorithms (FIPS-197)
+#        GCM (Galois/Counter Mode) authenticated encryption mode 

(NIST SP800-38D)

arch/powerpc/crypto/Kconfig +5 -0
+#        Architecture: powerpc64 using:
+#          - little-endian
+#          - Power10 or later features
+#
+#        Support for cryptographic acceleration instructions on 

Power10 or
+#        later CPU. This module supports stitched acceleration for AES/GCM.

  config CRYPTO_CHACHA20_P10
         tristate "Ciphers: ChaCha20, XChacha20, XChacha12 (P10 or later)"

Signature · 1 line
2.43.0
#3 lore raw
In reply to Danny Tsen
Quoted 2 lines · Danny Tsen

Removing CRYPTO_AES_GCM_P10 in Kconfig first so that we can apply the subsequent patches to fix data mismatch over ipsec tunnel.

This change log needs to stand on its own. ie. it needs to explain what the problem is and why the feature is being disabled, without reference to subsequent patches (which will probably be merged separately).

It should also have a Fixes/stable tag.

And as Christophe said, just adding a dependency on BROKEN is sufficient.

cheers

Quoted 45 lines
arch/powerpc/crypto/Kconfig +16 -16
index 09ebcbdfb34f..96ca2c4c8827 100644
@@ -105,22 +105,22 @@ config CRYPTO_AES_PPC_SPE
 	  architecture specific assembler implementations that work on 1KB
 	  tables or 256 bytes S-boxes.
 
-config CRYPTO_AES_GCM_P10
-	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
-	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
-	select CRYPTO_LIB_AES
-	select CRYPTO_ALGAPI
-	select CRYPTO_AEAD
-	select CRYPTO_SKCIPHER
-	help
-	  AEAD cipher: AES cipher algorithms (FIPS-197)
-	  GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
-	  Architecture: powerpc64 using:
-	    - little-endian
-	    - Power10 or later features
-
-	  Support for cryptographic acceleration instructions on Power10 or
-	  later CPU. This module supports stitched acceleration for AES/GCM.
+#config CRYPTO_AES_GCM_P10
+#	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
+#	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
+#	select CRYPTO_LIB_AES
+#	select CRYPTO_ALGAPI
+#	select CRYPTO_AEAD
+#	select CRYPTO_SKCIPHER
+#	help
+#	  AEAD cipher: AES cipher algorithms (FIPS-197)
+#	  GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
+#	  Architecture: powerpc64 using:
+#	    - little-endian
+#	    - Power10 or later features
+#
+#	  Support for cryptographic acceleration instructions on Power10 or
+#	  later CPU. This module supports stitched acceleration for AES/GCM.
 
 config CRYPTO_CHACHA20_P10
 	tristate "Ciphers: ChaCha20, XChacha20, XChacha12 (P10 or later)"
Signature · 1 line
2.43.0
author
#4 lore raw

Thanks Michael.

Quoted 60 lines · Michael Ellerman
Quoted 2 lines · Danny Tsen

Removing CRYPTO_AES_GCM_P10 in Kconfig first so that we can apply the subsequent patches to fix data mismatch over ipsec tunnel.

This change log needs to stand on its own. ie. it needs to explain what the problem is and why the feature is being disabled, without reference to subsequent patches (which will probably be merged separately).

It should also have a Fixes/stable tag.

And as Christophe said, just adding a dependency on BROKEN is sufficient.

cheers

Quoted 45 lines
arch/powerpc/crypto/Kconfig +16 -16
index 09ebcbdfb34f..96ca2c4c8827 100644
@@ -105,22 +105,22 @@ config CRYPTO_AES_PPC_SPE
  	  architecture specific assembler implementations that work on 1KB
  	  tables or 256 bytes S-boxes.
 
-config CRYPTO_AES_GCM_P10
-	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
-	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
-	select CRYPTO_LIB_AES
-	select CRYPTO_ALGAPI
-	select CRYPTO_AEAD
-	select CRYPTO_SKCIPHER
-	help
-	  AEAD cipher: AES cipher algorithms (FIPS-197)
-	  GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
-	  Architecture: powerpc64 using:
-	    - little-endian
-	    - Power10 or later features
-
-	  Support for cryptographic acceleration instructions on Power10 or
-	  later CPU. This module supports stitched acceleration for AES/GCM.
+#config CRYPTO_AES_GCM_P10
+#	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
+#	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
+#	select CRYPTO_LIB_AES
+#	select CRYPTO_ALGAPI
+#	select CRYPTO_AEAD
+#	select CRYPTO_SKCIPHER
+#	help
+#	  AEAD cipher: AES cipher algorithms (FIPS-197)
+#	  GCM (Galois/Counter Mode) authenticated encryption mode (NIST SP800-38D)
+#	  Architecture: powerpc64 using:
+#	    - little-endian
+#	    - Power10 or later features
+#
+#	  Support for cryptographic acceleration instructions on Power10 or
+#	  later CPU. This module supports stitched acceleration for AES/GCM.
 
  config CRYPTO_CHACHA20_P10
  	tristate "Ciphers: ChaCha20, XChacha20, XChacha12 (P10 or later)"
Signature · 1 line
2.43.0