summaryrefslogtreecommitdiff
path: root/crypto/xor.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2017-04-10 17:59:07 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2017-04-10 19:09:19 +0800
commite179633f9e479876cf8339df9f0a9f4e56f46ea0 (patch)
treeebd1e24a91d16c8620c1855dfc6fe8b209a6bde3 /crypto/xor.c
parent274bd8780beb48aa87d38c2152c5c467ba93eff4 (diff)
downloadlinux-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 'crypto/xor.c')
0 files changed, 0 insertions, 0 deletions