[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <DB3PR10MB683562E7BD2DC73A48BEA3C8E8A6A@DB3PR10MB6835.EURPRD10.PROD.OUTLOOK.COM>
Date: Thu, 2 Nov 2023 09:34:08 +0530
From: Yuran Pereira <yuran.pereira@...mail.com>
To: linux-crypto@...r.kernel.org, herbert@...dor.apana.org.au
Cc: Yuran Pereira <yuran.pereira@...mail.com>, davem@...emloft.net,
tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
dave.hansen@...ux.intel.com, x86@...nel.org, hpa@...or.com,
linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org
Subject: [PATCH 0/7] crypto: Proper Initialization of `struct skcipher_walk` in x86 Glue Files
In multiple `*_encrypt`, `*_crypt`, `*_decrypt` functions within the x86/crypto
glue files, the `skcipher_walk` structs being used are not properly initialized
prior their usage which can lead to undefined behaviour if the `flags` field of
this structure were to contain junk values at the time of its usage.
This patch series ensures that instances of `struct skcipher_walk` are correctly
initialized across different x86/crypto glue files.
Yuran Pereira (7):
crypto: Fixes uninitialized skcipher_walk use in sm4_aesni_avx_glue
crypto: Fixes uninitialized skcipher_walk use in des3_ede_glue
crypto: Fixes uninitialized skcipher_walk use in chacha_glue
crypto: Fixes uninitialized skcipher_walk use in aesni-intel_glue
crypto: Fixes uninitialized skcipher_walk use in aria_aesni_avx2_glue
crypto: Fixes uninitialized skcipher_walk use in aria_aesni_avx_glue
crypto: Fixes uninitialized skcipher_walk use in aria_gfni_avx512_glue
arch/x86/crypto/aesni-intel_glue.c | 12 ++++++++++++
arch/x86/crypto/aria_aesni_avx2_glue.c | 2 ++
arch/x86/crypto/aria_aesni_avx_glue.c | 2 ++
arch/x86/crypto/aria_gfni_avx512_glue.c | 2 ++
arch/x86/crypto/chacha_glue.c | 2 ++
arch/x86/crypto/des3_ede_glue.c | 4 ++++
arch/x86/crypto/sm4_aesni_avx_glue.c | 7 +++++++
7 files changed, 31 insertions(+)
--
2.25.1
Powered by blists - more mailing lists