Ubuntu-focal-kernel/drivers/crypto
Thomas Bourgoin 3b124f8ba3 crypto: stm32 - fix loop iterating through scatterlist for DMA
BugLink: https://bugs.launchpad.net/bugs/2040284

commit d9c83f71eeceed2cb54bb78be84f2d4055fd9a1f upstream.

We were reading the length of the scatterlist sg after copying value of
tsg inside.
So we are using the size of the previous scatterlist and for the first
one we are using an unitialised value.
Fix this by copying tsg in sg[0] before reading the size.

Fixes : 8a1012d3f2 ("crypto: stm32 - Support for STM32 HASH module")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-10-30 11:42:17 +01:00
..
amcc crypto: crypto4xx - Call dma_unmap_page when done 2023-05-12 17:15:02 +02:00
axis
bcm
caam crypto: caam - fix unchecked return value error 2023-10-30 11:42:08 +01:00
cavium crypto: cavium - prevent integer overflow loading firmware 2023-01-06 08:44:02 -08:00
ccp crypto: ccp - Failure on re-initialization due to duplicate sysfs filename 2023-05-12 17:15:01 +02:00
ccree crypto: ccree - Make cc_debugfs_global_fini() available for module init function 2023-02-01 15:22:45 +01:00
chelsio tcp: Fix data-races around sysctl knobs related to SYN option. 2022-09-16 10:59:51 +02:00
hisilicon crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-10-17 15:00:42 +02:00
inside-secure crypto: safexcel - Cleanup ring IRQ workqueues on load failure 2023-08-09 12:25:24 +02:00
marvell crypto: marvell/cesa - Fix type mismatch warning 2023-10-02 12:12:06 +02:00
mediatek
nx crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-10-02 12:12:05 +02:00
qat
qce
rockchip
stm32 crypto: stm32 - fix loop iterating through scatterlist for DMA 2023-10-30 11:42:17 +01:00
sunxi-ss
ux500
virtio
vmx
Kconfig
Makefile
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
atmel-tdes-regs.h
atmel-tdes.c
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c
img-hash.c crypto: img-hash - Fix variable dereferenced before check 'hdev->req' 2023-02-01 15:22:50 +01:00
ixp4xx_crypto.c
mxs-dcp.c
n2_asm.S
n2_core.c crypto: n2 - add missing hash statesize 2023-02-01 15:23:26 +01:00
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 crypto: omap-sham - Use pm_runtime_resume_and_get() in omap_sham_probe() 2023-02-01 15:22:49 +01:00
padlock-aes.c
padlock-sha.c
picoxcell_crypto.c
picoxcell_crypto_regs.h
qcom-rng.c crypto: qcom-rng - fix infinite loop on requests not multiple of WORD_SZ 2022-08-26 11:06:41 +02:00
s5p-sss.c
sahara.c
talitos.c
talitos.h