linux/drivers/crypto/ccp
Arnd Bergmann a71475582a crypto: ccp - reduce stack usage in ccp_run_aes_gcm_cmd
A number of functions in this file have large structures on the stack,
ccp_run_aes_gcm_cmd() being the worst, in particular when KASAN
is enabled on gcc:

drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_sha_cmd':
drivers/crypto/ccp/ccp-ops.c:1833:1: error: the frame size of 1136 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
drivers/crypto/ccp/ccp-ops.c: In function 'ccp_run_aes_gcm_cmd':
drivers/crypto/ccp/ccp-ops.c:914:1: error: the frame size of 1632 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]

Avoid the issue by using dynamic memory allocation in the worst one
of these.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-07-27 22:41:45 +10:00
..
ccp-crypto-aes-cmac.c
ccp-crypto-aes-galois.c
ccp-crypto-aes-xts.c
ccp-crypto-aes.c crypto: ccp - Add missing header inclusions 2025-04-16 15:16:21 +08:00
ccp-crypto-des3.c crypto: ccp - Add missing header inclusions 2025-04-16 15:16:21 +08:00
ccp-crypto-main.c crypto: ccp - Add missing header inclusions 2025-04-16 15:16:21 +08:00
ccp-crypto-rsa.c
ccp-crypto-sha.c
ccp-crypto.h
ccp-debugfs.c crypto: ccp - Fix crash when rebind ccp device for ccp.ko 2025-07-07 15:31:43 +12:00
ccp-dev-v3.c
ccp-dev-v5.c
ccp-dev.c
ccp-dev.h
ccp-dmaengine.c
ccp-ops.c crypto: ccp - reduce stack usage in ccp_run_aes_gcm_cmd 2025-07-27 22:41:45 +10:00
dbc.c crypto: ccp - Use scoped guard for mutex 2024-12-14 17:21:43 +08:00
dbc.h
hsti.c crypto: ccp - Move message about TSME being enabled later in init 2024-06-07 19:46:39 +08:00
hsti.h crypto: ccp - Add support for getting security attributes on some older systems 2024-06-07 19:46:39 +08:00
Kconfig crypto: ccp - Have it depend on AMD_IOMMU 2024-02-13 12:21:15 +01:00
Makefile crypto: ccp - Move security attributes to their own file 2024-06-07 19:46:39 +08:00
platform-access.c crypto: ccp - Avoid discarding errors in psp_send_platform_access_msg() 2024-02-24 08:41:20 +08:00
platform-access.h
psp-dev.c crypto: ccp - Move message about TSME being enabled later in init 2024-06-07 19:46:39 +08:00
psp-dev.h crypto: ccp - Add support for getting security attributes on some older systems 2024-06-07 19:46:39 +08:00
sev-dev.c crypto: ccp - Fix locking on alloc failure handling 2025-07-07 15:27:04 +12:00
sev-dev.h crypto: ccp: Handle legacy SEV commands when SNP is enabled 2024-01-29 20:34:18 +01:00
sp-dev.c crypto: ccp: Add external API interface for PSP module initialization 2025-02-14 18:39:19 -05:00
sp-dev.h crypto: ccp - Remove unused declaration sp_get_master() 2024-08-30 18:22:31 +08:00
sp-pci.c crypto: ccp - Add missing bootloader info reg for pspv6 2025-06-13 17:26:16 +08:00
sp-platform.c crypto: drivers - Switch back to struct platform_driver::remove() 2024-10-19 08:44:30 +08:00
tee-dev.c
tee-dev.h