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)
Tue, Dec 17, 2:45 AM
Unknown Object (File)
Fri, Dec 13, 2:13 PM
Unknown Object (File)
Nov 22 2024, 8:39 PM
Unknown Object (File)
Nov 12 2024, 1:59 AM
Unknown Object (File)
Nov 5 2024, 9:25 AM
Unknown Object (File)
Oct 1 2024, 8:17 PM
Unknown Object (File)
Sep 23 2024, 5:19 PM
Unknown Object (File)
Sep 9 2024, 1:36 PM
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