diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-06 13:55:17 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-14 16:29:56 -0500 |
| commit | 63e05d4bee9efe087f4ad5f06a99d3a4f0739777 (patch) | |
| tree | c07599543e6d1792e53a991fc8b75371e4051855 /scripts | |
| parent | c5f396a6ce2a5fcf93e34acd5dd4585e0bfc18c8 (diff) | |
crypto: api - Check spawn->alg under lock in crypto_drop_spawn
commit 7db3b61b6bba4310f454588c2ca6faf2958ad79f upstream.
We need to check whether spawn->alg is NULL under lock as otherwise
the algorithm could be removed from under us after we have checked
it and found it to be non-NULL. This could cause us to remove the
spawn from a non-existent list.
Fixes: 7ede5a5ba55a ("crypto: api - Fix crypto_drop_spawn crash...")
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
