Trusted keys: DCP: Unable to handle paging request

David Gstir david at sigma-star.at
Wed Sep 11 11:46:42 UTC 2024


Hi Parthiban,

> On 10.09.2024, at 17:02, Parthiban <parthiban at linumiz.com> wrote:
> 
> Dear David,
> 
> The below commit when using the stack memory for encrypt/decryption, unable to
> add the key using keyctl. IMO the encrypt/decrypt request which is submitted to
> the dcp driver is asynchronous and seal/unseal is returned before the completion.
> 
> crypto_wait_req with aead_request_set_callback will help?

thanks for reporting this! Yes, it looks like this could fix it.
I’m still a bit puzzled why I never ran into this during my tests,
but I’ll prepare a fix.

Thanks,
- david


More information about the Linux-security-module-archive mailing list