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
Unknown Object (File)
Wed, Oct 15, 7:59 PM
Unknown Object (File)
Tue, Oct 14, 4:55 AM
Unknown Object (File)
Mon, Oct 13, 11:22 PM
Unknown Object (File)
Thu, Sep 25, 3:14 AM
Unknown Object (File)
Sun, Sep 21, 7:43 PM
Unknown Object (File)
Thu, Sep 18, 12:00 PM
Unknown Object (File)
Sep 16 2025, 10:20 PM
Unknown Object (File)
Sep 16 2025, 4:41 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable