From nobody Thu Apr 21 20:50:26 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D311D11DD0B7; Thu, 21 Apr 2022 20:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkqS25YB0z3mZk; Thu, 21 Apr 2022 20:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650574226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+irT7PNHFKh2VlVHJmRM1vBy8mfLRO6ch6/md9enyAk=; b=bUoE4U+9NP3+OFlXpOWIDNnyAffd5ouXmbQv3lRxuOnzuEzIoR5DwuTxb/V6MDWRQAgQLw b+2hv1dxB2olfpskgN+LFqUVi7QqwUvbbPL8ExBLKJ7E7T8tch/Xj65QfLUSFF+UmRTmUe cmqHCH7le4rGgoVEk3St5a7h3HXi8hqywX9tUEyJDvByw0R3JRFiOErCU1KKdD0frsaxx2 tPqY1O3DWyQYeJNI0fOu4CTs32YINaBHNWJyVx4stl03RT9+bEmzqna41J3uRPXzBPoyj7 8+qduwTO/4cVApEeE77NaA2nofzHQrc8x46aMlJTxozsv+NMe/QIgLtlXsgoHw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9DEFF7DF0; Thu, 21 Apr 2022 20:50:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23LKoQmj079455; Thu, 21 Apr 2022 20:50:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23LKoQr6079454; Thu, 21 Apr 2022 20:50:26 GMT (envelope-from git) Date: Thu, 21 Apr 2022 20:50:26 GMT Message-Id: <202204212050.23LKoQr6079454@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 4b337ada34bc - main - KTLS: Free the MAC session when destroying AES-CBC software sessions. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4b337ada34bc795e6d992ee10c879afe45f04cdb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650574226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+irT7PNHFKh2VlVHJmRM1vBy8mfLRO6ch6/md9enyAk=; b=YzYqfyz+oGcTxpgSvswlDBMe04nnpImWgQRQ2J0hnmxLK52nHf3gZEVjRLRpEzkuDUFua4 kL+Wxf1vUowir9PwTU5tI5RfnpPCb5q2mv5Nybd5hThfXUJVXjSnbCPeYyZ5ROX+vzYLPm oNtaaJ4ECjyNFan7QZGYmODsRy+sRVUSu6+9RRWmb1qTdEsGLmd3Sa/WtC6po018Sf+uoc sj4F2L9tYgFdH5w+MF6b19fZXeRJXRjer7b6+7inbccy9EcVw4tpKsLldjFOtzAZVLvtBI ibllMSHLW8B+Sww8f/qcuKuTZO84jAEQlFk4YiTMlIrdbotk1jSmZ2FAosyqUA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650574226; a=rsa-sha256; cv=none; b=AOLMxrA33u0eNfKK+fowVeQ141GpZa/j5D8Jd0rzQ4N7bvbKCps/Q6PM+5p0XP537o8gIg XH4/SxCbqgMh9EJU+e2VLp6RD0vKjF6ByoM4ShU17bWXRQMOswUHMRwcu+Iqo8/hRKbjxg jbKXg6G/6IWXK06E2n8kW8YgCebVnWQehTw6MQUhKvC/IhS5mYtX1SMmYUUts9MCBiUkSc UGWKXMCZozkfHF8FHUS4AllbycoOpDJQBmPYYKub2m1tTddL5vcMqUGAbzpwyHYwvGTwKr 2eZeYQzdP8UAFoRKwB+WH0LPsdClJwNZjdGSwyGSgOpEXmRzni8ZLLZ/Q8xdTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=4b337ada34bc795e6d992ee10c879afe45f04cdb commit 4b337ada34bc795e6d992ee10c879afe45f04cdb Author: John Baldwin AuthorDate: 2022-04-21 20:49:40 +0000 Commit: John Baldwin CommitDate: 2022-04-21 20:49:40 +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 --- 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 a2bb94dc717a..34e76556fccc 100644 --- a/sys/opencrypto/ktls_ocf.c +++ b/sys/opencrypto/ktls_ocf.c @@ -669,6 +669,7 @@ ktls_ocf_free(struct ktls_session *tls) os = tls->ocf_session; crypto_freesession(os->sid); + crypto_freesession(os->mac_sid); mtx_destroy(&os->lock); zfree(os, M_KTLS_OCF); }