From: Greg Kroah-Hartman Date: Thu, 23 Apr 2026 04:58:03 +0000 (+0200) Subject: 7.0-stable patches X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=a94245246f79ed540687b71936668c324cbdaa07;p=thirdparty%2Fkernel%2Fstable-queue.git 7.0-stable patches added patches: crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch --- diff --git a/queue-7.0/crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch b/queue-7.0/crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch new file mode 100644 index 0000000000..366d89eb16 --- /dev/null +++ b/queue-7.0/crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch @@ -0,0 +1,36 @@ +From 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa Mon Sep 17 00:00:00 2001 +From: Herbert Xu +Date: Wed, 15 Apr 2026 07:39:06 +0800 +Subject: crypto: authencesn - Fix src offset when decrypting in-place + +From: Herbert Xu + +commit 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa upstream. + +The src SG list offset wasn't set properly when decrypting in-place, +fix it. + +Reported-by: Wolfgang Walter +Fixes: e02494114ebf ("crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption") +Signed-off-by: Herbert Xu +Signed-off-by: Greg Kroah-Hartman +--- + crypto/authencesn.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +--- a/crypto/authencesn.c ++++ b/crypto/authencesn.c +@@ -228,9 +228,11 @@ static int crypto_authenc_esn_decrypt_ta + + decrypt: + +- if (src != dst) +- src = scatterwalk_ffwd(areq_ctx->src, src, assoclen); + dst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen); ++ if (req->src == req->dst) ++ src = dst; ++ else ++ src = scatterwalk_ffwd(areq_ctx->src, src, assoclen); + + skcipher_request_set_tfm(skreq, ctx->enc); + skcipher_request_set_callback(skreq, flags, diff --git a/queue-7.0/series b/queue-7.0/series index 65df2810bd..ff27875151 100644 --- a/queue-7.0/series +++ b/queue-7.0/series @@ -1 +1,2 @@ +crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch pwm-th1520-fix-clippy-1-warning.patch