Re: [PATCH v2 0/2] crypto: Fix memcpy_sglist()
From: Herbert Xu
Date: Fri Nov 21 2025 - 22:19:43 EST
On Sat, Nov 15, 2025 at 03:08:15PM -0800, Eric Biggers wrote:
> This series rewrites memcpy_sglist() to fix the bug where it called
> functions that could fail and ignored errors.
>
> This series is targeting crypto/master.
>
> Changed in v2:
> - Don't try to support arbitrary overlaps
> - Use memcpy_page()
>
> Eric Biggers (2):
> crypto: scatterwalk - Fix memcpy_sglist() to always succeed
> Revert "crypto: scatterwalk - Move skcipher walk and use it for
> memcpy_sglist"
>
> crypto/scatterwalk.c | 345 +++++++----------------------
> crypto/skcipher.c | 261 +++++++++++++++++++++-
> include/crypto/algapi.h | 12 +
> include/crypto/internal/skcipher.h | 48 +++-
> include/crypto/scatterwalk.h | 117 +++-------
> 5 files changed, 431 insertions(+), 352 deletions(-)
>
>
> base-commit: 59b0afd01b2ce353ab422ea9c8375b03db313a21
> --
> 2.51.2
Patch applied to cryptodev. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt