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, Nov 27, 11:29 AM
Unknown Object (File)
Nov 19 2024, 10:10 AM
Unknown Object (File)
Nov 18 2024, 5:00 AM
Unknown Object (File)
Nov 17 2024, 12:22 PM
Unknown Object (File)
Nov 16 2024, 1:32 PM
Unknown Object (File)
Nov 16 2024, 7:16 AM
Unknown Object (File)
Nov 12 2024, 5:03 AM
Unknown Object (File)
Nov 11 2024, 10: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