All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Wenjia Zhang" <wenjia.zhang@oss.qualcomm.com>,
	"Bartosz Golaszewski" <brgl@kernel.org>,
	"Herbert Xu" <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org, "Wenjia Zhang" <wenjz@qti.qualcomm.com>
Subject: Re: [PATCH 2/4] crypto: qce - Size CCM decrypt output DMA for the tag length
Date: Tue, 01 Dec 2026 03:13:10 +0000	[thread overview]
Message-ID: <sashiko-outbox-242405@kernel.org> (raw)
In-Reply-To: <20261201-codex-qce-dma-bounds-upstream-20261201-v1-2-c15d01b45bce@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] crypto: qce: missing Fixes trailer for CCM decrypt output DMA
  sizing fix
--

commit 5f10f5fde7f214005300d6bdb48de54c32de881c
Author: Wenjia Zhang <wenjz@qti.qualcomm.com>

> crypto: qce - Size CCM decrypt output DMA for the tag length
>
> In BAM mode, CCM decryption emits the plaintext followed by zero bytes
> equal in length to the input authentication tag. The driver reserves a
> full 64-byte burst for that tail. For a 32-byte payload and a 16-byte
> tag, it requests 96 output bytes although the engine produces only 48.
> Output DMA then waits for bytes that will never arrive.
>
> Use authsize for the CCM decryption tail instead of QCE_BAM_BURST_SIZE.
> Keep the burst-sized tail for encryption, where the generated tag is
> padded to a burst boundary.
>
> Validate the total mapped CCM output length before starting the request,
> accounting for formatted associated data, the payload and the
> direction-specific tag or padding length.
>
> Signed-off-by: Wenjia Zhang <wenjz@qti.qualcomm.com>

[Severity: Low]
This looks like a bug fix for CCM decryption output DMA sizing.  Should
this include:

  Fixes: 9363efb4181c ("crypto: qce - Add support for AEAD algorithms")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261201-codex-qce-dma-bounds-upstream-20261201-v1-0-c15d01b45bce@oss.qualcomm.com?part=2

  reply	other threads:[~2026-12-01  3:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  2:54 [PATCH 0/4] QCE data DMA transfer length fixes Wenjia Zhang
2026-12-01  2:54 ` [PATCH 1/4] crypto: qce - Bound AEAD input DMA to the programmed segment Wenjia Zhang
2026-12-01  3:06   ` sashiko-bot
2026-12-01  5:06   ` Kuldeep Singh
2026-12-01  2:54 ` [PATCH 2/4] crypto: qce - Size CCM decrypt output DMA for the tag length Wenjia Zhang
2026-12-01  3:13   ` sashiko-bot [this message]
2026-12-01  2:54 ` [PATCH 3/4] crypto: qce - Bound ahash input DMA to the current segment Wenjia Zhang
2026-12-01  3:02   ` sashiko-bot
2026-12-01  2:54 ` [PATCH 4/4] crypto: qce - Bound skcipher input DMA to cryptlen Wenjia Zhang
2026-12-01  3:01   ` sashiko-bot

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=sashiko-outbox-242405@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=brgl@kernel.org \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=wenjia.zhang@oss.qualcomm.com \
    --cc=wenjz@qti.qualcomm.com \
    /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.