android_kernel_motorola_sm6375/drivers/crypto
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann 1030c0c309 crypto: marvell/cesa - Fix type mismatch warning
[ Upstream commit efbc7764c4446566edb76ca05e903b5905673d2e ]

Commit df8fc4e934c1 ("kbuild: Enable -fstrict-flex-arrays=3") uncovered
a type mismatch in cesa 3des support that leads to a memcpy beyond the
end of a structure:

In function 'fortify_memcpy_chk',
    inlined from 'mv_cesa_des3_ede_setkey' at drivers/crypto/marvell/cesa/cipher.c:307:2:
include/linux/fortify-string.h:583:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
  583 |                         __write_overflow_field(p_size_field, size);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is probably harmless as the actual data that is copied has the correct
type, but clearly worth fixing nonetheless.

Fixes: 4ada483978 ("crypto: marvell/cesa - add Triple-DES support")
Cc: Kees Cook <[email protected]>
Cc: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-07-27 08:37:18 +02:00
..
amcc crypto: crypto4xx - Call dma_unmap_page when done 2023-03-11 16:43:42 +01:00
axis
bcm
caam
cavium crypto: cavium - prevent integer overflow loading firmware 2022-10-26 13:22:46 +02:00
ccp crypto: ccp - Failure on re-initialization due to duplicate sysfs filename 2023-03-11 16:43:39 +01:00
ccree crypto: ccree - Make cc_debugfs_global_fini() available for module init function 2023-01-18 11:41:18 +01:00
chelsio tcp: Fix data-races around sysctl knobs related to SYN option. 2022-07-29 17:14:14 +02:00
hisilicon crypto: hisilicon - Kunpeng916 crypto driver don't sleep when in softirq 2022-08-25 11:17:42 +02:00
inside-secure crypto: safexcel - Cleanup ring IRQ workqueues on load failure 2023-05-17 11:35:58 +02:00
marvell crypto: marvell/cesa - Fix type mismatch warning 2023-07-27 08:37:18 +02:00
mediatek
nx crypto: nx - fix build warnings when DEBUG_FS is not enabled 2023-07-27 08:37:18 +02:00
qat
qce
rockchip
stm32 crypto: stm32 - fix reference leak in stm32_crc_remove 2022-05-25 09:14:32 +02:00
sunxi-ss
ux500
virtio
vmx crypto: vmx - add missing dependencies 2022-04-15 14:18:05 +02:00
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-01-18 11:41:21 +01:00
ixp4xx_crypto.c
Kconfig
Makefile
mxs-dcp.c crypto: mxs-dcp - Fix scatterlist processing 2022-04-15 14:18:04 +02:00
n2_asm.S
n2_core.c crypto: n2 - add missing hash statesize 2023-01-18 11:41:50 +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-01-18 11:41:20 +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-05-25 09:14:34 +02:00
s5p-sss.c
sahara.c
talitos.c
talitos.h