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)
Thu, Apr 24, 8:56 AM
Unknown Object (File)
Mon, Apr 14, 8:05 AM
Unknown Object (File)
Mon, Apr 14, 3:55 AM
Unknown Object (File)
Sun, Apr 13, 8:38 PM
Unknown Object (File)
Sun, Apr 13, 7:27 PM
Unknown Object (File)
Sun, Apr 13, 7:23 PM
Unknown Object (File)
Wed, Apr 2, 3:28 PM
Unknown Object (File)
Mar 20 2025, 4:49 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