diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-21 12:24:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-21 12:24:24 -0700 |
commit | ca4dca539184914f5e91d87153a005e45686f36e (patch) | |
tree | e682b54471d660f3324642e388a79f9c0daf9be0 /crypto | |
parent | 8648646bd7927eccf4334248e94827d5dd47acf9 (diff) | |
parent | 299e27e01d55ff34a9f122ea6c9eebe8ae8a32f5 (diff) | |
download | linux-crypto-ca4dca539184914f5e91d87153a005e45686f36e.tar.gz linux-crypto-ca4dca539184914f5e91d87153a005e45686f36e.zip |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu:
- Two long-standing bugs in the powerpc assembly of vmx
- Stack overrun caused by HASH_MAX_DESCSIZE being too small
- Regression in caam
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: vmx - ghash: do nosimd fallback manually
crypto: vmx - CTR: always increment IV as quadword
crypto: hash - fix incorrect HASH_MAX_DESCSIZE
crypto: caam - fix typo in i.MX6 devices list for errata
Diffstat (limited to '')
-rw-r--r-- | crypto/hmac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/hmac.c b/crypto/hmac.c index a68c1266..241b1868 100644 --- a/crypto/hmac.c +++ b/crypto/hmac.c @@ -157,6 +157,8 @@ static int hmac_init_tfm(struct crypto_tfm *tfm) parent->descsize = sizeof(struct shash_desc) + crypto_shash_descsize(hash); + if (WARN_ON(parent->descsize > HASH_MAX_DESCSIZE)) + return -EINVAL; ctx->hash = hash; return 0; |