linux/drivers/crypto/marvell
Herbert Xu ea3c81acb0 crypto: marvell/cesa - Do not chain submitted requests
commit 0413bcf0fc upstream.

This driver tries to chain requests together before submitting them
to hardware in order to reduce completion interrupts.

However, it even extends chains that have already been submitted
to hardware.  This is dangerous because there is no way of knowing
whether the hardware has already read the DMA memory in question
or not.

Fix this by splitting the chain list into two.  One for submitted
requests and one for requests that have not yet been submitted.
Only extend the latter.

Reported-by: Klaus Kudielka <klaus.kudielka@gmail.com>
Fixes: 85030c5168 ("crypto: marvell - Add support for chaining crypto requests in TDMA mode")
Cc: <stable@vger.kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-06-27 11:11:12 +01:00
..
cesa crypto: marvell/cesa - Do not chain submitted requests 2025-06-27 11:11:12 +01:00
octeontx crypto: octeontx - Remove unused declaration otx_cpt_callback() 2024-08-30 18:22:31 +08:00
octeontx2 crypto: octeontx2 - suppress auth failure screaming due to negative tests 2025-05-29 11:02:17 +02:00
Kconfig crypto: octeontx* - Select CRYPTO_AUTHENC 2024-09-06 14:50:46 +08:00
Makefile crypto: marvell - add Marvell OcteonTX2 CPT PF driver 2021-01-22 14:58:02 +11:00