]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: af_alg - update correct dst SGL entry
authorStephan Mueller <smueller@chronox.de>
Wed, 30 Aug 2017 07:17:39 +0000 (09:17 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 20 Sep 2017 09:42:42 +0000 (17:42 +0800)
commit5e3f9d315b041f68e29ff0b16a5dd5778eebc71e
treea0ad243511df62936e17dfde131209cd6f89221b
parentd6aa39ad3d73cc4a001bb4cf53ae38d8f89e63e7
crypto: af_alg - update correct dst SGL entry

When two adjacent TX SGL are processed and parts of both TX SGLs
are pulled into the per-request TX SGL, the wrong per-request
TX SGL entries were updated.

This fixes a NULL pointer dereference when a cipher implementation walks
the TX SGL where some of the SGL entries were NULL.

Fixes: 32eb147bd351 ("crypto: algif_skcipher - overhaul memory...")
Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c