From: Lukas Wunner <lukas@wunner.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Zorro Lang <zlang@redhat.com>,
linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
Ard Biesheuvel <ardb@kernel.org>,
Mark Rutland <mark.rutland@arm.com>
Subject: Re: [PATCH] crypto: rsassa-pkcs1 - Copy source data for SG list
Date: Sat, 30 Nov 2024 09:41:40 +0100 [thread overview]
Message-ID: <Z0rPxCGdD7r8HFKb@wunner.de> (raw)
In-Reply-To: <Z0mPDA31r_LEYzNq@gondor.apana.org.au>
On Fri, Nov 29, 2024 at 05:53:16PM +0800, Herbert Xu wrote:
> As virtual addresses in general may not be suitable for DMA, always
> perform a copy before using them in an SG list.
Just a heads-up, this won't work for use cases when the src buffer
isn't accessible by the kernel. E.g. if the virtual address pointed to
by src is in TEE restricted memory which was mapped into virtual address
space by dma_buf_vmap():
https://lore.kernel.org/all/20241128150927.1377981-1-jens.wiklander@linaro.org/
Thanks,
Lukas
next prev parent reply other threads:[~2024-11-30 8:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 4:51 [Bug report] kernel BUG at include/linux/scatterlist.h Zorro Lang
2024-11-22 6:42 ` Ard Biesheuvel
2024-11-22 7:44 ` Herbert Xu
2024-11-22 8:37 ` Herbert Xu
2024-11-24 16:24 ` Lukas Wunner
2024-11-24 23:13 ` Herbert Xu
2024-11-25 10:29 ` Lukas Wunner
2024-11-25 10:37 ` Herbert Xu
2024-11-29 7:54 ` Lukas Wunner
2024-11-29 8:03 ` Herbert Xu
2024-11-22 19:28 ` Zorro Lang
2024-11-29 9:53 ` [PATCH] crypto: rsassa-pkcs1 - Copy source data for SG list Herbert Xu
2024-11-30 8:41 ` Lukas Wunner [this message]
2024-12-03 7:57 ` Herbert Xu
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=Z0rPxCGdD7r8HFKb@wunner.de \
--to=lukas@wunner.de \
--cc=ardb@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=zlang@redhat.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;
as well as URLs for NNTP newsgroup(s).