diff options
author | Jarkko Sakkinen <[email protected]> | 2024-10-28 07:50:01 +0200 |
---|---|---|
committer | Jarkko Sakkinen <[email protected]> | 2024-10-29 00:46:20 +0200 |
commit | df745e25098dcb2f706399c0d06dd8d1bab6b6ec (patch) | |
tree | 8e1ffbedaaedd115b4f072bd10237d38297618e0 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | cc7d8594342a25693d40fe96f97e5c6c29ee609c (diff) |
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 <[email protected]>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219229
Cc: [email protected] # v6.10+
Fixes: 7ca110f2679b ("tpm: Address !chip->auth in tpm_buf_append_hmac_session*()")
Tested-by: Pengyu Ma <[email protected]>
Tested-by: Stefan Berger <[email protected]>
Reviewed-by: Stefan Berger <[email protected]>
Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions