diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2017-04-10 17:59:07 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-04-10 19:09:19 +0800 |
commit | e179633f9e479876cf8339df9f0a9f4e56f46ea0 (patch) | |
tree | ebd1e24a91d16c8620c1855dfc6fe8b209a6bde3 /crypto/jitterentropy-kcapi.c | |
parent | 274bd8780beb48aa87d38c2152c5c467ba93eff4 (diff) | |
download | linux-crypto-e179633f9e479876cf8339df9f0a9f4e56f46ea0.tar.gz linux-crypto-e179633f9e479876cf8339df9f0a9f4e56f46ea0.zip |
crypto: algif_aead - Fix bogus request dereference in completion function
The algif_aead completion function tries to deduce the aead_request
from the crypto_async_request argument. This is broken because
the API does not guarantee that the same request will be pased to
the completion function. Only the value of req->data can be used
in the completion function.
This patch fixes it by storing a pointer to sk in areq and using
that instead of passing in sk through req->data.
Fixes: a8e3a343aba2 ("crypto: af_alg - add async support to...")
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions