mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] crypto: caam - Fix rsa-caam unmap and DMA alignment
@ 2026-08-21  4:55 Changwei Zou
  2026-08-21  4:55 ` [PATCH 1/2] crypto: caam - Fix wrong unmap operations Changwei Zou
  2026-08-21  4:55 ` [PATCH 2/2] crypto: caam - Use bounce buffer for unaligned RSA destination buffers Changwei Zou
  0 siblings, 2 replies; 7+ messages in thread
From: Changwei Zou @ 2026-08-21  4:55 UTC (permalink / raw)
  To: horia.geanta, pankaj.gupta, gaurav.jain, herbert, davem
  Cc: linux-crypto, linux-kernel, lukas, changwei.zou

This series fixes two issues in the rsa-caam driver.

The first patch fixes incorrect unmap operations in akcipher_do_one_req()
and akcipher_enqueue_req(), where rsa_pub_unmap() was called regardless
of the key type.

The second patch fixes an intermittent -EKEYREJECTED error observed on
i.MX8 when loading signed kernel modules. The root cause is that the
rsa-caam driver DMA-maps the destination buffer directly without checking
cacheline alignment. On non-coherent DMA systems this can corrupt
adjacent memory. A bounce buffer is introduced for destination buffers
that are not cacheline-aligned.

Changwei Zou (2):
  crypto: caam - Fix wrong unmap operations
  crypto: caam - Use bounce buffer for unaligned RSA destination buffers

 drivers/crypto/caam/caampkc.c | 120 ++++++++++++++++++++++++++++++----
 drivers/crypto/caam/caampkc.h |   6 ++
 2 files changed, 113 insertions(+), 13 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-10-05  2:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-21  4:55 [PATCH 0/2] crypto: caam - Fix rsa-caam unmap and DMA alignment Changwei Zou
2026-08-21  4:55 ` [PATCH 1/2] crypto: caam - Fix wrong unmap operations Changwei Zou
2026-09-29 15:19   ` [EXT] " Sahil Malhotra (OSS)
2026-10-05  2:19     ` Changwei Zou
2026-08-21  4:55 ` [PATCH 2/2] crypto: caam - Use bounce buffer for unaligned RSA destination buffers Changwei Zou
2026-09-29 11:52   ` [EXT] " Sahil Malhotra (OSS)
2026-09-29 12:28   ` Kepplinger-Novakovic Martin

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

all inboxes | Powered by JetHome®