Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: asym_tpm: correct zero out potential secrets
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 <[email protected]> Reported-by: Ilil Blum Shem-Tov <[email protected]> Tested-by: Ilil Blum Shem-Tov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information