Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2022 00:09:57 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b905cf4ab7b0 - stable/13 - KTLS: Free the MAC session when destroying AES-CBC software sessions.
Message-ID:  <202205140009.24E09vt8073687@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205140009.24E09vt8073687>