From: Jeff Barnes <jeffbarnes@linux.microsoft.com>
To: Sahil Malhotra <sahil.malhotra@oss.nxp.com>
Cc: "herbert@gondor.apana.org.au" <herbert@gondor.apana.org.au>,
"davem@davemloft.net" <davem@davemloft.net>,
"horia.geanta@nxp.com" <horia.geanta@nxp.com>,
"pankaj.gupta@nxp.com" <pankaj.gupta@nxp.com>,
"gaurav.jain@nxp.com" <gaurav.jain@nxp.com>,
"changwei.zou@canonical.com" <changwei.zou@canonical.com>,
"linux-crypto@vger.kernel.org" <linux-crypto@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH 1/1] crypto: caam - fix in-place RSA payload DMA mapping
Date: Fri, 13 Nov 2026 15:46:57 -0500 [thread overview]
Message-ID: <4155D08C-95D5-4636-85A0-709911E2CB2F@getmailspring.com> (raw)
In-Reply-To: <20261112081543.503706-1-sahil.malhotra@oss.nxp.com>
Hi Sahil, Changwei,
Thanks for the review.
> Could you either check req->src == req->dst (before the leading zeros are
> stripped), or at least state in the commit message that only an exact
> head alias is handled?
Agreed. I'll detect the original req->src == req->dst alias before
leading-zero stripping and handle the advanced-source case through the
destination bounce path, rather than limit the fix to effective-head
equality.
> so the alias case could simply be one more trigger for the bounce path.
That makes sense. I'll use the bounce path for multi-segment aliases
instead of rejecting them with -EOPNOTSUPP or adding separate SEC4 views.
> Could the two of you agree on an order, so that whichever lands second
> is rebased with this in mind?
Changwei, would putting your series first work for you? I see v5 now
uses fixup_dst; I propose basing my respin on that infrastructure.
I'll ensure all failure paths release any allocated bounce buffer.
> Could you split them into a separate patch?
> That makes them easier to backport.
Yes, I'll split out the sg_nents_for_len() validation and place the
checks before destination traversal and bounce allocation.
I'll also add the requested Fixes and stable tags to the DMA alias fix.
Thanks for offering to test on i.MX8M with CONFIG_DMA_API_DEBUG.
I'll copy you on the respin and identify its prerequisite series.
Thanks,
Jeff
next prev parent reply other threads:[~2026-11-13 20:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 19:25 [RFC PATCH 0/1] " Jeff Barnes
2026-10-20 19:25 ` [RFC PATCH 1/1] " Jeff Barnes
2026-11-11 10:54 ` Herbert Xu
2026-11-19 19:53 ` Jeff Barnes
2026-11-12 8:15 ` Sahil Malhotra
2026-11-13 20:46 ` Jeff Barnes [this message]
2026-11-13 22:58 ` Changwei Zou
2026-11-10 23:19 ` [RFC PATCH 0/1] " Jeff Barnes
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=4155D08C-95D5-4636-85A0-709911E2CB2F@getmailspring.com \
--to=jeffbarnes@linux.microsoft.com \
--cc=changwei.zou@canonical.com \
--cc=davem@davemloft.net \
--cc=gaurav.jain@nxp.com \
--cc=herbert@gondor.apana.org.au \
--cc=horia.geanta@nxp.com \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pankaj.gupta@nxp.com \
--cc=sahil.malhotra@oss.nxp.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 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®