Skip to contentSkip to conversation

crypto: Removing CRYPTO_AES_GCM_P10.

PATCH In review Danny Tsen 5 participants 6 messages Sep 19, 2024 – Sep 22, 2024

Subsystems (4)
lore
Share & tools
lore

Danny Tsen

author
#0 lore raw

PATCH v3 1/1 crypto: Removing CRYPTO_AES_GCM_P10.

Data mismatch found when testing ipsec tunnel with AES/GCM crypto. Disabling CRYPTO_AES_GCM_P10 in Kconfig for this feature.

Fixes fd0e9b3e2ee6 ("crypto: p10-aes-gcm - An accelerated AES/GCM stitched implementation")
Fixes cdcecfd9991f ("crypto: p10-aes-gcm - Glue code for AES/GCM stitched implementation")
Fixes 45a4672b9a6e2 ("crypto: p10-aes-gcm - Update Kconfig and Makefile")
---
 arch/powerpc/crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/crypto/Kconfig +1 -0
index 09ebcbdfb34f..46a4c85e85e2 100644
@@ -107,6 +107,7 @@ config CRYPTO_AES_PPC_SPE
 
 config CRYPTO_AES_GCM_P10
 	tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
+	depends on BROKEN
 	depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
 	select CRYPTO_LIB_AES
 	select CRYPTO_ALGAPI
Signature · 1 line
2.43.0
#1 lore raw
FYI: kernel test robot notices the stable kernel rule is not satisfied.

Hi,

Thanks for your patch.

FYI: kernel test robot notices the stable kernel rule is not satisfied.

The check is based on https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html#option-1

Rule: add the tag "Cc: [email protected]" in the sign-off area to have the patch automatically included in the stable tree.
Subject: [PATCH v3] crypto: Removing CRYPTO_AES_GCM_P10.

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#2 lore raw
In reply to Danny Tsen
Quoted 8 lines · Danny Tsen

Data mismatch found when testing ipsec tunnel with AES/GCM crypto. Disabling CRYPTO_AES_GCM_P10 in Kconfig for this feature.

Fixes fd0e9b3e2ee6 ("crypto: p10-aes-gcm - An accelerated AES/GCM stitched implementation")
Fixes cdcecfd9991f ("crypto: p10-aes-gcm - Glue code for AES/GCM stitched implementation")
Fixes 45a4672b9a6e2 ("crypto: p10-aes-gcm - Update Kconfig and Makefile")

nitpick
checkpatch complains
Please use correct Fixes: style 'Fixes: <12 chars of sha1> ("<title line>")' -
ie: 'Fixes: 45a4672b9a6e ("crypto: p10-aes-gcm - Update Kconfig and Makefile")'

There is no rule for 12 characters, but it is generally preferred. I guess it is just a typo for you as you have correctly added other Fixes tag.

If you end up re-spinning, please correct this

Also, just to understand,

"A Fixes: tag indicates that the patch fixes an issue in a previous
commit. It is used to make it easy to determine where a bug originated, which can help review a bug fix"

from
https://docs.kernel.org/process/submitting-patches.html

should there not be just single Fixes tag? as bug originated from one commit, may be the commit that actually broke the functionality.

P.S.
Not expert on this, just trying to learn.

Kamlesh

#3 lore raw

Hi Kamlesh,

Quoted 17 lines · On Fri, 20 Sep 2024 15:07:19 +0530 Kamlesh Gurudasani <[email protected]> wrote:
Quoted 8 lines · Danny Tsen

Data mismatch found when testing ipsec tunnel with AES/GCM crypto. Disabling CRYPTO_AES_GCM_P10 in Kconfig for this feature.

Fixes fd0e9b3e2ee6 ("crypto: p10-aes-gcm - An accelerated AES/GCM stitched implementation")
Fixes cdcecfd9991f ("crypto: p10-aes-gcm - Glue code for AES/GCM stitched implementation")
Fixes 45a4672b9a6e2 ("crypto: p10-aes-gcm - Update Kconfig and Makefile")

nitpick
checkpatch complains
Please use correct Fixes: style 'Fixes: <12 chars of sha1> ("<title line>")' -
ie: 'Fixes: 45a4672b9a6e ("crypto: p10-aes-gcm - Update Kconfig and Makefile")'

Quoted 3 lines

There is no rule for 12 characters, but it is generally preferred. I guess it is just a typo for you as you have correctly added other Fixes tag.

It should be at least 12 hex digits i.e. more is fine. It is possible that some commits need more than 12 hex digits of the SHA1 to be uniquely identified in some git repositories already. I guess checkpatch needs a patch.

Quoted 11 lines

Also, just to understand,

"A Fixes: tag indicates that the patch fixes an issue in a previous
commit. It is used to make it easy to determine where a bug originated, which can help review a bug fix"

from
https://docs.kernel.org/process/submitting-patches.html

should there not be just single Fixes tag? as bug originated from one commit, may be the commit that actually broke the functionality.

While we generally prefer that a patch only fix one bug, it is very possible that the bug may have been introduced in more than one commit e.g. in different files.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#4 lore raw
In reply to Danny Tsen
Quoted 11 lines · Danny Tsen

Data mismatch found when testing ipsec tunnel with AES/GCM crypto. Disabling CRYPTO_AES_GCM_P10 in Kconfig for this feature.

Fixes fd0e9b3e2ee6 ("crypto: p10-aes-gcm - An accelerated AES/GCM stitched implementation")
Fixes cdcecfd9991f ("crypto: p10-aes-gcm - Glue code for AES/GCM stitched implementation")
Fixes 45a4672b9a6e2 ("crypto: p10-aes-gcm - Update Kconfig and Makefile")
---
 arch/powerpc/crypto/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
author
#5 lore raw

Thanks Herbert.

-Danny

Quoted 13 lines · Herbert Xu
Quoted 11 lines · Danny Tsen

Data mismatch found when testing ipsec tunnel with AES/GCM crypto. Disabling CRYPTO_AES_GCM_P10 in Kconfig for this feature.

Fixes fd0e9b3e2ee6 ("crypto: p10-aes-gcm - An accelerated AES/GCM stitched implementation")
Fixes cdcecfd9991f ("crypto: p10-aes-gcm - Glue code for AES/GCM stitched implementation")
Fixes 45a4672b9a6e2 ("crypto: p10-aes-gcm - Update Kconfig and Makefile")
---
  arch/powerpc/crypto/Kconfig | 1 +
  1 file changed, 1 insertion(+)

Patch applied. Thanks.