Re: [PATCH v5 0/2] dm-integrity: Implement asynch digest support

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

 



On Mon, Jul 28, 2025 at 11:24:25PM +0200, Mikulas Patocka wrote:
>
> I'd like to ask the maintainers of crypto-api - Herbert or David - what if 
> I pass vmalloc-allocated memory (or possibly stack memory) as "result" to 
> ahash_request_set_crypt(req, sg, result, nbytes);? Is it legal or not?

It's perfectly legal to pass a stack-allocated or vmallc pointer
for the result field in ahash.

Only SG lists require DMA memory.

Cheers,
-- 
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]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux