Page MenuHomeFreeBSD

net: Fix LLE lock leaks
ClosedPublic

Authored by markj on Apr 7 2022, 7:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 29, 11:06 AM
Unknown Object (File)
Sat, Nov 29, 4:21 AM
Unknown Object (File)
Fri, Nov 28, 12:14 PM
Unknown Object (File)
Thu, Nov 27, 4:32 AM
Unknown Object (File)
Tue, Nov 25, 8:26 PM
Unknown Object (File)
Tue, Nov 25, 5:04 PM
Unknown Object (File)
Sat, Nov 15, 1:18 PM
Unknown Object (File)
Nov 12 2025, 12:39 AM
Subscribers

Details

Summary

Historically, lltable_try_set_entry_addr() would release the LLE lock
upon failure. After some refactoring, it no longer does so, but now
consumers can leak the LLE lock as a result.

Also fix a leak that can occur if lltable_calc_llheader() fails in the
ARP code, but I suspect that this failure can only occur due to a code
bug.

Reported by: pho
Fixes: 0b79b007ebfc ("[lltable] Restructure nd6 code.")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45064
Build 41952: arc lint + arc unit