]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: scatterwalk - Check for same address in map_and_copy
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 May 2015 07:11:12 +0000 (15:11 +0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 05:34:33 +0000 (21:34 -0800)
commit2352ca7ffcb67c6403a064f17195995d7d5b87f0
tree2c00e95a0d8340e52628cbaaff1da6dc2d422499
parentcfd42a7c5a289626242bc19258311222a2c853a1
crypto: scatterwalk - Check for same address in map_and_copy

Orabug: 25243093

This patch adds a check for in scatterwalk_map_and_copy to avoid
copying from the same address to the same address.  This is going
to be used for IV copying in AEAD IV generators.

There is no provision for partial overlaps.

This patch also uses the new scatterwalk_ffwd instead of doing
it by hand in scatterwalk_map_and_copy.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 74412fd5d71b6eda0beb302aa467da000f0d530c)
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
crypto/scatterwalk.c