public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
Subject: Re: [PATCH] crypto: scatterwalk - Change scatterwalk_next calling convention
Date: Wed, 5 Mar 2025 19:59:37 -0800	[thread overview]
Message-ID: <20250306035937.GA1153@sol.localdomain> (raw)
In-Reply-To: <Z8kZL2WlWX-KhkqR@gondor.apana.org.au>

On Thu, Mar 06, 2025 at 11:40:31AM +0800, Herbert Xu wrote:
> On Wed, Mar 05, 2025 at 07:36:58PM -0800, Eric Biggers wrote:
> > 
> > That's exactly what happens to struct skcipher_walk.  This patch adds two
> > redundant pointers to it.  Yes it's allocated on the stack, but it's still not a
> > great result.
> 
> I forgot to mention that :)
> 
> I marked a few places in the patch with XXXs to indicate where
> the API is being abused.  skcipher_walk happens to be one of them
> where it's mixing the new done calls with the old map call.  So
> I will come back to this and fix it to use the new next call instead.
> 
> At that point I intend to have exactly one virtual pointer each
> for src/dst in skcipher_walk, probably the new one that I've just
> added to scatterwalk.
> 
> Thanks,

I don't think it will be quite that simple, since the skcipher_walk code relies
on the different parts being split up so that it can do things like calculate
the length before it starts mapping anything.  If you can make it work, we can
do that.  But until that additional patch is ready I don't think it makes sense
to merge this one, as it leaves things half-baked with the redundant pointers.

- Eric

  reply	other threads:[~2025-03-06  3:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-06  2:52 [PATCH] crypto: scatterwalk - Change scatterwalk_next calling convention Herbert Xu
2025-03-06  3:10 ` Eric Biggers
2025-03-06  3:18   ` Herbert Xu
2025-03-06  3:36     ` Eric Biggers
2025-03-06  3:40       ` Herbert Xu
2025-03-06  3:59         ` Eric Biggers [this message]
2025-03-06  6:07           ` [PATCH] crypto: skcipher - Elinimate duplicate virt.addr field Herbert Xu
2025-03-06 17:29             ` Eric Biggers
2025-03-07  3:04               ` Herbert Xu
2025-03-06 17:34 ` [PATCH] crypto: scatterwalk - Change scatterwalk_next calling convention Eric Biggers
2025-03-07  3:05   ` Herbert Xu

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=20250306035937.GA1153@sol.localdomain \
    --to=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox