]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2026 04:57:50 +0000 (06:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2026 04:57:50 +0000 (06:57 +0200)
added patches:
crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch

queue-6.18/crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch [new file with mode: 0644]
queue-6.18/series

diff --git a/queue-6.18/crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch b/queue-6.18/crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch
new file mode 100644 (file)
index 0000000..366d89e
--- /dev/null
@@ -0,0 +1,36 @@
+From 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa Mon Sep 17 00:00:00 2001
+From: Herbert Xu <herbert@gondor.apana.org.au>
+Date: Wed, 15 Apr 2026 07:39:06 +0800
+Subject: crypto: authencesn - Fix src offset when decrypting in-place
+
+From: Herbert Xu <herbert@gondor.apana.org.au>
+
+commit 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa upstream.
+
+The src SG list offset wasn't set properly when decrypting in-place,
+fix it.
+
+Reported-by: Wolfgang Walter <linux@stwm.de>
+Fixes: e02494114ebf ("crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption")
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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,
index 6a67dad2e374dbefb8c02796818014297b774908..2e775f07b1b6badfbe139c3a0f3a6e4e352aa297 100644 (file)
@@ -1,3 +1,4 @@
+crypto-authencesn-fix-src-offset-when-decrypting-in-place.patch
 arm64-tlb-allow-xzr-argument-to-tlbi-ops.patch
 arm64-tlb-optimize-arm64_workaround_repeat_tlbi.patch
 arm64-tlb-introduce-__tlbi_sync_s1ish_-kernel-batch-.patch