From mboxrd@z Thu Jan 1 00:00:00 1970 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=1792594225; b=y3YYjr3pzsB53dgae0zv8HIwO6HYZu9MlFhR+C8FpiWb8YXwuoITRqbZOE2KG8lYErUd 7yA9tJYzX+7sudPkFfJG5lgTVFpwZ0b/3NDylj2JKHQMj9fUKOlup6V783rfmbiqKKDo/ aSJhsAHeElFbMNqoIzI3fqa9SxsiPmJsbHerLjluL/B/9rHUGNnruaWB/X9HWxBhtSuam Iv+pACR867aNC6HCJqgbtvDG8CisJtZeqTpDMGN2q5sIxalM76e+B8Sx8MLpncpryHYPG I2712w6oN52w3q1F5cdxkk3ObC+j5iWxetz8L04eN9eb+xnoKI5o/GN5diLRMG/xt4g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792594225; h=Received:DKIM-Signature:Subject:To:Cc:From:Date:Message-ID: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=QVsttmww1cu4Fcx2hMLqEU5l2AHBFULRHLBT67IaFU4=; b=PBgMZS1Z9pw125h5AlS4Hn7KjVz0nSsbqlgOGBL87bacEgwJ6JFUnONd0ts/bUC/E6XH Wqzw0eGmwvmuRSqaF2a4VzTWPTXpeLnTEs7pFJ1/DkGqM0q4g9NVNAH5jOTNsBl0CB697 scaCw2+HwQloZyO/sYoTLt9K3PD2eQSFmwgeXHN7h8E/SIjGA4SW36X/kOOF/NXBQeGA+ OOQz7q2GiPCGypuZTtTLZqiXHm9/g+C0QDBNb2DbKQH6lCcK3Y/llyGzRUvr3eMo+JpAm vX6645Oto8AfmX+U+ZhbJEL9fbsHmksPmFE50Up5FeR6e6y+MzK/mpMWqGa/bdFKAYw== 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=dVKPU2GS; 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 B2EAC606A319 for ; Wed, 21 Oct 2026 14:50:24 +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=dVKPU2GS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DADF1F000C1; Wed, 21 Oct 2026 14:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792594224; bh=QVsttmww1cu4Fcx2hMLqEU5l2AHBFULRHLBT67IaFU4=; h=Subject:To:Cc:From:Date; b=dVKPU2GSUZ3ipPMSjo5i/p7NozgLFrfF1fCeTyKp6Vcg2LGF+D9JeO7K4rsKa88WC qAOaP8aItpyNWNMQ9MIMK9ZwuiDW3ZlNvX+yXc0pO4QcYkEDFL9Wdkcji2xacDQdTp LF5K82tx6SU951XpU/2IDA9YcQ3l6icoW3Eac+Wg= Subject: FAILED: patch "[PATCH] lib/crypto: poly1305: Use memzero_explicit() in" failed to apply to 6.12-stable tree To: ebiggers@kernel.org,ardb@kernel.org,sashiko-bot@kernel.org Cc: From: Date: Wed, 21 Oct 2026 16:40:49 +0200 Message-ID: <2026102149-couch-tile-803f@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 6.12-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-6.12.y git checkout FETCH_HEAD git cherry-pick -x da619121a5d271e78ec709a1f9a3c5f99b9e10ad # git commit -s git send-email --to '' --in-reply-to '2026102149-couch-tile-803f@gregkh' --subject-prefix 'PATCH 6.12.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);