Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Herbert Xu <herbert@gondor.apana.org.au>
To: Harald Freudenberger <freude@linux.ibm.com>
Cc: Ingo Franzki <ifranzki@linux.ibm.com>,
	Holger Dengler <dengler@linux.ibm.com>,
	linux-crypto@vger.kernel.org, Eric Biggers <ebiggers@kernel.org>
Subject: Re: CI found regression in s390 paes-ctr in linux-next
Date: Fri, 16 May 2025 15:47:23 +0800	[thread overview]
Message-ID: <aCbti3N4mC2Sa8iy@gondor.apana.org.au> (raw)
In-Reply-To: <9a6ec8ae5c7ff550b663f54189d93a67@linux.ibm.com>

On Fri, May 16, 2025 at 09:37:59AM +0200, Harald Freudenberger wrote:
> 
> I've appended a fix for this finding. However, as the reworked PAES is
> already on the way in the s390
> feature branch and will be merged into the next kernel merge window, there
> is no need to apply this
> fix to the upstream kernel. Maybe for stable kernels the fix should be
> integrated.

Good catch! This should probably go into 6.15 as well as stable.
 
> diff --git a/arch/s390/crypto/paes_s390.c b/arch/s390/crypto/paes_s390.c
> index 511093713a6f..8e92a7710294 100644
> --- a/arch/s390/crypto/paes_s390.c
> +++ b/arch/s390/crypto/paes_s390.c
> @@ -874,7 +874,7 @@ static int ctr_paes_crypt(struct skcipher_request *req)
>                 }
>                 memcpy(walk.dst.virt.addr, buf, nbytes);
>                 crypto_inc(walk.iv, AES_BLOCK_SIZE);
> -               rc = skcipher_walk_done(&walk, nbytes);
> +               rc = skcipher_walk_done(&walk, 0);

Acked-by: Herbert Xu <herbert@gondor.apana.org.au>

Thanks,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

      reply	other threads:[~2025-05-16  7:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-14 13:38 CI found regression in s390 paes-ctr in linux-next Harald Freudenberger
2025-05-15  2:09 ` Herbert Xu
2025-05-15  2:47   ` Herbert Xu
2025-05-16  7:37 ` Harald Freudenberger
2025-05-16  7:47   ` Herbert Xu [this message]

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=aCbti3N4mC2Sa8iy@gondor.apana.org.au \
    --to=herbert@gondor.apana.org.au \
    --cc=dengler@linux.ibm.com \
    --cc=ebiggers@kernel.org \
    --cc=freude@linux.ibm.com \
    --cc=ifranzki@linux.ibm.com \
    --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