Re: [PATCH v11 3/3] crypto: Add Inside Secure SafeXcel EIP-93 crypto engine support

From: Herbert Xu
Date: Tue Apr 01 2025 - 07:33:20 EST


On Tue, Apr 01, 2025 at 01:20:44PM +0200, Christian Marangi (Ansuel) wrote:
>
> Sorry but isn't it enough to acquire lock before eip93_put_descriptor to
> prevent 2 thread?

It would be, but where is the lock? In the other places where the
same function is used you take the ring write lock. But not here
in the hash function.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt