Page MenuHomeFreeBSD

Reinitialize source filter structures after removing an entry.
ClosedPublic

Authored by markj on Apr 10 2019, 4:13 AM.
Tags
None
Referenced Files
F148080429: D19872.diff
Sun, Mar 15, 3:16 PM
Unknown Object (File)
Sun, Mar 15, 10:33 AM
Unknown Object (File)
Mon, Mar 9, 1:27 PM
Unknown Object (File)
Fri, Mar 6, 8:41 PM
Unknown Object (File)
Sun, Mar 1, 3:38 AM
Unknown Object (File)
Sun, Mar 1, 12:30 AM
Unknown Object (File)
Sun, Feb 22, 12:17 AM
Unknown Object (File)
Feb 8 2026, 1:24 PM
Subscribers

Details

Summary

When leaving a multicast group, inp_leave_group() creates a hole in the
source filter and group membership arrays. It copies succeeding
elements down by 1 entry, so the last entry remains initialized with
stale data. This can trip an assertion in inp_join_group() which
verifies that the newly allocated source filter array entry does not
contain any source filters. Fix the problem by explicitly
reinitializing the last source filter array entry using the same
measures as in imo_grow().

Test Plan

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23615
Build 22601: arc lint + arc unit