From nobody Fri Jun 5 19:28:32 2026 X-Original-To: dev-commits-src-branches@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 4gXBLZ3XY4z6gNPP for ; Fri, 05 Jun 2026 19:28:38 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gXBLZ2B9Bz3D1D for ; Fri, 05 Jun 2026 19:28:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780687718; 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=PMirtrn5ygJJvjSI9C1UpvYrXJW8UWJKsa8kNDQU82E=; b=YosZJhtuad/0xhV+Owb6GYBzVKSjhNF3sdKL8Ksk/dsFDJG3RMZhcb0uYin9HhUol0PXpb wmpeMGWQvTVnHDiKXZWbL2DJ0/Kg35MG+Re31x/qOBFa0lI/LD4KQ+seLkBWUmlqpJexpV TPbdHvK7zeBygvytUH3/QJy6mqeZgtEfEmTV8HGCIAxFSCdWe9RuVyT1Ov+W0AbDevmbwx BUrbH5wtANgVrQloEEvdUfcQOCuxNDNslh0iW5ZZ6UzXjr/+o3Sz38L+hhwvXAQHHLvXQ1 twcFBGtA7W/FEH9A2QQEOMIoHWL3/NTL9lLNacNdtjzjsWMlGFagEsxg1MtcBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780687718; a=rsa-sha256; cv=none; b=TSnojwjLkm/BHUfxRDbv+Nu2IjNk5n/Ukj8Xr5L/HiESmiR2hnPVp7iNZBapvZtO2ai4oA qdrEiY7FxjpDUjgoDY8q3d/oISVVqNulO2s7IprrNOzsVAKtytNjADGr13FxXxuEQRaRId cx+Kn1aX7j3XvPwf/yaf8OrxeILKtUoc9UPghSXbrzc67tx51jj5wyjWPF0RT1OTnsy4CY vzxoF93Vb4EfbWM4Twq1VPFnDobhW6XBuD3RsT6QrXWsKcMxNQeDT5FvGAuQt08XRcMfVh cFMiCVKCF69bEDnUSaEwiPdIkZJ0GFliSiiR3xLOt1KqC4zBhvCo9a47ghmj7g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780687718; 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=PMirtrn5ygJJvjSI9C1UpvYrXJW8UWJKsa8kNDQU82E=; b=VzTOTUKsDamKzsKIQQY5YvYSvbdCiERXFtU7DiFJLg3g9+nL5cuIis5dRwPA8a/cG/NMX5 6JpQgMXEdDFqKXcsD4SqF361BWkjjBMSuq6UrleYH9XkSeiTsxi+bt3qmsVCV+MCRWy9ct DGe+7VfsZ6K+DnRbVuc197Wur/+gGxYAH4zF4Dcny2Cgy2fNBnV5Ao2pSB5zqwvBFzXyEN e4Ma0c2DFfNYoKAlPcVsL2CtJS3phd+78R5GQpwkcOuAmIfHhWq3W5PZfYkFV9zwjArJbl KSyWyQAKDlBSqdXdJppqcG0qNQOlTjS3+FMXvDwVR0Uq8m4/2PYav2wnWGO5/g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gXBLZ1lfxzk9q for ; Fri, 05 Jun 2026 19:28:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 33569 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 05 Jun 2026 19:28:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: ab599e44dba3 - stable/15 - netlink: Fix lock leak in nl_find_nhop List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ab599e44dba31d7b002aed8c71242e06d992b21a Auto-Submitted: auto-generated Date: Fri, 05 Jun 2026 19:28:32 +0000 Message-Id: <6a232360.33569.6c8af2b3@gitrepo.freebsd.org> The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ab599e44dba31d7b002aed8c71242e06d992b21a commit ab599e44dba31d7b002aed8c71242e06d992b21a Author: Ed Maste AuthorDate: 2026-05-21 21:14:41 +0000 Commit: Ed Maste CommitDate: 2026-06-05 19:28:06 +0000 netlink: Fix lock leak in nl_find_nhop Reviewed by: bz, pouria Fixes: 7e5bf68495cc ("netlink: add netlink support") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57156 (cherry picked from commit d66fec481bfd65cbabb6c12a410d76843e76083e) --- sys/netlink/route/nexthop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/route/nexthop.c b/sys/netlink/route/nexthop.c index 30aa3dd72534..8f3ebc123600 100644 --- a/sys/netlink/route/nexthop.c +++ b/sys/netlink/route/nexthop.c @@ -174,7 +174,7 @@ nl_find_nhop(uint32_t fibnum, int family, uint32_t uidx, CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop); if (unhop != NULL) { struct nhop_object *nh = unhop->un_nhop; - UN_RLOCK(ctl); + UN_RUNLOCK(ctl); *perror = 0; nhop_ref_any(nh); return (nh);