Re: [PATCH v6 0/2] crypto: caam - Fix RSA error-path unmap and unaligned dst buffers
From: Herbert Xu
Date: Fri Nov 20 2026 - 04:30:01 EST
On Sat, Nov 14, 2026 at 05:00:30PM +1100, Changwei Zou wrote:
> This series fixes two issues in the rsa-caam driver.
>
> Patch 1 fixes wrong unmap operations where rsa_pub_unmap() was called
> regardless of the key type.
>
> Patch 2 adds a bounce buffer to handle unaligned RSA destination
> buffers on DMA-incoherent hardware such as i.MX8, fixing intermittent
> -EKEYREJECTED errors when loading signed kernel modules.
>
> Changes in v6:
> - Patch 1: Factor the priv_form switch into rsa_priv_unmap(), shared by
> rsa_priv_f_done() and rsa_pdb_unmap(), removing the duplicated switch.
> - Patch 2: Hoist req_ctx to function scope in set_rsa_priv_f{1,2,3}_pdb(),
> removing the duplicate block-local declarations in the src/dst branches.
Your series didn't apply for Sashiko:
https://sashiko.dev/#/patchset/20261114060032.872141-1-changwei.zou%40canonical.com
Please rebase and resubmit.
Thanks,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt