Re: [PATCH 2/2] crypto: caam - fix DMA mapping of stack memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 25, 2019 at 02:26:27PM +0000, Horia Geanta wrote:
>
> Thus, it seems the problem lies in the fact that ahash_request structure defines
> the digest buffer as "u8 *result" - thus the memory area might not be DMAable.

Oh OK, I misunderstood.  Anything that's in the form of a kernel
pointer must be assumed to be not DMAable.  So yes this needs to
be copied.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux