From nobody Sat Aug 06 12:53:07 2022 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 4M0Mnv5Xqtz4XhPF; Sat, 6 Aug 2022 12:53:07 +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 4M0Mnv4wXJz4PVY; Sat, 6 Aug 2022 12:53:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659790387; 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=HpmnZGjt7aB1Fhz0ou9U8bt2Bom5ML6rf/nh2dpJYvs=; b=ydrj/ScCvcQUWC1wuZHEST+/4l1FzOjpD3R6SUGTyvWyQ3vBD4VSOrGPo40fpurFYpiBTk 2wngZfdfaJGr+7h7UXvdXcg8jGgOf5a3UBXMenavCJBqafgfJYQ21hokT3qDPU6HojxHyS 2fm+2eygO6NE7A4PGC7Zmhe87KfP1p7KKvQOGLICGINZsRRvyjwzSDQTdwA2edkAo8GI1i lGghPaIMVqZptA18YBE4nJX3jjkPBwZgm4+Z4ekdqOXxt4t8ZolH8VWvBw4Ug2DPVVOk2m ztPXVnyKC/bCgMTuAaNk7Z5+Xk4mKrfEk/I1eM88WWXz4PPEgu8fH+6dLNjdYg== 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 4M0Mnv3yx8zZRd; Sat, 6 Aug 2022 12:53:07 +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 276Cr747084881; Sat, 6 Aug 2022 12:53:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 276Cr7fw084880; Sat, 6 Aug 2022 12:53:07 GMT (envelope-from git) Date: Sat, 6 Aug 2022 12:53:07 GMT Message-Id: <202208061253.276Cr7fw084880@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 93dd3adac7d8 - main - fib_algo: set vnet when destroying algo instance 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 93dd3adac7d84528c4ba4b0c3992931a38dbbc24 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659790387; 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=HpmnZGjt7aB1Fhz0ou9U8bt2Bom5ML6rf/nh2dpJYvs=; b=D7/35CMxANyFnmaKacaBUVwWJJK/J5HbFifhV+Jq9DMnIyNeXZh7t5ewn7GbJLzkB7eCqv g9Icw2WmJOHOByRqv4it1bC0ghRcxJiuXZ0J+tmohQ734rcQJcepBqzgkdT3YI7HWvKILb wKzXu9PBpu4+abEBg/MDz5+o2wayRtRZu0DPiJWEL71G+MhkAZ+xaCcwq/G5oMJB1BIEFP hpHfy08BipkGxoci4myPCqn3P06tB5rrfrgy1Oo7NKaSF2biuPLBQRA3R33kUJzLo0J1+5 UZnAxsHdukvd/NYBQK8TrGST66MMTBDQvFLgU5cX7FosGlCwEoGQGTxN6cO4Xg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659790387; a=rsa-sha256; cv=none; b=sKb4JKFvQ3hckq6AtoKYRkeLDfhDf7cpJx5+TuPzxWT+5RcnyQez4DfhNFH96WUoiV4as1 QrqrX8bR9M6aYoQGdrBSEGuWHSOO+sWD9baOVZA90XpPpDfiMjT0TjH51pFDizzAmitMLF 7sVsJAKxKEAgSbd+qlWH0EAG+a1YQ6fQyOfn8nsQAJ1sjfYJTeed1seGKRvWtVgQiHf/aU dr6CbopdUemoOcmRARzWet+5177p8LtXx69m5d/X38nyOfnTbQCY+FFXgleymLwzCTw9il sCOJR7VQJJoang8u/5K04Ya1AEQhNrxcB+gyqRBCwnuOhAT9jHfGEzv4Eh6GqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=93dd3adac7d84528c4ba4b0c3992931a38dbbc24 commit 93dd3adac7d84528c4ba4b0c3992931a38dbbc24 Author: Alexander V. Chernikov AuthorDate: 2022-08-06 12:44:44 +0000 Commit: Alexander V. Chernikov CommitDate: 2022-08-06 12:51:22 +0000 fib_algo: set vnet when destroying algo instance Reported by: Konrad Kręciwilk MFC after: 2 weeks --- sys/net/route/fib_algo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/route/fib_algo.c b/sys/net/route/fib_algo.c index 42ad3f43d9cf..1274e5e90bd4 100644 --- a/sys/net/route/fib_algo.c +++ b/sys/net/route/fib_algo.c @@ -1135,7 +1135,9 @@ destroy_fd_instance_epoch(epoch_context_t ctx) fd = __containerof(ctx, struct fib_data, fd_epoch_ctx); + CURVNET_SET(fd->fd_vnet); destroy_fd_instance(fd); + CURVNET_RESTORE(); } /*