Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH 0/4] QCE data DMA transfer length fixes
@ 2026-12-01  2:54 Wenjia Zhang
  2026-12-01  2:54 ` [PATCH 1/4] crypto: qce - Bound AEAD input DMA to the programmed segment Wenjia Zhang
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Wenjia Zhang @ 2026-12-01  2:54 UTC (permalink / raw)
  To: Bartosz Golaszewski, Herbert Xu, David S. Miller
  Cc: linux-arm-msm, linux-crypto, Wenjia Zhang

The QCE driver can map bytes beyond the crypto segment when the last
source scatterlist entry extends past the request length. This series
bounds the input mappings for AEAD, ahash and skcipher requests and
checks the mapped byte counts before submitting data DMA.

CCM decryption also requests a burst-sized output tail where the engine
produces only authentication-tag-sized zero padding. Use the tag length
for that tail and validate the expected output byte count.

The series is based on linux-next next-20261130, commit
253f86660c1f882fbf554db5eaa34bc5d66dc7e8.

Validation:
- Strict checkpatch: all four patches passed.
- ARM64 W=1: all QCE algorithms and the core driver built after each
  patch as modules; the final series also built with them built-in.
- Public prerequisite lookup and direct patch replay passed.

Prerequisite: QCE core/auxiliary split v13
https://lore.kernel.org/all/20261127-qce-fix-self-tests-v13-1-80b601792901@oss.qualcomm.com/

Rebase and cover-letter preparation were assisted by Codex.

---
Wenjia Zhang (4):
      crypto: qce - Bound AEAD input DMA to the programmed segment
      crypto: qce - Size CCM decrypt output DMA for the tag length
      crypto: qce - Bound ahash input DMA to the current segment
      crypto: qce - Bound skcipher input DMA to cryptlen

 drivers/crypto/qce/aead.c     | 156 +++++++++++++++++++++++++++++++-----------
 drivers/crypto/qce/cipher.h   |   3 +-
 drivers/crypto/qce/sha.c      |  76 +++++++++++++++++---
 drivers/crypto/qce/sha.h      |   2 +
 drivers/crypto/qce/skcipher.c |  59 ++++++++++++++--
 5 files changed, 239 insertions(+), 57 deletions(-)
---
base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
change-id: 20261201-codex-qce-dma-bounds-upstream-20261201-b45695077c6c
prerequisite-patch-id: 1fbd4fe6425832e67d4511915ad631021264ce1b

Best regards,
-- 
Wenjia Zhang <wenjia.zhang@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-12-01  5:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox