]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - crypto/af_alg.c
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)
commite117765a117da3ece15689cb8a759d16c415b08c
treea0ad243511df62936e17dfde131209cd6f89221b
parentc056d910f08029662080a01b4ce2110e2c9a27b6
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: e870456d8e7c ("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