]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
crypto: algif_skcipher - sendmsg SG marking is off by one
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 19 Jan 2016 13:23:57 +0000 (21:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Feb 2016 20:31:04 +0000 (12:31 -0800)
commit3dd3e2544c48d55e975efca5f34b77dbbe8895c9
treedeff4eed93c3f5ab65091da63091b10e8bf79c80
parentfec8beab63283003b546f83eebbbe32efb9acc53
crypto: algif_skcipher - sendmsg SG marking is off by one

commit 202736d99b7f29279db9da61587f11a08a04a9c6 upstream.

We mark the end of the SG list in sendmsg and sendpage and unmark
it on the next send call.  Unfortunately the unmarking in sendmsg
is off-by-one, leading to an SG list that is too short.

Fixes: 0f477b655a52 ("crypto: algif - Mark sgl end at the end of data")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
crypto/algif_skcipher.c