diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-01 00:48:45 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-06-01 00:48:45 +0200 |
commit | 6c7e9362459d2d2e543954f254dac5d00c2c661a (patch) | |
tree | e866655ce1b602c5e5147eabfced3047c25875d4 /crypto/hmac.c | |
parent | 8648646bd7927eccf4334248e94827d5dd47acf9 (diff) | |
parent | 8dab4355510edce56ef3bb8e0f209b9d8dfe17b8 (diff) | |
download | linux-crypto-6c7e9362459d2d2e543954f254dac5d00c2c661a.tar.gz linux-crypto-6c7e9362459d2d2e543954f254dac5d00c2c661a.zip |
Merge tag 'kvm-ppc-fixes-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc into kvm-master
PPC KVM fixes for 5.2
- Several bug fixes for the new XIVE-native code.
- Replace kvm->lock by other mutexes in several places where we hold a
vcpu mutex, to avoid lock order inversions.
- Fix a lockdep warning on guest entry for radix-mode guests.
- Fix a bug causing user-visible corruption of SPRG3 on the host.
Diffstat (limited to 'crypto/hmac.c')
-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; |