Page MenuHomeFreeBSD

net: Fix LLE lock leaks
ClosedPublic

Authored by markj on Apr 7 2022, 7:13 PM.
Tags
None
Referenced Files
F85151850: D34831.diff
Sun, Jun 2, 5:55 AM
Unknown Object (File)
Mon, May 27, 6:09 AM
Unknown Object (File)
May 1 2024, 7:16 AM
Unknown Object (File)
Apr 30 2024, 4:26 PM
Unknown Object (File)
Apr 30 2024, 3:43 PM
Unknown Object (File)
Apr 30 2024, 1:03 PM
Unknown Object (File)
Feb 8 2024, 6:35 PM
Unknown Object (File)
Jan 7 2024, 2:38 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