Re: [PATCH] crypto: algapi - guard against uninitialized spawn list in crypto_remove_spawns

From: Michal SuchÃnek
Date: Tue Jun 25 2019 - 12:48:55 EST


On Tue, 25 Jun 2019 09:40:54 -0700
Eric Biggers <ebiggers@xxxxxxxxxx> wrote:

Hello,

> Hi Michal,
>

> The stack trace shows that crypto_remove_spawns() is being called from
> crypto_unregister_instance(). Therefore, the instance should already be
> registered and have initialized cra_users. Now, I don't claim to understand the
> spawn lists stuff that well, so I could have missed something; but if there *is*
> a bug, I'd like to see a proper explanation.

Unfortunately, I don't have an explanation either.
>
> Did you check whether this is actually reproducible on mainline, and not just
> the SUSE v4.12 based kernel?

Mainline crashes on boot:/

Need to find a recent working kernel.

Thanks

Michal