Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jan 2024 20:34:06 GMT
From:      Martin Matuska <mm@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0e1d8481f93c - main - ktls: fix vnet-related panic in ktls_reset_receive_tag()
Message-ID:  <202401112034.40BKY6bC035109@gitrepo.freebsd.org>

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

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

commit 0e1d8481f93c58008c5a2ef68c3a46a0da83644a
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2024-01-11 20:31:15 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2024-01-11 20:32:29 +0000

    ktls: fix vnet-related panic in ktls_reset_receive_tag()
    
    Reviewed by:    gallatin, jhb
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D43400
---
 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 b69d16446b47..deba6940bbee 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?202401112034.40BKY6bC035109>