git: f027083b906a - stable/14 - ktls: fix vnet-related panic in ktls_reset_receive_tag()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Jan 2024 15:00:32 UTC
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); }