diff options
author | 2017-03-10 17:46:04 -0700 | |
---|---|---|
committer | 2017-04-03 22:46:02 +0300 | |
commit | 8569defde8057258835c51ce01a33de82e14b148 (patch) | |
tree | 6002ee224bde87f3a163f5e2656847d3731eb0c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tpm2: add session handle context saving and restoring to the space code (diff) | |
download | wireguard-linux-8569defde8057258835c51ce01a33de82e14b148.tar.xz wireguard-linux-8569defde8057258835c51ce01a33de82e14b148.zip |
tpm_crb: check for bad response size
Make sure size of response buffer is at least 6 bytes, or
we will underflow and pass large size_t to memcpy_fromio().
This was encountered while testing earlier version of
locality patchset.
Cc: stable@vger.kernel.org
Fixes: 30fc8d138e912 ("tpm: TPM 2.0 CRB Interface")
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions