Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jan 2024 15:00:32 GMT
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f027083b906a - stable/14 - ktls: fix vnet-related panic in ktls_reset_receive_tag()
Message-ID:  <202401191500.40JF0WuR066302@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by mm:

URL: https://cgit.FreeBSD.org/src/commit/?id=f027083b906abb67120974d9c23570c4bd46d156

commit f027083b906abb67120974d9c23570c4bd46d156
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2024-01-11 20:31:15 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2024-01-19 14:58:28 +0000

    ktls: fix vnet-related panic in ktls_reset_receive_tag()
    
    Reviewed by:    gallatin, jhb
    Differential Revision:  https://reviews.freebsd.org/D43400
    
    (cherry picked from commit 0e1d8481f93c58008c5a2ef68c3a46a0da83644a)
---
 sys/kern/uipc_ktls.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c
index c996157dbc41..91dfb8516308 100644
--- a/sys/kern/uipc_ktls.c
+++ b/sys/kern/uipc_ktls.c
@@ -1644,7 +1644,9 @@ out:
 
 	if (ifp != NULL)
 		if_rele(ifp);
+	CURVNET_SET(so->so_vnet);
 	sorele(so);
+	CURVNET_RESTORE();
 	ktls_free(tls);
 }
 



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