git: b905cf4ab7b0 - stable/13 - KTLS: Free the MAC session when destroying AES-CBC software sessions.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 May 2022 00:09:57 UTC
The branch stable/13 has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=b905cf4ab7b09299ecf70c457e3b1d3c6b0d03bf
commit b905cf4ab7b09299ecf70c457e3b1d3c6b0d03bf
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-21 20:49:40 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-13 23:48:48 +0000
KTLS: Free the MAC session when destroying AES-CBC software sessions.
Reviewed by: hselasky
MFC after: 1 week
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D35013
(cherry picked from commit 4b337ada34bc795e6d992ee10c879afe45f04cdb)
---
sys/opencrypto/ktls_ocf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/opencrypto/ktls_ocf.c b/sys/opencrypto/ktls_ocf.c
index 5fafb19a9c4e..56156b6a4988 100644
--- a/sys/opencrypto/ktls_ocf.c
+++ b/sys/opencrypto/ktls_ocf.c
@@ -668,6 +668,7 @@ ktls_ocf_free(struct ktls_session *tls)
os = tls->cipher;
crypto_freesession(os->sid);
+ crypto_freesession(os->mac_sid);
mtx_destroy(&os->lock);
zfree(os, M_KTLS_OCF);
}