diff options
| author | Thomas Huth <thuth@redhat.com> | 2026-09-16 11:50:11 +0200 |
|---|---|---|
| committer | Eric Biggers <ebiggers@kernel.org> | 2026-09-30 09:33:54 -0700 |
| commit | 6df761375819da85517b2de53b3767f8f8dfb97c (patch) | |
| tree | 90b0c387285fc69794ec5e0d4ff217d1ba9f02fd /tools/perf/scripts/python/stackcollapse.py | |
| parent | e09cbc96ff8c94d477a07b2e35b4b4886dc9cf30 (diff) | |
| download | linux-6df761375819da85517b2de53b3767f8f8dfb97c.tar.gz linux-6df761375819da85517b2de53b3767f8f8dfb97c.zip | |
security: keys: trusted: always clear the hmac_sha1_ctx before returning
Clear the hmac_sha1_ctx structure via __cleanup(hmac_sha1_zeroize_ctx)
to make sure that the function does not leak sensitive data on the stack
when returning without calling hmac_sha1_final().
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://patch.msgid.link/20260916095022.604354-10-thuth@redhat.com
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
