linux-stable/drivers/crypto
Herbert Xu 8132682856 crypto: caam/qi - Fix drv_ctx refcount bug
commit b7b39df7e7 upstream.

Ensure refcount is raised before request is enqueued since it could
be dequeued before the call returns.

Reported-by: Sean Anderson <sean.anderson@linux.dev>
Cc: <stable@vger.kernel.org>
Fixes: 11144416a7 ("crypto: caam/qi - optimize frame queue cleanup")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Tested-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:47:52 +02:00
..
allwinner
amcc
amlogic
aspeed
axis
bcm
caam crypto: caam/qi - Fix drv_ctx refcount bug 2025-04-25 10:47:52 +02:00
cavium
ccp crypto: ccp - Fix check for the primary ASP device 2025-04-20 10:15:52 +02:00
ccree
chelsio
gemini
hisilicon crypto: hisilicon/sec2 - fix for aead auth key length 2025-04-10 14:39:21 +02:00
inside-secure
intel crypto: qat - remove access to parity register for QAT GEN4 2025-04-10 14:39:20 +02:00
marvell
nx crypto: nx - Fix uninitialised hv_nxc on error 2025-04-10 14:39:21 +02:00
qce crypto: qce - unregister previously registered algos in error path 2025-02-17 10:05:37 +01:00
rockchip
starfive
stm32
tegra crypto: tegra - Fix IV usage for AES ECB 2025-04-25 10:47:39 +02:00
virtio
xilinx
atmel-aes-regs.h
atmel-aes.c
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c
atmel-i2c.h
atmel-sha204a.c
atmel-sha-regs.h
atmel-sha.c
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