Page MenuHomeFreeBSD

mcast: fix leaked igmp packets on multicast cleanup
ClosedPublic

Authored by franco_opnsense.org on Jul 31 2024, 8:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 12, 1:21 AM
Unknown Object (File)
Tue, May 12, 12:47 AM
Unknown Object (File)
Sat, May 9, 7:20 PM
Unknown Object (File)
Sat, Apr 25, 6:56 AM
Unknown Object (File)
Fri, Apr 24, 10:54 PM
Unknown Object (File)
Mon, Apr 20, 1:34 AM
Unknown Object (File)
Apr 17 2026, 12:49 PM
Unknown Object (File)
Apr 16 2026, 1:28 PM

Details

Summary

The commits below have not been added to stable/14. They have been known to fix IGMP leave
messages which are currently broken on both 14.0 and 14.1.

Revert "mcast: fix memory leak in imf_purge()"

This reverts commit fa03d37432caf17d56a931a9e6f5d9b06f102c5b.

This commit caused us to not send IGMP leave messages if the inpcb went
away. In other words: we freed pending packets whenever the socket
closed rather than when the interface (or address) goes away.

mcast: fix leaked igmp packets on multicast cleanup

When we release a multicast address (e.g. on interface shutdown) we may
still have packets queued in inm_scq. We have to free those, or we'll
leak memory.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 58893
Build 55780: arc lint + arc unit