Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792594230; b=T6Ydw8GBykpEnH/qxUNkE/W8mFSghGfxYlGYXfQIbZlyOasKflzbITUXAtsV0f0iKaBy zBlhFbvRvnzrXOQ9wnz0YmveTZylVrLbk+FGQ+JrolQLKVH1XPUexV9psDnOwCcaPn/xv GRz14z3QB16aYdpN4XMaZjymiXSYbMy1F9qWrjBwPvkp6ioKQZ0wqmFZc9aTVDJPCQtAB 7UdvoPfucopu6NbmeIkdIRMLByf2DHZ1166Q55k3sdnNIgm08d9Ercl0PyluLfPbuL67m J+frgsCbqupap9ImUprDFZ3kKsc91/cwkEk057nZn8/ip0iwR4cB20svEoiemSeNMHg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792594230; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=eXi+71TzoiBfq3CIEJra9x9Id8XOVVmexwnJvUkRVy4=; b=Hlypplwokeub2qPGHx0BGyVDXGoYs5+PC1RGEFf2F3QdWUD1q/iBq4ocsHYH3TUQLecp iwmxVnFBou6RKq0hWoR73u/N1N93EHn6Pg4HRtRWudahR/DbXiDHnq7tqXJy8s8jb9+tm GhVvFgm0D5LUnVx/ZQ32339c+gnBR1SjKyaE28m7jywtrKCvyaMWhC1+rbYgUgPXd3VYR LgiyjSKbujqZeqDcH5E9/69C2Nj1e0CqhatymPIoW2RGKuvh5NtoBBTWshr9DNYXbxwYQ UBKMVGRM3bzHjOEHAPsvuNSrzuWUqXD/mmKUWcUW4w9E21ekkwoijKGCSl1A9ajW3Vw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=hTBk6mWD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55A47606A319 for ; Wed, 21 Oct 2026 14:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=hTBk6mWD Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8ABC1F000C1; Wed, 21 Oct 2026 14:50:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792594230; bh=eXi+71TzoiBfq3CIEJra9x9Id8XOVVmexwnJvUkRVy4=; h=Subject:To:Cc:From:Date; b=hTBk6mWDN8TYiVxmbTmJ1J9UWMssnkOINaPhFKolSPJa2f24OR9ofUnDXy2RjN2cG fSz9jTnJ0H91XE8imUoWV3Io5r++kWjt7ULEcaWC33GETM6Bsbv3g02S5fxi/JjpsN nTHyp7FFYEC05WxGTqBQ6ocDUSrjLuCNicozgJ+A= Subject: FAILED: patch "[PATCH] lib/crypto: poly1305: Use memzero_explicit() in" failed to apply to 5.15-stable tree To: ebiggers@kernel.org,ardb@kernel.org,sashiko-bot@kernel.org Cc: From: Date: Wed, 21 Oct 2026 16:40:50 +0200 Message-ID: <2026102150-crusher-felt-tip-da8f@gregkh> X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x da619121a5d271e78ec709a1f9a3c5f99b9e10ad # git commit -s git send-email --to '' --in-reply-to '2026102150-crusher-felt-tip-da8f@gregkh' --subject-prefix 'PATCH 5.15.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From da619121a5d271e78ec709a1f9a3c5f99b9e10ad Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 6 Oct 2026 10:34:32 +0200 Subject: [PATCH] lib/crypto: poly1305: Use memzero_explicit() in poly1305_final() Use memzero_explicit() instead of a plain struct assignment to guarantee zeroization of the 'struct poly1305_desc_ctx'. Note that dead store elimination was only theoretically possible with link-time optimization here. But it's still worth fixing. Fixes: a1d93064094c ("crypto: poly1305 - expose init/update/final library interface") Cc: stable@vger.kernel.org Reported-by: Sashiko Closes: https://sashiko.dev/#/bug/linux-c3a6bd76-f6ab-4203-892a-cd06f7aa0c34 Reviewed-by: Ard Biesheuvel Link: https://patch.msgid.link/20261006083432.16328-1-ebiggers@kernel.org Signed-off-by: Eric Biggers diff --git a/lib/crypto/poly1305.c b/lib/crypto/poly1305.c index f313ccc4b4dd..048c7afe8613 100644 --- a/lib/crypto/poly1305.c +++ b/lib/crypto/poly1305.c @@ -78,7 +78,7 @@ void poly1305_final(struct poly1305_desc_ctx *desc, u8 *dst) } poly1305_emit(&desc->state.h, dst, desc->s); - *desc = (struct poly1305_desc_ctx){}; + memzero_explicit(desc, sizeof(*desc)); } EXPORT_SYMBOL(poly1305_final);