All of lore.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>,
	linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org,
	sparclinux@vger.kernel.org, linux-s390@vger.kernel.org,
	x86@kernel.org, Ard Biesheuvel <ardb@kernel.org>,
	"Jason A . Donenfeld " <Jason@zx2c4.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [v3 PATCH 00/13] Architecture-optimized SHA-256 library API
Date: Tue, 29 Apr 2025 19:38:49 -0700	[thread overview]
Message-ID: <20250430023849.GA275186@sol.localdomain> (raw)
In-Reply-To: <aBGKg5bq0zLkhy3-@gondor.apana.org.au>

On Wed, Apr 30, 2025 at 10:27:15AM +0800, Herbert Xu wrote:
> On Tue, Apr 29, 2025 at 09:57:49AM -0700, Eric Biggers wrote:
> >
> > To be clear, the objections I have on your v2 patchset still hold.  Your
> > unsolicited changes to my patches add unnecessary complexity and redundancy,
> > make the crypto_shash API even harder to use correctly, and also break the build
> > for several architectures.  If you're going to again use your maintainer
> > privileges to push these out anyway over my objections, I'd appreciate it if you
> > at least made your dubious changes as incremental patches using your own
> > authorship so that they can be properly reviewed/blamed.
> 
> Well the main problem is that your patch introduces a regression
> in the shash sha256 code by making its export format differ from
> other shash sha256 implementations (e.g., padlock-sha).
> 
> So your first patch cannot stand as is.  What I could do is split up
> the first patch so that the lib/crypto sha stuff goes in by itself
> followed by a separate patch replacing the crypto/sha256 code.
> 
> > Please also note that I've sent a v4 which fixes the one real issue that my v1
> > patchset had: https://lore.kernel.org/r/20250428170040.423825-1-ebiggers@kernel.org
> 
> Yes I've seen it but it still has the same issue of changing the
> shash sha256 export format.

Nothing requires that the export formats be consistent, but also the fact that
padlock-sha uses a weird format in the first place is an artificial problem that
you introduced just a couple weeks ago.  And even if we *must* use the same
format as padlock-sha, that can be done by using your crypto_sha256_export_lib
and crypto_sha256_import_lib, without all your other changes.

- Eric

WARNING: multiple messages have this Message-ID (diff)
From: Eric Biggers <ebiggers@kernel.org>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Linux Crypto Mailing List <linux-crypto@vger.kernel.org>,
	linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org,
	linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org,
	sparclinux@vger.kernel.org, linux-s390@vger.kernel.org,
	x86@kernel.org, Ard Biesheuvel <ardb@kernel.org>,
	"Jason A . Donenfeld " <Jason@zx2c4.com>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: [v3 PATCH 00/13] Architecture-optimized SHA-256 library API
Date: Tue, 29 Apr 2025 19:38:49 -0700	[thread overview]
Message-ID: <20250430023849.GA275186@sol.localdomain> (raw)
In-Reply-To: <aBGKg5bq0zLkhy3-@gondor.apana.org.au>

On Wed, Apr 30, 2025 at 10:27:15AM +0800, Herbert Xu wrote:
> On Tue, Apr 29, 2025 at 09:57:49AM -0700, Eric Biggers wrote:
> >
> > To be clear, the objections I have on your v2 patchset still hold.  Your
> > unsolicited changes to my patches add unnecessary complexity and redundancy,
> > make the crypto_shash API even harder to use correctly, and also break the build
> > for several architectures.  If you're going to again use your maintainer
> > privileges to push these out anyway over my objections, I'd appreciate it if you
> > at least made your dubious changes as incremental patches using your own
> > authorship so that they can be properly reviewed/blamed.
> 
> Well the main problem is that your patch introduces a regression
> in the shash sha256 code by making its export format differ from
> other shash sha256 implementations (e.g., padlock-sha).
> 
> So your first patch cannot stand as is.  What I could do is split up
> the first patch so that the lib/crypto sha stuff goes in by itself
> followed by a separate patch replacing the crypto/sha256 code.
> 
> > Please also note that I've sent a v4 which fixes the one real issue that my v1
> > patchset had: https://lore.kernel.org/r/20250428170040.423825-1-ebiggers@kernel.org
> 
> Yes I've seen it but it still has the same issue of changing the
> shash sha256 export format.

Nothing requires that the export formats be consistent, but also the fact that
padlock-sha uses a weird format in the first place is an artificial problem that
you introduced just a couple weeks ago.  And even if we *must* use the same
format as padlock-sha, that can be done by using your crypto_sha256_export_lib
and crypto_sha256_import_lib, without all your other changes.

- Eric

_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

  reply	other threads:[~2025-04-30  2:38 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-28  5:17 [v3 PATCH 00/13] Architecture-optimized SHA-256 library API Herbert Xu
2025-04-28  5:17 ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 01/13] crypto: sha256 - support arch-optimized lib and expose through shash Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 02/13] crypto: arm/sha256 - implement library instead of shash Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 03/13] crypto: arm64/sha256 - remove obsolete chunking logic Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 04/13] crypto: arm64/sha256 - implement library instead of shash Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 05/13] crypto: mips/sha256 " Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 06/13] crypto: powerpc/sha256 " Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 07/13] crypto: riscv/sha256 " Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 08/13] crypto: s390/sha256 " Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 09/13] crypto: sparc - move opcodes.h into asm directory Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 10/13] crypto: sparc/sha256 - implement library instead of shash Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 11/13] crypto: x86/sha256 " Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 12/13] crypto: sha256 - remove sha256_base.h Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-28  5:17 ` [v3 PATCH 13/13] crypto: lib/sha256 - improve function prototypes Herbert Xu
2025-04-28  5:17   ` Herbert Xu
2025-04-29 16:57 ` [v3 PATCH 00/13] Architecture-optimized SHA-256 library API Eric Biggers
2025-04-29 16:57   ` Eric Biggers
2025-04-30  2:27   ` Herbert Xu
2025-04-30  2:27     ` Herbert Xu
2025-04-30  2:38     ` Eric Biggers [this message]
2025-04-30  2:38       ` Eric Biggers
2025-04-30  2:43       ` Herbert Xu
2025-04-30  2:43         ` 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=20250430023849.GA275186@sol.localdomain \
    --to=ebiggers@kernel.org \
    --cc=Jason@zx2c4.com \
    --cc=ardb@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=sparclinux@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@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 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.