Re: cryptomgr_test / drbg_ctr: BUG: sleeping function called from invalid context
From: Stephan Müller
Date: Sun May 20 2018 - 15:11:04 EST
Am Freitag, 18. Mai 2018, 10:36:04 CEST schrieb Geert Uytterhoeven:
Hi Geert,
>
> I tried following the code path, but couldn't find where it went wrong.
>
> mutex_lock(&drbg->drbg_mutex) is called from drbg_instantiate(), which is
> inlined by the compiler into drbg_kcapi_seed().
>
> Do you have a clue?
It is the first time I hear from such an issue. Yes, the DRBG should not be
called in atomic context. But I do not see where we have an atomic context
(either a spin_lock or in an interrupt handler) when we are executing the test
manager.
I will keep looking.
Ciao
Stephan