diff options
author | 2017-06-20 11:38:02 +0200 | |
---|---|---|
committer | 2017-07-07 09:49:24 +1000 | |
commit | 13b47cfcfc60495cde216eef4c01040d76174cbe (patch) | |
tree | e052e8beacb8578b588a2ab84990d70593b8e496 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tpm: Issue a TPM2_Shutdown for TPM2 devices. (diff) | |
download | linux-dev-13b47cfcfc60495cde216eef4c01040d76174cbe.tar.xz linux-dev-13b47cfcfc60495cde216eef4c01040d76174cbe.zip |
tpm: fix a kernel memory leak in tpm-sysfs.c
While cleaning up sysfs callback that prints EK we discovered a kernel
memory leak. This commit fixes the issue by zeroing the buffer used for
TPM command/response.
The leak happen when we use either tpm_vtpm_proxy, tpm_ibmvtpm or
xen-tpmfront.
Cc: stable@vger.kernel.org
Fixes: 0883743825e3 ("TPM: sysfs functions consolidation")
Reported-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions