android_kernel_xiaomi_sm8350/crypto/asymmetric_keys
Greg Kroah-Hartman 867c10a03f crypto: asym_tpm: correct zero out potential secrets
commit f93274ef0fe972c120c96b3207f8fce376231a60 upstream.

The function derive_pub_key() should be calling memzero_explicit()
instead of memset() in case the complier decides to optimize away the
call to memset() because it "knows" no one is going to touch the memory
anymore.

Cc: stable <stable@vger.kernel.org>
Reported-by: Ilil Blum Shem-Tov <ilil.blum.shem-tov@intel.com>
Tested-by: Ilil Blum Shem-Tov <ilil.blum.shem-tov@intel.com>
Link: https://lore.kernel.org/r/X8ns4AfwjKudpyfe@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:16:17 +01:00
..
asym_tpm.c
asymmetric_keys.h
asymmetric_type.c
Kconfig
Makefile
mscode_parser.c
mscode.asn1
pkcs7_key_type.c
pkcs7_parser.c
pkcs7_parser.h
pkcs7_trust.c
pkcs7_verify.c
pkcs7.asn1
pkcs8_parser.c
pkcs8.asn1
public_key.c
restrict.c
signature.c
tpm_parser.c
tpm.asn1
verify_pefile.c
verify_pefile.h
x509_akid.asn1
x509_cert_parser.c
x509_parser.h
x509_public_key.c
x509.asn1