From: Eric Biggers <ebiggers@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: David Howells <dhowells@redhat.com>,
Marc Dionne <marc.dionne@auristor.com>,
linux-crypto@vger.kernel.org,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Simon Horman <horms@kernel.org>
Subject: Re: [PATCH net-next 2/5] net/rxrpc: Use local FCrypt-PCBC implementation
Date: Fri, 30 Oct 2026 18:17:26 +0000 [thread overview]
Message-ID: <20261030181726.GB2500145@google.com> (raw)
In-Reply-To: <sashiko-outbox-190324@kernel.org>
On Fri, Oct 30, 2026 at 04:53:35AM +0000, sashiko-bot@kernel.org wrote:
> Does this code leave the cryptographic key material on the stack?
>
> The local struct fcrypt_key cipher is allocated on the stack and initialized
> with the session key schedule via fcrypt_preparekey(). After the decryption is
> complete, the function returns without securely erasing this key schedule from
> the stack.
>
> Could we call memzero_explicit(&cipher, sizeof(cipher)) before returning to
> ensure the key material is cleared?
The old code left the key on the stack as well (in 'iv', since the key
is reused as the IV here...), and I didn't aim to change that in this
patch. And FCrypt is not secure anyway. Only real reason to add this
would be so that LLMs don't complain.
- Eric
next prev parent reply other threads:[~2026-10-30 18:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 2:43 [PATCH net-next 0/5] Consolidate FCrypt and PCBC code into net/rxrpc/ Eric Biggers
2026-04-28 2:43 ` [PATCH net-next 1/5] net/rxrpc: Add local FCrypt-PCBC implementation Eric Biggers
2026-04-28 6:24 ` David Howells
2026-04-28 6:33 ` David Howells
2026-10-30 4:53 ` sashiko-bot
2026-10-30 18:13 ` Eric Biggers
2026-04-28 2:43 ` [PATCH net-next 2/5] net/rxrpc: Use " Eric Biggers
2026-05-08 18:02 ` David Howells
2026-05-08 18:23 ` Eric Biggers
2026-05-08 18:56 ` David Howells
2026-05-15 20:14 ` Eric Biggers
2026-05-15 20:58 ` David Howells
2026-10-30 4:53 ` sashiko-bot
2026-10-30 18:17 ` Eric Biggers [this message]
2026-04-28 2:43 ` [PATCH net-next 3/5] net/rxrpc: Reimplement DES-PCBC using DES library Eric Biggers
2026-10-30 4:53 ` sashiko-bot
2026-10-30 18:20 ` Eric Biggers
2026-04-28 2:43 ` [PATCH net-next 4/5] crypto: fcrypt - Remove support for FCrypt block cipher Eric Biggers
2026-04-28 10:03 ` Geert Uytterhoeven
2026-04-28 2:43 ` [PATCH net-next 5/5] crypto: pcbc - Remove support for PCBC mode Eric Biggers
2026-04-28 10:05 ` Geert Uytterhoeven
2026-04-28 7:53 ` [PATCH net-next 0/5] Consolidate FCrypt and PCBC code into net/rxrpc/ David Howells
2026-04-28 17:15 ` Marc Dionne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261030181726.GB2500145@google.com \
--to=ebiggers@kernel.org \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-crypto@vger.kernel.org \
--cc=marc.dionne@auristor.com \
--cc=pabeni@redhat.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.