summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko@kernel.org>2024-10-28 08:50:01 +0300
committerJarkko Sakkinen <jarkko@kernel.org>2024-10-29 01:46:20 +0300
commitdf745e25098dcb2f706399c0d06dd8d1bab6b6ec (patch)
tree8e1ffbedaaedd115b4f072bd10237d38297618e0 /tools/perf/scripts/python/exported-sql-viewer.py
parentcc7d8594342a25693d40fe96f97e5c6c29ee609c (diff)
downloadlinux-df745e25098dcb2f706399c0d06dd8d1bab6b6ec.tar.xz
tpm: Lazily flush the auth session
Move the allocation of chip->auth to tpm2_start_auth_session() so that this field can be used as flag to tell whether auth session is active or not. Instead of flushing and reloading the auth session for every transaction separately, keep the session open unless /dev/tpm0 is used. Reported-by: Pengyu Ma <mapengyu@gmail.com> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219229 Cc: stable@vger.kernel.org # v6.10+ Fixes: 7ca110f2679b ("tpm: Address !chip->auth in tpm_buf_append_hmac_session*()") Tested-by: Pengyu Ma <mapengyu@gmail.com> Tested-by: Stefan Berger <stefanb@linux.ibm.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions