summaryrefslogtreecommitdiff
path: root/fs/lockd
diff options
context:
space:
mode:
authorOndrej Mosnáček <omosnacek@gmail.com>2017-11-23 13:49:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-05 11:26:30 +0100
commit861eae231b0437427676a4ed323d31097002d5a2 (patch)
tree832757e828cf62137555fb05afc77044e83ebf4a /fs/lockd
parent7f21961a2d7bfe45f734eab5b0ce6a40ee128b17 (diff)
crypto: skcipher - Fix skcipher_walk_aead_common
commit c14ca8386539a298c1c19b003fe55e37d0f0e89c upstream. The skcipher_walk_aead_common function calls scatterwalk_copychunks on the input and output walks to skip the associated data. If the AD end at an SG list entry boundary, then after these calls the walks will still be pointing to the end of the skipped region. These offsets are later checked for alignment in skcipher_walk_next, so the skcipher_walk may detect the alignment incorrectly. This patch fixes it by calling scatterwalk_done after the copychunks calls to ensure that the offsets refer to the right SG list entry. Fixes: b286d8b1a690 ("crypto: skcipher - Add skcipher walk interface") Signed-off-by: Ondrej Mosnacek <omosnacek@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions