diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2017-04-10 17:59:07 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-21 09:31:22 +0200 |
commit | 64ba06dc8a1d5c8e70b7b79a709bd1c90ec23afc (patch) | |
tree | 62a792fe27cd2fc4327c3107dd35bb139b64c000 /lib/dma-noop.c | |
parent | 7da0f8e547c2d3cac939da24458a88cce550af11 (diff) |
crypto: algif_aead - Fix bogus request dereference in completion function
commit e6534aebb26e32fbab14df9c713c65e8507d17e4 upstream.
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: 83094e5e9e49 ("crypto: af_alg - add async support to...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/dma-noop.c')
0 files changed, 0 insertions, 0 deletions