From nobody Fri Jan 19 15:00:32 2024 X-Original-To: dev-commits-src-all@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 4TGjTs37fDz56gNQ; Fri, 19 Jan 2024 15:00:33 +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 4TGjTs17KCz50lT; Fri, 19 Jan 2024 15:00:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705676433; 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=9llMt62dxrDNRyw3P7vRc5jHYjIRKE2AkLsXAF5swCU=; b=DaUhfYr81yBvbBZHrd8YiJCaioSU7JnCqMNg1jRg55lv6k64FaxiVF8+eHlki+Ae/Dntmq bnF3Znytr7dZwjSmQ/IUqnrLL/T5m/F4zhqXVIgvOYVL3tDsY7COaQN8eRM773TPmIWKyS SHjv1/rDSFMZTISDMBMqeVc2+l27QkMmZNBwt5L3bgkPBiLz93Pfh8IGfc5csbzw0gQeAW MnkgCxVKa/ZN2vB94SElaP/zSCIzLNpgKRJ+XosPBRaDeY4YG3kMDeotjyQnnKbGUr8IeM xGd8hs/6NmmAkmRC5EeWXwblIKmgP6qZczxEgO5Wd293lD03a+V0mDpdOpAGWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705676433; 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=9llMt62dxrDNRyw3P7vRc5jHYjIRKE2AkLsXAF5swCU=; b=W93QIq/2+PILkVGM552+5iu6b5oS2eCbuVgJDytTMqF1gNEy17cAppi6jl+9ZPNIgsLbQf aawK6NZhYTjWfPyvuW1T0xLxbEYQC/2GEgxgJbLkdY9qPJ7NB6IVzGOTj2MJ6ToarEs33D eH17buz07T++bNZ98cd2nhvCl/4VYv50wRyFCHO77LX/PWiBHPoNxRAaiJuJFLqyPyqfXQ L1qlnyVcV9JJmj4isvRgM9wjksu2FoIiEpXSMu0oCYESA6zoDqd6sl3KgifpnixdPvPGEU a5JyLdLrhfbLHvkmUYWT3HiPyG/hRr78ayESZAvzTR6u1GgwSv+09JCPpKtUGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705676433; a=rsa-sha256; cv=none; b=TDfN9UTaUdngH+6zvUpXoMglgKIm46nquspO12hjw3g6j/GVPzELU9bCG9yvTJTUzlrIrw 8ZxrnqxJJqVYffvLtR9UtilOedGFZjvt5fYNLthKc2r7tzzIHFuF3G2rbcF/zOJwW5GbVm htfTrXzJHJbSigj3+N3J82mmTQVgvwaHEh5Q4YCBLQw0zHbrYxrvFaknRXI2b23pTD9mlE Wtsgu2fJRi79v8Evi0NtDrSXcXlRDSCCAgJsU3P7FuG+xUPbkOrO+xGOBQGcaVVzyGTZod OF3BgknR7LaBztpKn9EubqVtuxsI3X1j1+gNGjAGQzaFmcD/lQEbvZLikg7/ug== 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 4TGjTs09l1zw0N; Fri, 19 Jan 2024 15:00:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40JF0WxH066305; Fri, 19 Jan 2024 15:00:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40JF0WuR066302; Fri, 19 Jan 2024 15:00:32 GMT (envelope-from git) Date: Fri, 19 Jan 2024 15:00:32 GMT Message-Id: <202401191500.40JF0WuR066302@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Martin Matuska Subject: git: f027083b906a - stable/14 - ktls: fix vnet-related panic in ktls_reset_receive_tag() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mm X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f027083b906abb67120974d9c23570c4bd46d156 Auto-Submitted: auto-generated The branch stable/14 has been updated by mm: URL: https://cgit.FreeBSD.org/src/commit/?id=f027083b906abb67120974d9c23570c4bd46d156 commit f027083b906abb67120974d9c23570c4bd46d156 Author: Martin Matuska AuthorDate: 2024-01-11 20:31:15 +0000 Commit: Martin Matuska 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); }