linux-yocto/drivers/crypto
Herbert Xu f5b9144715 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>
2025-06-27 11:08:42 +01:00
..
allwinner crypto: sun8i-ce - move fallback ahash_request to the end of the struct 2025-06-19 15:28:03 +02:00
amcc
amlogic
aspeed
axis
bcm crypto: bcm - add error check in the ahash_hmac_init function 2024-12-09 10:31:49 +01:00
caam crypto: caam/qi - Fix drv_ctx refcount bug 2025-04-25 10:45:47 +02:00
cavium crypto: cavium - Fix an error handling path in cpt_ucode_load_fw() 2024-12-09 10:31:50 +01:00
ccp crypto: ccp - Add support for PCI device 0x1134 2025-05-02 07:50:52 +02:00
ccree
chelsio
gemini
hisilicon crypto: hisilicon/sec2 - fix for aead auth key length 2025-04-10 14:37:32 +02:00
inside-secure crypto: inside-secure - Fix the return value of safexcel_xcbcmac_cra_init() 2024-12-09 10:31:48 +01:00
intel crypto: ixp4xx - fix OF node reference leaks in init_ixp_crypto() 2025-02-08 09:52:06 +01:00
marvell crypto: marvell/cesa - Do not chain submitted requests 2025-06-27 11:08:42 +01:00
nx crypto: nx - Fix uninitialised hv_nxc on error 2025-04-10 14:37:31 +02:00
qce crypto: qce - unregister previously registered algos in error path 2025-02-17 09:40:35 +01:00
rockchip
starfive
stm32
virtio
vmx
xilinx
atmel-aes-regs.h
atmel-aes.c
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c
atmel-i2c.h
atmel-sha-regs.h
atmel-sha.c
atmel-sha204a.c crypto: atmel-sha204a - Set hwrng quality to lowest possible 2025-05-02 07:50:46 +02:00
atmel-tdes-regs.h
atmel-tdes.c
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c
img-hash.c
Kconfig
Makefile
mxs-dcp.c
n2_asm.S
n2_core.c
n2_core.h
omap-aes-gcm.c
omap-aes.c
omap-aes.h
omap-crypto.c
omap-crypto.h
omap-des.c
omap-sham.c
padlock-aes.c
padlock-sha.c
qcom-rng.c
s5p-sss.c
sa2ul.c
sa2ul.h
sahara.c
talitos.c
talitos.h