mirror-linux/drivers/crypto
Kees Cook 1562b1fb7e crypto: omap - Allocate OMAP_CRYPTO_FORCE_COPY scatterlists correctly
The existing allocation of scatterlists in omap_crypto_copy_sg_lists()
was allocating an array of scatterlist pointers, not scatterlist objects,
resulting in a 4x too small allocation.

Use sizeof(*new_sg) to get the correct object size.

Fixes: 74ed87e7e7 ("crypto: omap - add base support library for common routines")
Signed-off-by: Kees Cook <kees@kernel.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2026-02-10 08:43:21 -08:00
..
allwinner crypto: sun8i-ss - Avoid -Wflex-array-member-not-at-end warning 2025-12-19 14:47:47 +08:00
amcc crypto: crypto4xx - Use new AES library API 2026-01-15 14:09:08 -08:00
amlogic
aspeed crypto: aspeed - fix double free caused by devm 2025-10-23 12:53:23 +08:00
axis crypto: artpec6 - Simplify with of_device_get_match_data() 2025-11-14 18:15:48 +08:00
bcm
caam crypto: caam - fix netdev memory leak in dpaa2_caam_probe 2026-01-31 10:52:31 +08:00
cavium crypto: cavium - fix dma_free_coherent() size 2026-01-16 14:02:06 +08:00
ccp This update includes the following changes: 2026-02-10 08:36:42 -08:00
ccree crypto: ccree - Correctly handle return of sg_nents_for_len 2025-11-22 10:04:50 +08:00
chelsio crypto: chelsio - Use new AES library API 2026-01-15 14:09:08 -08:00
gemini
hisilicon crypto: hisilicon/qm - increase wait time for mailbox 2026-01-31 10:52:31 +08:00
inside-secure This update includes the following changes: 2026-02-10 08:36:42 -08:00
intel This update includes the following changes: 2026-02-10 08:36:42 -08:00
loongson crypto: loongson - add Loongson RNG driver support 2025-09-02 12:29:57 +01:00
marvell crypto: cesa - Simplify return statement in mv_cesa_dequeue_req_locked 2026-02-06 18:52:22 +08:00
nx crypto: nx - Simplify with scoped for each OF child loop 2026-01-23 13:48:44 +08:00
qce crypto: qce - fix version check 2025-11-06 14:31:08 +08:00
rockchip crypto: rockchip - drop redundant crypto_skcipher_ivsize() calls 2025-11-14 18:15:48 +08:00
starfive This update includes the following changes: 2026-02-10 08:36:42 -08:00
stm32 crypto: stm32 - Replace min_t(size_t) with just min() 2026-01-31 10:52:30 +08:00
tegra crypto: tegra - Use int type to store negative error codes 2025-09-13 12:11:06 +08:00
ti crypto: ti - Add support for AES-XTS in DTHEv2 driver 2025-10-31 17:43:56 +08:00
virtio crypto: virtio - Replace package id with numa node id 2026-01-31 10:52:30 +08:00
xilinx This update includes the following changes: 2026-02-10 08:36:42 -08:00
Kconfig crypto: drbg - Export CTR DRBG DF functions 2025-10-17 16:03:57 +08:00
Makefile This update includes the following changes: 2025-10-04 14:59:29 -07:00
atmel-aes-regs.h
atmel-aes.c crypto: atmel - Use unregister_{aeads,ahashes,skciphers} 2026-02-06 18:52:22 +08:00
atmel-authenc.h
atmel-ecc.c
atmel-i2c.c crypto: atmel-i2c - add WQ_PERCPU to alloc_workqueue users 2025-11-14 18:15:48 +08:00
atmel-i2c.h
atmel-sha-regs.h
atmel-sha.c crypto: atmel - Use unregister_{aeads,ahashes,skciphers} 2026-02-06 18:52:22 +08:00
atmel-sha204a.c
atmel-tdes-regs.h
atmel-tdes.c crypto: atmel - Use unregister_{aeads,ahashes,skciphers} 2026-02-06 18:52:22 +08:00
exynos-rng.c
geode-aes.c
geode-aes.h
hifn_795x.c crypto: hifn_795x - replace simple_strtoul with kstrtouint 2025-10-17 16:03:57 +08:00
img-hash.c crypto: img-hash - Use unregister_ahashes in img_{un}register_algs 2026-02-07 09:32:10 +08:00
mxs-dcp.c
omap-aes-gcm.c crypto: omap - Use new AES library API 2026-01-15 14:09:08 -08:00
omap-aes.c crypto: omap - Use sysfs_emit in sysfs show functions 2026-01-30 16:09:32 +08:00
omap-aes.h crypto: omap - Use new AES library API 2026-01-15 14:09:08 -08:00
omap-crypto.c crypto: omap - Allocate OMAP_CRYPTO_FORCE_COPY scatterlists correctly 2026-02-10 08:43:21 -08:00
omap-crypto.h
omap-des.c crypto: omap - convert from tasklet to BH workqueue 2025-09-13 12:11:06 +08:00
omap-sham.c crypto: omap - Use sysfs_emit in sysfs show functions 2026-01-30 16:09:32 +08:00
padlock-aes.c
padlock-sha.c crypto: padlock-sha - Use core import and export for fallback 2025-05-05 18:20:46 +08:00
qcom-rng.c
s5p-sss.c
sa2ul.c
sa2ul.h
sahara.c
talitos.c
talitos.h