crypto: powerpc/poly1305 - add depends on BROKEN for now
Subsystems (3)
PATCH 1/1 crypto: powerpc/poly1305 - add depends on BROKEN for now
From: Eric Biggers <[email protected]>
As discussed in the thread containing
https://lore.kernel.org/linux-crypto/20250510053308.GB505731@sol/, the Power10-optimized Poly1305 code is currently not safe to call in softirq context. Disable it for now. It can be re-enabled once it is fixed.
--- arch/powerpc/lib/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/lib/crypto/Kconfig +1 -0
@@ -8,10 +8,11 @@ config CRYPTO_CHACHA20_P10 select CRYPTO_ARCH_HAVE_LIB_CHACHA config CRYPTO_POLY1305_P10 tristate depends on PPC64 && CPU_LITTLE_ENDIAN && VSX + depends on BROKEN # Needs to be fixed to work in softirq context default CRYPTO_LIB_POLY1305 select CRYPTO_ARCH_HAVE_LIB_POLY1305 select CRYPTO_LIB_POLY1305_GENERIC config CRYPTO_SHA256_PPC_SPE
base-commit: 57999ed153ed7e651afecbabe0e998e75cf2d798
Signature · 1 line
2.49.0
Herbert Xu
maintainerQuoted 7 lines · Eric Biggers
From: Eric Biggers <[email protected]>
As discussed in the thread containing
https://lore.kernel.org/linux-crypto/20250510053308.GB505731@sol/, the Power10-optimized Poly1305 code is currently not safe to call in softirq context. Disable it for now. It can be re-enabled once it is fixed.
Quoted 6 lines
Fixes ba8f8624fde2 ("crypto: poly1305-p10 - Glue code for optmized Poly1305 implementation for ppc64le")Signed-off-by Eric Biggers <[email protected]>---
arch/powerpc/lib/crypto/Kconfig| 1 +1 file changed, 1 insertion(+)
I thought this fix should be enough, no?
https://patchwork.kernel.org/project/linux-crypto/patch/[email protected]/
Cheers,
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
Quoted 15 lines · Herbert Xu
Quoted 7 lines · Eric Biggers
From: Eric Biggers <[email protected]>
As discussed in the thread containing
https://lore.kernel.org/linux-crypto/20250510053308.GB505731@sol/, the Power10-optimized Poly1305 code is currently not safe to call in softirq context. Disable it for now. It can be re-enabled once it is fixed.Quoted 6 lines
Fixes ba8f8624fde2 ("crypto: poly1305-p10 - Glue code for optmized Poly1305 implementation for ppc64le")Signed-off-by Eric Biggers <[email protected]>---
arch/powerpc/lib/crypto/Kconfig| 1 +1 file changed, 1 insertion(+)
Quoted 3 lines
I thought this fix should be enough, no?
https://patchwork.kernel.org/project/linux-crypto/patch/[email protected]/
I didn't notice that. Probably, though I don't have time to review this subtle Poly1305 code. Especially with all the weird unions in the code. Would be great if the PowerPC folks would take a look.
- Eric
Herbert Xu
maintainerQuoted 4 lines · Eric Biggers
I didn't notice that. Probably, though I don't have time to review this subtle Poly1305 code. Especially with all the weird unions in the code. Would be great if the PowerPC folks would take a look.
Of course more reviews would be great and I think they're all on the cc list.
I did test this by manually forcing the conversion, which is how I discovered that powerpc wasn't even using donna64.
Cheers,
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
Le 15/05/2025 à 04:10, Herbert Xu a écrit :
Quoted 6 lines · Eric Biggers
Quoted 4 lines
I didn't notice that. Probably, though I don't have time to review this subtle Poly1305 code. Especially with all the weird unions in the code. Would be great if the PowerPC folks would take a look.
Quoted 6 lines
Of course more reviews would be great and I think they're all on the cc list.
I did test this by manually forcing the conversion, which is how I discovered that powerpc wasn't even using donna64.
As far as I can see related patches found in linux-next tree were not sent to [email protected].
Could you resend them, and split out the introduction of CONFIG_ARCH_SUPPORTS_INT128 from other parts of patch "crypto: powerpc/poly1305 - Add SIMD fallback" and add the lib/tishift.S in the patch which adds CONFIG_ARCH_SUPPORTS_INT128 ?
Thanks
Christophe
Herbert Xu
maintainerQuoted 3 lines · Christophe Leroy
As far as I can see related patches found in linux-next tree were not sent to [email protected].
I just checked and it was definitely sent to linuxppc-dev:
Quoted 4 lines
Could you resend them, and split out the introduction of
CONFIG_ARCH_SUPPORTS_INT128from other parts of patch "crypto:
powerpc/poly1305 - Add SIMD fallback" and add thelib/tishift.Sin the patch which addsCONFIG_ARCH_SUPPORTS_INT128?
I'll just revert them and mark powerpc/poly1305 as broken. You guys can sort it out later.
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
Le 20/05/2025 à 04:32, Herbert Xu a écrit :
Quoted 6 lines · Christophe Leroy
Quoted 3 lines
As far as I can see related patches found in linux-next tree were not sent to [email protected].
I just checked and it was definitely sent to linuxppc-dev:
Oops sorry, my mistake.
I see them in patchwork, they still have status 'New'.
Quoted 10 lines
Cc [email protected], Linux Crypto Mailing List <[email protected]>, Venkat Rao Bagalkote <[email protected]>, Madhavan Srinivasan <[email protected]>, Stephen Rothwell <[email protected]>, Danny Tsen <[email protected]>, [email protected], Michael Ellerman <[email protected]>Quoted 4 lines
Could you resend them, and split out the introduction of
CONFIG_ARCH_SUPPORTS_INT128from other parts of patch "crypto:
powerpc/poly1305 - Add SIMD fallback" and add thelib/tishift.Sin the patch which addsCONFIG_ARCH_SUPPORTS_INT128?I'll just revert them and mark powerpc/poly1305 as broken. You guys can sort it out later.
Fine, lets do that and make sure all necessary bits are there when enabling CONFIG_ARCH_SUPPORTS_INT128
Thanks
Christophe
Herbert Xu
maintainerQuoted 7 lines · Eric Biggers
From: Eric Biggers <[email protected]>
As discussed in the thread containing
https://lore.kernel.org/linux-crypto/20250510053308.GB505731@sol/, the Power10-optimized Poly1305 code is currently not safe to call in softirq context. Disable it for now. It can be re-enabled once it is fixed.
Quoted 6 lines
Fixes ba8f8624fde2 ("crypto: poly1305-p10 - Glue code for optmized Poly1305 implementation for ppc64le")Signed-off-by Eric Biggers <[email protected]>--- arch/powerpc/lib/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