summaryrefslogtreecommitdiff
path: root/crypto/rsa.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2018-07-07 20:41:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-22 14:28:48 +0200
commitc4bfed85bae8eba6cce22f9b9cce530720527411 (patch)
tree81ad203bb86ba5ee7e26d91e73a70070e1396d5c /crypto/rsa.c
parent16b3ae12337eb1695de0031fe4e030fb7fd6c2d9 (diff)
crypto: af_alg - Initialize sg_num_bytes in error code path
commit 2546da99212f22034aecf279da9c47cbfac6c981 upstream. The RX SGL in processing is already registered with the RX SGL tracking list to support proper cleanup. The cleanup code path uses the sg_num_bytes variable which must therefore be always initialized, even in the error code path. Signed-off-by: Stephan Mueller <smueller@chronox.de> Reported-by: syzbot+9c251bdd09f83b92ba95@syzkaller.appspotmail.com #syz test: https://github.com/google/kmsan.git master CC: <stable@vger.kernel.org> #4.14 Fixes: e870456d8e7c ("crypto: algif_skcipher - overhaul memory management") Fixes: d887c52d6ae4 ("crypto: algif_aead - overhaul memory management") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/rsa.c')
0 files changed, 0 insertions, 0 deletions