Page MenuHomeFreeBSD

net: Fix LLE lock leaks
ClosedPublic

Authored by markj on Apr 7 2022, 7:13 PM.
Tags
None
Referenced Files
F168067463: D34831.diff
Wed, Aug 26, 5:37 AM
F168051329: D34831.id.diff
Wed, Aug 26, 3:44 AM
F168045801: D34831.id104779.diff
Wed, Aug 26, 3:01 AM
Unknown Object (File)
Fri, Aug 21, 7:58 PM
Unknown Object (File)
Mon, Aug 17, 5:52 PM
Unknown Object (File)
Sat, Aug 15, 1:45 PM
Unknown Object (File)
Sat, Aug 15, 11:58 AM
Unknown Object (File)
Sat, Aug 15, 11:50 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable