3
0
Fork 0
forked from mirrors/linux
kernel/drivers/crypto/inside-secure
Christian Marangi 12e0b15b19 crypto: inside-secure/eip93 - acquire lock on eip93_put_descriptor hash
In the EIP93 HASH functions, the eip93_put_descriptor is called without
acquiring lock. This is problematic when multiple thread execute hash
operations.

Correctly acquire ring write lock on calling eip93_put_descriptor to
prevent concurrent access and mess with the ring pointers.

Fixes: 9739f5f93b ("crypto: eip93 - Add Inside Secure SafeXcel EIP-93 crypto engine support")
Reported-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-04-03 19:04:33 +08:00
..
eip93 crypto: inside-secure/eip93 - acquire lock on eip93_put_descriptor hash 2025-04-03 19:04:33 +08:00
Makefile crypto: inside-secure - Eliminate duplication in top-level Makefile 2025-02-22 15:56:02 +08:00
safexcel.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
safexcel.h crypto: safexcel - Remove unused declaration safexcel_ring_first_rptr() 2024-08-30 18:22:30 +08:00
safexcel_cipher.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
safexcel_hash.c crypto: inside-secure - Fix the return value of safexcel_xcbcmac_cra_init() 2024-11-10 11:50:54 +08:00
safexcel_ring.c crypto: inside-secure - Prevent missing of processing errors 2020-09-18 17:20:10 +10:00