Re: Trusted keys: DCP: Unable to handle paging request

From: David Gstir
Date: Wed Sep 11 2024 - 07:47:10 EST


Hi Parthiban,

> On 10.09.2024, at 17:02, Parthiban <parthiban@xxxxxxxxxxx> 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