Page MenuHomeFreeBSD

netlink: Fix lock leak in nl_find_nhop
ClosedPublic

Authored by emaste on May 21 2026, 10:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 21, 3:49 PM
Unknown Object (File)
Sun, Jun 21, 2:07 PM
Unknown Object (File)
Sat, Jun 20, 3:31 PM
Unknown Object (File)
Thu, Jun 18, 12:57 AM
Unknown Object (File)
Tue, Jun 16, 3:13 AM
Unknown Object (File)
Sun, Jun 7, 4:14 AM
Unknown Object (File)
Sun, Jun 7, 4:10 AM
Unknown Object (File)
Sat, Jun 6, 8:25 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.May 21 2026, 10:45 PM
pouria added a subscriber: pouria.
pouria added inline comments.
sys/netlink/route/nexthop.c
176–178

Maybe unlock it after ref_any?

emaste added inline comments.
sys/netlink/route/nexthop.c
176–178

I wondered about that, but this is consistent with the case at the end of this function. I'll make this fix first and we can consider that separately.

This revision now requires review to proceed.May 22 2026, 12:23 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 22 2026, 12:40 AM
This revision was automatically updated to reflect the committed changes.