From nobody Mon Jan 20 15:10:52 2025 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 4YcDLN4KCSz5kDMm; Mon, 20 Jan 2025 15:10:52 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YcDLN3Crrz3G37; Mon, 20 Jan 2025 15:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737385852; 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=R6sjyqjZfFIryK/CeJVjob8fB1CgiPWtRZG1t9JTNG8=; b=Bp5gZtlJqmtvvL6pZjy0Z4DeCfZxDzLu+/Ytn/AFCLkopio/Zritozfkbg/dDnxKJDpfzl Ng0FOUPtwT5VEeiXCOqGMp5+eSWHqQQH8a7FqinBj+YjwHrryk6miZpw9oZWtSTM4F6H7y YrOaGNzvCROmBaMNfiNhXwpicngzAh0bHeve7sXV3dDKGMSfHCalaxoBAtVGnfkhQDr/cp WMwhEDSHv7AueXntg4iKbqRnNVnh+3wEtjbbXSVT9vb6hIp27pKysJQkuzPjOqYrPjZk1i TT0BA7UcRieSx/ZFmdr4fEBUvm4BbuNK1/y4bk6iE5PmtwN7Y+P+4ltaa8tx3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737385852; 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=R6sjyqjZfFIryK/CeJVjob8fB1CgiPWtRZG1t9JTNG8=; b=oJ07PpLpNxxTrNrLv3sK0jttkIRD7bgC6lwlSKoNiFvUO9tYn5wgAHG8D6L8zeK9toW/dj Ubr8kusUdrhLWUBkfJneJVFbbU5tpIvnfNV6YSYGQVOotY6X9YO4rT56D740oWyz/BgQRN Ob5sIbIds/3idwRrZI0KuX71CZGpHYoQdlOkGQNV+t1IO/iig/r15w3ZnSB0/ATvayywBQ 026S2YQCExtTte6nUUnX7qhSL5UpSCXNsz+N6YNzHQxQuJ9UVc7IQyj57m9/y/v2NMskcz yDdxhIvZ7o2HKCEhfSGRjZDrLeyVF720DilOz4EJIgyq7oIJwyc+TMST5rnu+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737385852; a=rsa-sha256; cv=none; b=uNZxwN6qzZUxmqyT7RqY9QCJ2QRpm2GA3glE1yrbdoRsNFonVxpNP9wtBKBTSqIIIsL0Pr /7ID7jhmPELeO4MMj52OvyKa8P9f578nBh86pJ3b1ErifFd9bS1MR0Qq4mU5I7hEMdWvJT G8WHL4yWiF4OJ95PMNzm1NNnsa1oap4y+IIkxFRoBvzY2eSU1CXndyhbHznbqHZdxuz9ne ZWMUFOTKIAa+IDDccX22UBZmp/hk3JIZbRYS7xmym9sogkNMy3nlvGnVqj3xKc0RVu7tMp 5Y6DTrXxl19TZwjZw0DxO5cszxjaZWESHGnltOTLdi6Se0olnC8OgMfK67jRhQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YcDLN2hFSz8vp; Mon, 20 Jan 2025 15:10:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50KFAqkr073431; Mon, 20 Jan 2025 15:10:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50KFAqfU073428; Mon, 20 Jan 2025 15:10:52 GMT (envelope-from git) Date: Mon, 20 Jan 2025 15:10:52 GMT Message-Id: <202501201510.50KFAqfU073428@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 38fdcca05d09 - main - netinet: enter epoch in garp_rexmit() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 38fdcca05d09b4d5426a253d3c484f9481a73ac2 Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=38fdcca05d09b4d5426a253d3c484f9481a73ac2 commit 38fdcca05d09b4d5426a253d3c484f9481a73ac2 Author: Kristof Provost AuthorDate: 2025-01-20 13:24:48 +0000 Commit: Kristof Provost CommitDate: 2025-01-20 13:28:39 +0000 netinet: enter epoch in garp_rexmit() garp_rexmit() is a callback, so is not in net_epoch, which arprequest_internal() expects. Enter and exit the net_epoch. PR: 284073 MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/netinet/if_ether.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 502261f5f2d9..88da1b139b1f 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1353,6 +1353,7 @@ sysctl_garp_rexmit(SYSCTL_HANDLER_ARGS) static void garp_rexmit(void *arg) { + struct epoch_tracker et; struct in_ifaddr *ia = arg; if (callout_pending(&ia->ia_garp_timer) || @@ -1362,6 +1363,7 @@ garp_rexmit(void *arg) return; } + NET_EPOCH_ENTER(et); CURVNET_SET(ia->ia_ifa.ifa_ifp->if_vnet); /* @@ -1393,6 +1395,7 @@ garp_rexmit(void *arg) } CURVNET_RESTORE(); + NET_EPOCH_EXIT(et); } /*