lkml.org 
[lkml]   [2023]   [Nov]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/7] crypto: Proper Initialization of `struct skcipher_walk` in x86 Glue Files
Date
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

\
 
 \ /
  Last update: 2023-11-02 05:07    [W:0.058 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site