HomeFreeBSD

Reinitialize multicast source filter structures after invalidation.

Description

Reinitialize multicast source filter structures after invalidation.

When leaving a multicast group, a hole may be created in the inpcb's
source filter and group membership arrays. To remove the hole, the
succeeding array elements are copied over by one entry. The multicast
code expects that a newly allocated array element is initialized, but
the code which shifts a tail of the array was leaving stale data
in the final entry. Fix this by explicitly reinitializing the last
entry following such a copy.

Reported by: syzbot+f8c3c564ee21d650475e@syzkaller.appspotmail.com
Reviewed by: ae
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19872

Details

Committed
markjApr 11 2019, 8:00 AM
Reviewer
ae
Differential Revision
D19872: Reinitialize source filter structures after removing an entry.
Parents
rS346117: fusefs: eliminate a superfluous FUSE_GETATTR from VOP_LOOKUP
Branches
Unknown
Tags
Unknown