Skip to content

Commit 1cfb460

Browse files
committed
Merge tag 'v6.12-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: - Disable buggy p10 aes-gcm code on powerpc - Fix module aliases in paes_s390 - Fix buffer overread in caam * tag 'v6.12-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: powerpc/p10-aes-gcm - Disable CRYPTO_AES_GCM_P10 crypto: s390/paes - Fix module aliases crypto: caam - Pad SG length when allocating hash edesc
2 parents e1b061b + 44ac462 commit 1cfb460

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

arch/powerpc/crypto/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ config CRYPTO_AES_PPC_SPE
107107

108108
config CRYPTO_AES_GCM_P10
109109
tristate "Stitched AES/GCM acceleration support on P10 or later CPU (PPC)"
110+
depends on BROKEN
110111
depends on PPC64 && CPU_LITTLE_ENDIAN && VSX
111112
select CRYPTO_LIB_AES
112113
select CRYPTO_ALGAPI

arch/s390/crypto/paes_s390.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,10 @@ static int __init paes_s390_init(void)
802802
module_init(paes_s390_init);
803803
module_exit(paes_s390_fini);
804804

805-
MODULE_ALIAS_CRYPTO("paes");
805+
MODULE_ALIAS_CRYPTO("ecb(paes)");
806+
MODULE_ALIAS_CRYPTO("cbc(paes)");
807+
MODULE_ALIAS_CRYPTO("ctr(paes)");
808+
MODULE_ALIAS_CRYPTO("xts(paes)");
806809

807810
MODULE_DESCRIPTION("Rijndael (AES) Cipher Algorithm with protected keys");
808811
MODULE_LICENSE("GPL");

drivers/crypto/caam/caamhash.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ static struct ahash_edesc *ahash_edesc_alloc(struct ahash_request *req,
708708
GFP_KERNEL : GFP_ATOMIC;
709709
struct ahash_edesc *edesc;
710710

711+
sg_num = pad_sg_nents(sg_num);
711712
edesc = kzalloc(struct_size(edesc, sec4_sg, sg_num), flags);
712713
if (!edesc)
713714
return NULL;

0 commit comments

Comments
 (0)