Skip to content
Commit 867c10a0 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

crypto: asym_tpm: correct zero out potential secrets



commit f93274ef 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: default avatarIlil Blum Shem-Tov <ilil.blum.shem-tov@intel.com>
Tested-by: default avatarIlil Blum Shem-Tov <ilil.blum.shem-tov@intel.com>
Link: https://lore.kernel.org/r/X8ns4AfwjKudpyfe@kroah.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ff7397ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment