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)
Dec 29 2023, 2:49 PM
Unknown Object (File)
Dec 20 2023, 3:58 AM
Unknown Object (File)
Nov 12 2023, 4:03 PM
Unknown Object (File)
Nov 6 2023, 2:28 PM
Unknown Object (File)
Oct 26 2023, 10:14 AM
Unknown Object (File)
Sep 15 2023, 4:54 AM
Unknown Object (File)
Aug 26 2023, 10:30 AM
Unknown Object (File)
Jul 17 2023, 3:14 AM
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