]> git.baikalelectronics.ru Git - kernel.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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 20 Jan 2016 13:15:45 +0000 (21:15 +0800)
commit0c851f3fcfce38934eadcc5f44b96f9ef7fe2811
tree7ec8d1d32fc795eb30a473580d861398454c3a26
parent2cc96a370b3016f84a9d2a4445315cb4dc989d43
crypto: algif_skcipher - sendmsg SG marking is off by one

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: d08c126d6fc2 ("crypto: algif - Mark sgl end at the end of data")
Cc: stable@vger.kernel.org
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_skcipher.c