]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: algif_skcipher - Cap recv SG list at ctx->used
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 May 2020 04:54:43 +0000 (14:54 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:24 +0000 (17:49 +0200)
commitbbb51ee56d52fd3204c66394813a17ba6e9cd27b
tree05f4ef821c91963ed739c0cb69877b807f7e646c
parentc0646870cb4b9b900356fbff191ae4f8640f4e7c
crypto: algif_skcipher - Cap recv SG list at ctx->used

commit 7cf81954705b7e5b057f7dc39a7ded54422ab6e1 upstream.

Somewhere along the line the cap on the SG list length for receive
was lost.  This patch restores it and removes the subsequent test
which is now redundant.

Fixes: 2d97591ef43d ("crypto: af_alg - consolidation of...")
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/algif_skcipher.c